Compare commits
16 Commits
24736726ce
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a4541c9c7 | |||
| 913e60acc9 | |||
| 14e8771049 | |||
| a9334bf178 | |||
| c1cfa9ded4 | |||
| fd4e05cc7d | |||
| f4ebff5cda | |||
| 5bdbcaac80 | |||
| 06352c8151 | |||
| 2cc3f8c69d | |||
| a6d7a9b5e8 | |||
| 7322c2c47b | |||
| 81052689f0 | |||
| c24e69d0bf | |||
| bd23d4bdb6 | |||
| c69545c4cb |
@@ -1 +1,3 @@
|
|||||||
Please only submit feature suggestions or bug reports if you believe something is broken. Please do not submit support requests and general help questions.
|
Thank you for submitting an issue!
|
||||||
|
|
||||||
|
Please only submit bug reports or feature suggestions. Please do not submit support requests and general help questions in this forum.
|
||||||
|
|||||||
25
blog.bryanroessler.com/.github/workflows/ci.yml
vendored
@@ -5,11 +5,22 @@ jobs:
|
|||||||
name: Build Jekyll
|
name: Build Jekyll
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Build the site in the jekyll/builder container
|
- uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: '3.3'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bundle install && bundle exec appraisal install
|
||||||
|
- name: Setup Pages
|
||||||
|
id: configure-pages
|
||||||
|
uses: actions/configure-pages@v5
|
||||||
|
- name: Setup CI config
|
||||||
run: |
|
run: |
|
||||||
export JEKYLL_VERSION=3.8
|
echo "---" > _config_ci.yml
|
||||||
docker run \
|
echo "baseurl: ${{ steps.configure-pages.outputs.base_path }}" >> _config_ci.yml
|
||||||
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
|
- name: Build site
|
||||||
-e PAGES_REPO_NWO=${{ github.repository }} \
|
env:
|
||||||
jekyll/builder:$JEKYLL_VERSION /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
|
JEKYLL_ENV: production
|
||||||
|
run: bundle exec appraisal jekyll build --future --config _config_ci.yml,_config.yml
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ permalink: /404.html
|
|||||||
<h1>Move along. (404 error)</h1>
|
<h1>Move along. (404 error)</h1>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<img src="{{ 'assets/img/404-southpark.jpg' | relative_url }}" />
|
<img src="{{ site.baseurl }}/img/404-southpark.jpg" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
6
blog.bryanroessler.com/Appraisals
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
appraise "jekyll-3" do
|
||||||
|
gem "jekyll", "3.9.4"
|
||||||
|
end
|
||||||
|
appraise "jekyll-4" do
|
||||||
|
gem "jekyll", "4.3.3"
|
||||||
|
end
|
||||||
@@ -1,51 +1,166 @@
|
|||||||
## v4.0.1 2020-07-13
|
## Unreleased version
|
||||||
|
- BREAKING CHANGE: Allow changing the order of the social network links that appear in the footer (#1152)
|
||||||
|
- BREAKING CHANGE: `google-scholar` social network link no longer requires the prefix `citations?user=`; if you previously set this parameter, it needs to be updated (#1189)
|
||||||
|
- Added `mathjax` YAML parameter to allow support for MathJax, used to write LaTeX expressions (#195)
|
||||||
|
- Added explicit support for favicons, you only need to add a `favicon.ico` file to the root directory
|
||||||
|
- The footer of a page always sticks to the bottom, even on short pages (#576)
|
||||||
|
- Added `author` YAML parameter to allow specifying the author(s) of a post (#1220)
|
||||||
|
- Fixed bug where search results broke if a post title had a backslash (#1279)
|
||||||
|
- Fixed bug where hovering over search results showed the text "{desc}" (#1156)
|
||||||
|
- Added social network links for GitLab, Bluesky, Whatsapp, Untappd (#1168, #1218, #1299, #1307)
|
||||||
|
- Support reddit social network link to either be a subreddit or a user (#1371)
|
||||||
|
- Use CSS variables (#661)
|
||||||
|
- Added instructions and example on how to fix image links in project sites (#1171)
|
||||||
|
- Pagination buttons: use nicer arrows, and don't show text on small screens (#1221)
|
||||||
|
- Updated Yelp URL format - if you previously used the `yelp` social network config parameter, you might need to update the config value (#1259)
|
||||||
|
- Added `title-on-all-pages` config setting, that adds the website title to all page titles (#1272)
|
||||||
|
- Change Twitter icon to X (#1193)
|
||||||
|
- Upgraded font-awesome to 6.5.2 (#1330)
|
||||||
|
|
||||||
|
## v6.0.1 (2023-06-08)
|
||||||
|
|
||||||
|
This version has been in the works for a few years. It includes several new features that were highly requested, numerous bug fixes, new documentation, and aggresively encourages migrating from the old Google Universal Analytics to the new Analytics 4.
|
||||||
|
|
||||||
|
#### Breaking changes
|
||||||
|
|
||||||
|
- As of July 2023, Google Universal Analytics is going away and being replaced by Google Analytics 4. Beautiful Jekyll sites that still use the old analytics tag will show a warning to encourage them to move to Analytics 4 (#1096).
|
||||||
|
- More control over RSS feed sharing: previously, an RSS feed was *always* generated, and if the config setting `rss-description` was set then there was an RSS icon in the footer. Now, an RSS feed is only generated when the config setting `rss-description` exists, and an RSS footer icon is only shown if `rss: true` is set in the `social-network-links` config settings.
|
||||||
|
|
||||||
|
#### New parameters and settings
|
||||||
|
|
||||||
|
- Added `navbar-var-length` config setting that allows the navigation menu to be the same length as the longest sub-menu, so that long words in the submenu are not cut off (#765)
|
||||||
|
- Added `post_search` config setting that creates a Search button in the navbar (#770)
|
||||||
|
- Added `edit_page_button` config setting that adds a "Edit page" button to the footer (to edit the current page on GitHub) (#1004)
|
||||||
|
- Added `footer-hover-col` config setting to customize the hover colour of links in the footer (#848)
|
||||||
|
|
||||||
|
#### New features and improvements
|
||||||
|
|
||||||
|
- Made the home page feed more accessible for screen readers (#950)
|
||||||
|
- Added support for giscus comments (#886) and CommentBox (#960)
|
||||||
|
- Added support for Cloudflare Analytics (#797)
|
||||||
|
- Added Reddit in share options of posts (#815)
|
||||||
|
|
||||||
|
#### Bug fixes
|
||||||
|
|
||||||
|
- Fixed page titles, subtitles, and excerpts rendering correctly when there are special characeters in them (#856)
|
||||||
|
- Fixed bug where navbar secondary level dropdown items didn't inherit the same colour as the primary navbar links
|
||||||
|
- Fixed bug where the navbar "burger" collapsed button didn't always revert back to a light colour
|
||||||
|
- Fixed bug where using an image as a navbar title did not render in GitHub Project pages that did not have a custom domain
|
||||||
|
- Fixed bug where image thumbnails on the feed page were always forced into a square rather than maintaining a proper image aspect ratio
|
||||||
|
- Fixed bug where special characters in the title led to broken share tags (#744)
|
||||||
|
- Fixed bug where staticman didn't work jQuery slim version is used (#766)
|
||||||
|
- Fixed very long strings to wrap around the next line rather than go off-screen (#787)
|
||||||
|
|
||||||
|
#### Small changes
|
||||||
|
|
||||||
|
- Updated staticman from using v2 (public servers) to v3 (private servers) due to the public servers becoming obsolete (#775)
|
||||||
|
- Added social network links for Patreon, Medium, Itch.io, Discord, Kaggle, Hackerrank (#783, #788, #907, #961, #978)
|
||||||
|
- Slightly reworked margins and position for avatar image to resolve an alignment issue on Safari
|
||||||
|
- Changed the width at which the navbar collapses to a higher threshold because most modern non-mobile browsers are >1000px
|
||||||
|
|
||||||
|
|
||||||
|
## v5.0.0 (2020-09-15)
|
||||||
|
|
||||||
|
One of the major changes in this version is that a lot of time was spent on rethinking the entire SEO and social media sharing model (how a page looks on eg. Google, Twitter, Facebok). It was redesigned to be more simple and customizable. The new documentation has a section dedicated to SEO and social media sharing of a page. Unfortunately some changes that are not backwards-compatible had to be made.
|
||||||
|
|
||||||
|
#### Breaking changes
|
||||||
|
|
||||||
|
- Renamed `description` YAML parameter to `share-description` to be more clear
|
||||||
|
- Renamed `description` config setting to `rss-description` since it was only used in RSS (the FAQ explains the difference between YAML parameters and config settings if you're confused)
|
||||||
|
- Removed YAML parameter `use-site-title` (you can now specify the exact title using `share-title`)
|
||||||
|
- Removed undocumented YAML parameters `meta-title` and `meta-description`
|
||||||
|
- Removed `link-tags` config setting because it wasn't necessary. If you use tags, there will now always be a tags page created; if you don't use tags there won't be a tags page.
|
||||||
|
- The YAML parameter `show-avatar` is now true by default. This has always been the case for GitHub Pages users, but not for `remote_theme` users. For consistency, it's now the default for everyone. (#715)
|
||||||
|
|
||||||
|
#### New parameters and settings
|
||||||
|
|
||||||
|
- Added `full-width` YAML parameter to allow having full-width pages
|
||||||
|
- Added `feed_show_excerpt` config setting to show/hide the post excerpts on the feed page
|
||||||
|
- Added `feed_show_tags` config setting to show/hide the list of tags on post previews on the feed page
|
||||||
|
- Added `share-title` YAML parameter to give control over the search engine/social media title
|
||||||
|
- Added `last-updated` YAML parameter to show a "Last Updated on" date for blog posts
|
||||||
|
- Added `before-content` and `after-content` YAML parameters that allow you to add some common HTML before the main content of a page (below the title) or after the main content (above the footer). Works in a similar way to `footer-extra`.
|
||||||
|
- Added `head-extra` YAML parameter which is similar to `footer-extra` but is used to include custom HTML code in a page's `<head>` tag
|
||||||
|
- Added `site-js` config setting to provide JavaScript files that are used on all pages in the site
|
||||||
|
|
||||||
|
#### New features and improvements
|
||||||
|
|
||||||
|
- Improved the `footer-extra` YAML parameter to support multiple files instead of only a single file
|
||||||
|
- Added automatic navbar color detection (#702)
|
||||||
|
- When `nav-short` is turned on, the avatar will also be shorter
|
||||||
|
- Changed navbar and footer background colour to be slightly darker, for better contrast with the default white page background for accessibility reasons
|
||||||
|
- Changed the behaviour of `site-css` to include site-wide CSS file **before** instead of after page-specific files
|
||||||
|
- Renamed internal css/js files from "main" to "beautifuljekyll" to make it easier for users to troubleshoot
|
||||||
|
- Added alt text to all images for better accessibility
|
||||||
|
- Made thumbnail images square instead of circles, as users reported that circles cut off important parts of images
|
||||||
|
|
||||||
|
#### Bug fixes
|
||||||
|
|
||||||
|
- Fixed rendering issues with `nav-short` parameter that caused the body of the page to start too low
|
||||||
|
- Fixed some CSS styles that broke during the bootstrap 4 migration (#716)
|
||||||
|
|
||||||
|
#### Library upgrades
|
||||||
|
|
||||||
|
- Upgraded kramdown to version 2.3.0 to fix security issues
|
||||||
|
- Upgraded jQuery to version 3.5.1 to fix a couple security vulnerabilities with the previous version
|
||||||
|
|
||||||
|
## v4.1.0 (2020-08-08)
|
||||||
|
|
||||||
|
- Added Open Graph `site_name` meta field to pages automatically
|
||||||
|
- Added `text-col` config setting for main text color (#694)
|
||||||
|
- Added `keywords` config setting to set the meta keywords on all pages (for SEO purposes) (#691)
|
||||||
|
- Added `mobile-theme-col` config setting to allow a mobile theme colour (#692)
|
||||||
|
- Added `site-css` config setting in the config file to provide CSS files that are used on all pages in the site (#695)
|
||||||
|
- Added YAML parameter `description`: creates the meta description on a page, intended to provide a brief description of the page for search engines and when the page is shared (#690)
|
||||||
|
|
||||||
|
## v4.0.1 (2020-07-13)
|
||||||
|
|
||||||
- Fixed staticman comments UI that was broken since the migration to bootstrap 4
|
- Fixed staticman comments UI that was broken since the migration to bootstrap 4
|
||||||
|
|
||||||
## v4.0.0 2020-07-12
|
## v4.0.0 (2020-07-12)
|
||||||
|
|
||||||
- **BREAKING CHANGE** Replace `image` YAML parameter with `thumbnail-img` to be more clear
|
- **BREAKING CHANGE** Replace `image` YAML parameter with `thumbnail-img` to be more clear
|
||||||
- **MAJOR BEHAVIOUR CHANGE** Don't use the thumbnail as the avatar image
|
- **MAJOR BEHAVIOUR CHANGE** Don't use the thumbnail as the avatar image
|
||||||
- Cover image will automatically be used as thumbnail if none is provided
|
- Cover image will automatically be used as thumbnail if none is provided
|
||||||
- Image to share on social media will use the cover image or thumbnail if none is provided
|
- Image to share on social media will use the cover image or thumbnail if none is provided
|
||||||
- All images (social media share, thumbnail, cover) can use either relative or absoluate paths.
|
- All images (social media share, thumbnail, cover) can use either relative or absoluate paths.
|
||||||
- Fixed issue where if a dropdown menu was the last item in the menu bar, it did not have a proper margin on the right
|
- Fixed issue where if a dropdown menu was the last item in the menu bar, it did not have a proper margin on the right
|
||||||
- Add social network links: Mastodon (#646), Google Scholar, ORCID (#670)
|
- Added social network links: Mastodon (#646), Google Scholar, ORCID (#670)
|
||||||
- Add support for sharing pages on new social network: VK (#657)
|
- Added support for sharing pages on new social network: VK (#657)
|
||||||
- Use Open Graph type 'article' for blog posts (#669)
|
- Use Open Graph type 'article' for blog posts (#669)
|
||||||
- Use Twitter's large sumary card (large image) when there is a cover image, thumbnail image, or share image specified (#668)
|
- Use Twitter's large sumary card (large image) when there is a cover image, thumbnail image, or share image specified (#668)
|
||||||
- Make post images in the feed page smaller on smaller devices
|
- Made post images in the feed page smaller on smaller devices
|
||||||
- Fixed jQuery version in staticman (#671)
|
- Fixed jQuery version in staticman (#671)
|
||||||
|
|
||||||
## v3.0.0 2020-05-07
|
## v3.0.0 (2020-05-07)
|
||||||
|
|
||||||
- **BREAKING CHANGE** Upgraded from Bootstrap 3.3.2 to 4.4.1. This involved a major rewrite of most components. This shouldn't affect any users unless you have custom HTML/CSS code which the new Bootstrap could have broken.
|
- **BREAKING CHANGE** Upgraded from Bootstrap 3.3.2 to 4.4.1. This involved a major rewrite of most components. This shouldn't affect any users unless you have custom HTML/CSS code which the new Bootstrap could have broken.
|
||||||
- **BREAKING CHANGE** Renamed `bigimg` YAML parameter to `cover-img`
|
- **BREAKING CHANGE** Renamed `bigimg` YAML parameter to `cover-img`
|
||||||
- **BREAKING CHANGE** Removed `googlefonts` YAML parameter since googlefonts are just CSS so they can be loaded via `ext-css`
|
- **BREAKING CHANGE** Removed `googlefonts` YAML parameter since googlefonts are just CSS so they can be loaded via `ext-css`
|
||||||
- **BREAKING CHANGE** Upgraded from jQuery 1.11.2 to 3.4.2. This should not affect most people
|
- **BREAKING CHANGE** Upgraded from jQuery 1.11.2 to 3.4.2. This should not affect most people
|
||||||
- Added `navbar-border-col` setting in the config file
|
- Added `navbar-border-col` setting in the config file
|
||||||
- Add accessibility features where possible
|
- Added accessibility features where possible
|
||||||
- Made the theme completely responsive by rewriting all CSS to use 'rem' instead of 'px'
|
- Made the theme completely responsive by rewriting all CSS to use 'rem' instead of 'px'
|
||||||
- Rewrite and simplify some JavaScript code to use CSS or Bootstrap alternatives that weren't available in 2015
|
- Rewrote and simplified some JavaScript code to use CSS or Bootstrap alternatives that weren't available in 2015
|
||||||
- Remove most of the sample posts so that users only have two sample posts to learn from
|
- Removed most of the sample posts so that users only have two sample posts to learn from
|
||||||
- Improvements to the README instructions
|
- Improvements to the README instructions
|
||||||
|
|
||||||
## v2.3.0 2020-04-29
|
## v2.3.0 (2020-04-29)
|
||||||
|
|
||||||
- Add YAML option `footer-extra` for including custom content in the footer
|
- Added YAML parameter `footer-extra` for including custom content in the footer
|
||||||
- Fix issue: linking to a specific part of a page resulted in scrolling too far (#69)
|
- Fixed issue: linking to a specific part of a page resulted in scrolling too far (#69)
|
||||||
- Add YAML option `nav-short` to have navbar permanently collapsed
|
- Added YAML parameter `nav-short` to have navbar permanently collapsed
|
||||||
- Add social network link: Calendly
|
- Added social network link: Calendly
|
||||||
- Fix bug where RSS link in footer was showing even when turned off
|
- Fixed bug where RSS link in footer was showing even when turned off
|
||||||
|
|
||||||
## v2.2.0 2020-04-27
|
## v2.2.0 (2020-04-27)
|
||||||
|
|
||||||
- Add social network link: Telegram (#625) (thanks @mashed-potatoes)
|
- Added social network link: Telegram (#625) (thanks @mashed-potatoes)
|
||||||
- Moved the demo site to an independent URL: https://beautifuljekyll.com
|
- Moved the demo site to an independent URL: https://beautifuljekyll.com
|
||||||
- Major documentation overhaul and cleanup of old files
|
- Major documentation overhaul and cleanup of old files
|
||||||
- Fix a few bugs from the remote_theme migration
|
- Fixed a few bugs from the remote_theme migration
|
||||||
|
|
||||||
## v2.0.0 2020-04-26
|
## v2.0.0 (2020-04-26)
|
||||||
|
|
||||||
- Beautiful-Jekyll v2.0.0 available as an official Ruby gem
|
- Beautiful-Jekyll v2.0.0 available as an official Ruby gem
|
||||||
- Beautifull-Jekyll now supports the `remote_theme` config (#339) (thanks @gpotter2 and @skalee)
|
- Beautifull-Jekyll now supports the `remote_theme` config (#339) (thanks @gpotter2 and @skalee)
|
||||||
@@ -130,3 +245,4 @@
|
|||||||
... Many small changes because the site was in its infancy
|
... Many small changes because the site was in its infancy
|
||||||
|
|
||||||
**2015-03-12** Beautiful Jekyll version 0.0000001 is released!
|
**2015-03-12** Beautiful Jekyll version 0.0000001 is released!
|
||||||
|
|
||||||
|
|||||||
@@ -2,5 +2,4 @@
|
|||||||
|
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gemspec
|
gemspec
|
||||||
|
|
||||||
@@ -1,75 +1,172 @@
|
|||||||
PATH
|
PATH
|
||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
beautiful-jekyll-theme (4.0.1)
|
beautiful-jekyll-theme (6.0.1)
|
||||||
jekyll (~> 3.8)
|
jekyll (>= 3.9.3)
|
||||||
jekyll-paginate (~> 1.1)
|
jekyll-paginate (~> 1.1)
|
||||||
jekyll-sitemap (~> 1.4)
|
jekyll-sitemap (~> 1.4)
|
||||||
|
kramdown (~> 2.3)
|
||||||
|
kramdown-parser-gfm (~> 1.1)
|
||||||
|
webrick (~> 1.8)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
addressable (2.7.0)
|
addressable (2.8.7)
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
public_suffix (>= 2.0.2, < 7.0)
|
||||||
|
appraisal (2.5.0)
|
||||||
|
bundler
|
||||||
|
rake
|
||||||
|
thor (>= 0.14.0)
|
||||||
colorator (1.1.0)
|
colorator (1.1.0)
|
||||||
concurrent-ruby (1.1.6)
|
concurrent-ruby (1.3.4)
|
||||||
em-websocket (0.5.1)
|
em-websocket (0.5.3)
|
||||||
eventmachine (>= 0.12.9)
|
eventmachine (>= 0.12.9)
|
||||||
http_parser.rb (~> 0.6.0)
|
http_parser.rb (~> 0)
|
||||||
eventmachine (1.2.7)
|
eventmachine (1.2.7)
|
||||||
ffi (1.13.1)
|
ffi (1.17.0)
|
||||||
|
ffi (1.17.0-aarch64-linux-gnu)
|
||||||
|
ffi (1.17.0-aarch64-linux-musl)
|
||||||
|
ffi (1.17.0-arm-linux-gnu)
|
||||||
|
ffi (1.17.0-arm-linux-musl)
|
||||||
|
ffi (1.17.0-arm64-darwin)
|
||||||
|
ffi (1.17.0-x86-linux-gnu)
|
||||||
|
ffi (1.17.0-x86-linux-musl)
|
||||||
|
ffi (1.17.0-x86_64-darwin)
|
||||||
|
ffi (1.17.0-x86_64-linux-gnu)
|
||||||
|
ffi (1.17.0-x86_64-linux-musl)
|
||||||
forwardable-extended (2.6.0)
|
forwardable-extended (2.6.0)
|
||||||
http_parser.rb (0.6.0)
|
google-protobuf (3.25.5)
|
||||||
i18n (0.9.5)
|
google-protobuf (3.25.5-aarch64-linux)
|
||||||
|
google-protobuf (3.25.5-arm64-darwin)
|
||||||
|
google-protobuf (3.25.5-x86-linux)
|
||||||
|
google-protobuf (3.25.5-x86_64-darwin)
|
||||||
|
google-protobuf (3.25.5-x86_64-linux)
|
||||||
|
http_parser.rb (0.8.0)
|
||||||
|
i18n (1.14.6)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
jekyll (3.8.7)
|
jekyll (4.3.4)
|
||||||
addressable (~> 2.4)
|
addressable (~> 2.4)
|
||||||
colorator (~> 1.0)
|
colorator (~> 1.0)
|
||||||
em-websocket (~> 0.5)
|
em-websocket (~> 0.5)
|
||||||
i18n (~> 0.7)
|
i18n (~> 1.0)
|
||||||
jekyll-sass-converter (~> 1.0)
|
jekyll-sass-converter (>= 2.0, < 4.0)
|
||||||
jekyll-watch (~> 2.0)
|
jekyll-watch (~> 2.0)
|
||||||
kramdown (~> 1.14)
|
kramdown (~> 2.3, >= 2.3.1)
|
||||||
|
kramdown-parser-gfm (~> 1.0)
|
||||||
liquid (~> 4.0)
|
liquid (~> 4.0)
|
||||||
mercenary (~> 0.3.3)
|
mercenary (>= 0.3.6, < 0.5)
|
||||||
pathutil (~> 0.9)
|
pathutil (~> 0.9)
|
||||||
rouge (>= 1.7, < 4)
|
rouge (>= 3.0, < 5.0)
|
||||||
safe_yaml (~> 1.0)
|
safe_yaml (~> 1.0)
|
||||||
|
terminal-table (>= 1.8, < 4.0)
|
||||||
|
webrick (~> 1.7)
|
||||||
jekyll-paginate (1.1.0)
|
jekyll-paginate (1.1.0)
|
||||||
jekyll-sass-converter (1.5.2)
|
jekyll-sass-converter (3.0.0)
|
||||||
sass (~> 3.4)
|
sass-embedded (~> 1.54)
|
||||||
jekyll-sitemap (1.4.0)
|
jekyll-sitemap (1.4.0)
|
||||||
jekyll (>= 3.7, < 5.0)
|
jekyll (>= 3.7, < 5.0)
|
||||||
jekyll-watch (2.2.1)
|
jekyll-watch (2.2.1)
|
||||||
listen (~> 3.0)
|
listen (~> 3.0)
|
||||||
kramdown (1.17.0)
|
kramdown (2.5.1)
|
||||||
liquid (4.0.3)
|
rexml (>= 3.3.9)
|
||||||
listen (3.2.1)
|
kramdown-parser-gfm (1.1.0)
|
||||||
|
kramdown (~> 2.0)
|
||||||
|
liquid (4.0.4)
|
||||||
|
listen (3.9.0)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
mercenary (0.3.6)
|
mercenary (0.4.0)
|
||||||
pathutil (0.16.2)
|
pathutil (0.16.2)
|
||||||
forwardable-extended (~> 2.6)
|
forwardable-extended (~> 2.6)
|
||||||
public_suffix (4.0.5)
|
public_suffix (6.0.1)
|
||||||
rake (12.3.3)
|
rake (12.3.3)
|
||||||
rb-fsevent (0.10.4)
|
rb-fsevent (0.11.2)
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.11.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
rouge (3.21.0)
|
rexml (3.3.9)
|
||||||
|
rouge (4.5.1)
|
||||||
safe_yaml (1.0.5)
|
safe_yaml (1.0.5)
|
||||||
sass (3.7.4)
|
sass-embedded (1.77.5-aarch64-linux-android)
|
||||||
sass-listen (~> 4.0.0)
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
sass-listen (4.0.0)
|
sass-embedded (1.77.5-aarch64-linux-gnu)
|
||||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
rb-inotify (~> 0.9, >= 0.9.7)
|
sass-embedded (1.77.5-aarch64-linux-musl)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-aarch64-mingw-ucrt)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-arm-linux-androideabi)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-arm-linux-gnueabihf)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-arm-linux-musleabihf)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-arm64-darwin)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-riscv64-linux-android)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-riscv64-linux-gnu)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-riscv64-linux-musl)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-x86-cygwin)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-x86-linux-android)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-x86-linux-gnu)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-x86-linux-musl)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-x86-mingw-ucrt)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-x86_64-cygwin)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-x86_64-darwin)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-x86_64-linux-android)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-x86_64-linux-gnu)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
sass-embedded (1.77.5-x86_64-linux-musl)
|
||||||
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
|
terminal-table (3.0.2)
|
||||||
|
unicode-display_width (>= 1.1.1, < 3)
|
||||||
|
thor (1.3.2)
|
||||||
|
unicode-display_width (2.6.0)
|
||||||
|
webrick (1.9.1)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
aarch64-linux
|
||||||
|
aarch64-linux-android
|
||||||
|
aarch64-linux-gnu
|
||||||
|
aarch64-linux-musl
|
||||||
|
aarch64-mingw-ucrt
|
||||||
|
arm-linux-androideabi
|
||||||
|
arm-linux-gnu
|
||||||
|
arm-linux-gnueabihf
|
||||||
|
arm-linux-musl
|
||||||
|
arm-linux-musleabihf
|
||||||
|
arm64-darwin
|
||||||
|
riscv64-linux-android
|
||||||
|
riscv64-linux-gnu
|
||||||
|
riscv64-linux-musl
|
||||||
|
x86-cygwin
|
||||||
|
x86-linux
|
||||||
|
x86-linux-android
|
||||||
|
x86-linux-gnu
|
||||||
|
x86-linux-musl
|
||||||
|
x86-mingw-ucrt
|
||||||
|
x86_64-cygwin
|
||||||
|
x86_64-darwin
|
||||||
|
x86_64-linux-android
|
||||||
|
x86_64-linux-gnu
|
||||||
|
x86_64-linux-musl
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
appraisal (~> 2.5)
|
||||||
beautiful-jekyll-theme!
|
beautiful-jekyll-theme!
|
||||||
bundler (>= 1.16)
|
bundler (>= 1.16)
|
||||||
rake (~> 12.0)
|
rake (~> 12.0)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.0.2
|
2.5.22
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2020 Dean Attali
|
Copyright (c) 2015-2018 Dean Attali
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -19,3 +19,12 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
staticman integration
|
||||||
|
=================================================================================
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2013-2018 Michael Rose
|
||||||
|
|||||||
@@ -1,108 +1,85 @@
|
|||||||
# Beautiful Jekyll
|
# Beautiful Jekyll
|
||||||
|
|
||||||
[](https://xscode.com/daattali/beautiful-jekyll)
|
[](https://www.paypal.me/daattali/20)
|
||||||
[](https://badge.fury.io/rb/beautiful-jekyll-theme)
|
[](https://badge.fury.io/rb/beautiful-jekyll-theme)
|
||||||
|
|
||||||
> *Copyright 2020 [Dean Attali](https://deanattali.com)*
|
> *Copyright 2019 [Dean Attali](https://deanattali.com)*
|
||||||
|
|
||||||
**Beautiful Jekyll** is a ready-to-use template to help you create a beautiful website quickly. Perfect for personal sites, blogs, or simple project websites. [Check out a demo](https://beautifuljekyll.com) of what you'll get after just two minutes. You can also look at [my personal website](https://deanattali.com) to see it in use, or see examples of websites other people created using this theme [below](#showcased-users-success-stories).
|
**Beautiful Jekyll** is a ready-to-use template to help you create an awesome website quickly. Perfect for personal sites, blogs, or simple project websites. [Check out a demo](https://deanattali.com/beautiful-jekyll) of what you'll get after just two minutes. You can also look at [my personal website](https://deanattali.com) to see it in use, or see examples of websites other people created using this theme [here](#showcased-users-success-stories).
|
||||||
|
|
||||||
**If you enjoy this theme, please consider [sponsoring me](https://github.com/sponsors/daattali) for developing and maintaining it for over 5 years.**
|
**If you enjoy this theme, please consider [supporting me](https://www.paypal.me/daattali/20) for developing and maintaining this template.**
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a style="display: inline-block;" href="https://github.com/sponsors/daattali">
|
<a href="https://www.paypal.me/daattali">
|
||||||
<img height="40" src="https://i.imgur.com/034B8vq.png" />
|
<img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" />
|
||||||
</a>
|
|
||||||
|
|
||||||
<a style="display: inline-block;" href="https://paypal.me/daattali">
|
|
||||||
<img height="40" src="https://camo.githubusercontent.com/0e9e5cac101f7093336b4589c380ab5dcfdcbab0/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74776f6c66736f6e2f70617970616c2d6769746875622d627574746f6e40312e302e302f646973742f627574746f6e2e737667" />
|
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## Table of contents
|
### Table of contents
|
||||||
|
|
||||||
- [Features](#features)
|
- [Prerequisites](#prerequisites)
|
||||||
- [**Build your website in 3 steps**](#build-your-website-in-3-steps)
|
- [Build your website in 3 steps](#build-your-website-in-3-steps)
|
||||||
- [Add your own content](#add-your-own-content)
|
- [Add your own content](#add-your-own-content)
|
||||||
- [Customizing parameters for each page](#customizing-parameters-for-each-page)
|
- [Last important thing: YAML front matter ("parameters" for a page)](#last-important-thing-yaml-front-matter-parameters-for-a-page)
|
||||||
- [Supported parameters](#supported-parameters)
|
- [Features](#features)
|
||||||
|
- [Creating a User Page vs a Project Page](#creating-a-user-page-vs-a-project-page)
|
||||||
- [Showcased users (success stories!)](#showcased-users-success-stories)
|
- [Showcased users (success stories!)](#showcased-users-success-stories)
|
||||||
|
- [Advanced: local development](#advanced-local-development-using-docker)
|
||||||
- [FAQ and support](#faq-and-support)
|
- [FAQ and support](#faq-and-support)
|
||||||
- [Credits and contributions](#credits)
|
- [Credits and contributions](#credits)
|
||||||
|
|
||||||
# Features
|
## Prerequisites
|
||||||
|
|
||||||
- **SIMPLE**: The primary goal of Beautiful Jekyll is to allow literally *anyone* to create a website in a few minutes.
|
- You need to have a GitHub account. If you don't have one, [sign up here](https://github.com/join) - it takes one minute. This is where your website will live - if you sign up with username `johnsmith` then your website will be `https://johnsmith.github.io`.
|
||||||
- **Modern**: Uses the latest best practices and technologies to achieve nearly perfect scores on Google Chrome's Audit.
|
- It would be helpful to understand what Markdown is and how to write it. Markdown is just a way to take a piece of text and format it to look a little nicer. For example, this whole instruction set that you're reading is written in markdown - it's just text with some words being bold/larger/italicized/etc. I recommend taking 5 minutes to learn markdown [with this amazingly easy yet useful tutorial](https://markdowntutorial.com/).
|
||||||
- **Mobile-first**: Designed to look great on both large-screen and small-screen (mobile) devices.
|
|
||||||
- **Highly customizable**: Many personalization settings such as changing the background colour/image, adding a logo.
|
|
||||||
- **Flexible usage**: Use Beautiful Jekyll directly on GitHub or using a Ruby gem - choose the best [development method](#build-your-website-in-3-steps) for you.
|
|
||||||
- **Battle-tested**: By using Beautiful Jekyll, you'll be joining tens of thousands of users who used this theme since 2015.
|
|
||||||
- **Links to your social media**: You can easily add links to any of your social media accounts in the footer of every page.
|
|
||||||
- **Comments support**: Add comments to any page using either [Disqus](https://disqus.com/), [Facebook comments](https://developers.facebook.com/docs/plugins/comments), [Utterances](https://utteranc.es/), or [Staticman](https://staticman.net).
|
|
||||||
- **Share blog posts on social media**: By default, all blog posts have buttons to allow people to share on Twitter/Facebook/LinkedIn.
|
|
||||||
- **Tags**: Any blog post can be tagged with keywords, and an index page showing all the tags is automatically generated.
|
|
||||||
- **Tracking analytics**: Easily integrate Google Analytics, or other analytics platforms, to track visits to your website.
|
|
||||||
- **Photos support**: Any page can have a cover photo around its title, and any blog post can have an associated image.
|
|
||||||
- **More advanced features**: I wrote [a blog post](https://deanattali.com/2015/03/12/beautiful-jekyll-how-to-build-a-site-in-minutes/) describing some more advanced features that I used in my website that can be used in any beautiful-jekyll site.
|
|
||||||
|
|
||||||
# Build your website in 3 steps
|
## Build your website in 3 steps
|
||||||
|
|
||||||
There's a very easy way to use this theme, and there's a hard way. For most people (including myself!), I suggest going the easy route. If you're an advanced user and want to tinker with the hard way (using ruby gems), then [skip the easy way](https://github.com/daattali/beautiful-jekyll#the-hard-way-using-ruby-gems) if you know what you're doing.
|
|
||||||
|
|
||||||
## The easy way (recommended!)
|
|
||||||
|
|
||||||
Getting started is *literally* as easy as 1-2-3 :smile:
|
Getting started is *literally* as easy as 1-2-3 :smile:
|
||||||
|
Scroll down to see the steps involved, but here is a 40-second video just as a reference as you work through the steps.
|
||||||
|
|
||||||
Scroll down to see the steps involved, but here is a 40-second video just as a reference as you work through the steps. If you don't already have a [GitHub account](https://github.com/join), you'll need to sign up.
|

|
||||||
|
|
||||||

|
### 1. Fork this repository
|
||||||
|
|
||||||
### 1. Fork this project
|
(Assuming you are on this page and logged into GitHub) Fork this repository by clicking the *Fork* button on the top right corner. Forking means that you now copied this whole project and all the files into your account.
|
||||||
|
|
||||||
Fork this project by clicking the __*Fork*__ button at the top right corner of this page. Forking means that you now copied this entire project and all the files into your account.
|
### 2. Rename the repository to `<yourusername>.github.io`
|
||||||
|
|
||||||
### 2. Rename the project to `<yourusername>.github.io`
|
This will create a GitHub User page ready with the **Beautiful Jekyll** template that will be available at `https://<yourusername>.github.io` within a couple minutes. To do this, click on *Settings* at the top (the cog icon) and there you'll have an option to rename.
|
||||||
|
|
||||||
Click on __*Settings*__ at the top (the cog icon) and on that page you'll have an option to rename the project (*repository name*). This will create a website with the **Beautiful Jekyll** template that will be available at `https://<yourusername>.github.io` within a couple minutes. Check out the [FAQ](#faq-and-support) if you want to use a different project name.
|
|
||||||
|
|
||||||
### 3. Customize your website settings
|
### 3. Customize your website settings
|
||||||
|
|
||||||
Edit the `_config.yml` file to change any settings you want. To edit the file, click on it to view the file and then click on the pencil icon to edit it (watch the video tutorial above if you're confused). The settings in the file are self-explanatory and I added comments inside the file to help you understand what each setting does. Any line that begins with a hashtag (`#`) is a comment, and the other lines are actual settings.
|
Edit the `_config.yml` file to change all the settings to reflect your site. To edit the file, click on it and then click on the pencil icon (watch the video tutorial above if you're confused). The settings in the file are fairly self-explanatory and I added comments inside the file to help you further. Any line that begins with a pound sign (`#`) is a comment, and the rest of the lines are actual settings.
|
||||||
|
|
||||||
### 4. Congratulations! You have a website!
|
Another way to edit the config file (or any other file) is to use [prose.io](https://prose.io/), which is just a simple interface to allow you to more intuitively edit files or add new files to your project.
|
||||||
|
|
||||||
After you save your changes to the config file (by clicking on *Commit changes* as the video tutorial shows), your website should be ready in a minute or two at `https://<yourusername>.github.io`. Every time you make a change to any file, your website will get rebuilt and should be updated in about a minute or so. Your website will be initialized with several sample blog posts and a couple other pages.
|
After you save your changes to the config file (by clicking on *Commit changes* as the video tutorial shows), your website should be ready in a minute or two at `https://<yourusername>.github.io`. Every time you make a change to any file, your website will get rebuilt and should be updated in about a minute or so.
|
||||||
|
|
||||||
Note that in the video above I only edited one setting in the `_config.yml` file. **You should actually go through the rest of the settings as well. Don't be lazy, go through all the settings :)**
|
You can now visit your shiny new website, which will be seeded with several sample blog posts and a couple other pages. Your website is at `https://<yourusername>.github.io` (replace `<yourusername>` with your user name). Do not add `www` to the URL - it will not work!
|
||||||
|
|
||||||
## The hard way (using ruby gems)
|
**Note:** The video above goes through the setup for a user with username `daattalitest`. I only edited one setting in the `_config.yml` file in the video, but **you should actually go through the rest of the settings as well. Don't be lazy, go through all the settings :)**
|
||||||
|
|
||||||
If you followed the easy method above, then you already have your site and you can skip this section! If you want to install beautiful-jekyll using ruby gems instead, follow the [advanced installation instructions](https://beautifuljekyll.com/getstarted/#install-steps-hard).
|
## Add your own content
|
||||||
|
|
||||||
|
To add pages to your site, you can either write a markdown file (`.md`) or you can write an HTML file directly. It is much easier to write markdown than HTML, so I suggest you do that (use the [tutorial I mentioned above](https://markdowntutorial.com/) if you need to learn markdown). You can look at some files on this site to get an idea of how to write markdown. To look at existing files, click on any file that ends in `.md`, for example [`aboutme.md`](./aboutme.md). On the next page you can see some nicely formatted text (there is a word in bold, a link, bullet points), and if you click on the pencil icon to edit the file, you will see the markdown that generated the pretty text. Very easy!
|
||||||
|
|
||||||
# Add your own content
|
In contrast, look at [`index.html`](./index.html). That's how your write HTML - not as pretty. So stick with markdown if you don't know HTML.
|
||||||
|
|
||||||
To add pages to your site, you can either write a markdown file (`.md`) or you can write an HTML file. It's much easier to write markdown than HTML, so I suggest you do that ([here's a great tutorial](https://markdowntutorial.com/) if you need to learn markdown in 5 minutes). You can look at some files on this demo site to get an idea of how to write markdown.
|
Any file that you add inside the [`_posts`](./_posts) directory will be treated as a blog entry. You can look at the existing files there to get an idea of how to write blog posts. After you successfully add your own post, you can delete the existing files inside [`_posts`](./_posts) to remove the sample posts, as those are just demo posts to help you learn.
|
||||||
|
|
||||||
To look at existing files, click on any file that ends in `.md`, for example [`aboutme.md`](./aboutme.md). On the next page you can see some nicely formatted text (there's a word in bold, a link, a few bullet points), and if you click on the pencil icon to edit the file, you'll see the markdown code that generated the pretty text. Very easy!
|
As mentioned previously, you can use [prose.io](https://prose.io/) to add or edit files instead of doing it directly on GitHub, it can be a little easier that way.
|
||||||
|
|
||||||
In contrast, look at [`tags.html`](./tags.html). That's how your write HTML - not as pretty. So stick with markdown if you don't know HTML.
|
## Last important thing: YAML front matter ("parameters" for a page)
|
||||||
|
|
||||||
Any markdown or HTML file that you create will be available on your website under `https://<yourusername>.github.io/<pagename>`. For example, if you create a file `about.md` (or `about.html`) then it'll exist at `https://<yourusername>.github.io/about`.
|
In order to have your new pages use this template and not just be plain pages, you need to add [YAML front matter](https://jekyllrb.com/docs/front-matter/) to the top of each page. This is where you'll give each page some parameters that I made available, such as a title and subtitle. I'll go into more detail about what parameters are available later. If you don't want to use any parameters on your new page (this also means having no title), then use the empty YAML front matter:
|
||||||
|
|
||||||
Files you create inside the [`_posts`](./_posts) directory will be treated as blog entries. You can look at the existing files there to get an idea of how to write blog posts. Note the format of the blog post files - they must follow the naming convention of `YEAR-MONTH-DAY-title.md`. After you successfully add your own post, you can delete the existing files inside [`_posts`](./_posts) to remove the sample posts, as those are just demo posts to help you learn.
|
|
||||||
|
|
||||||
# Customizing parameters for each page
|
|
||||||
|
|
||||||
**One last important thing**: In order to have your new pages use this template and not just be plain HTML pages, **you must add [YAML front matter](https://jekyllrb.com/docs/front-matter/) to the top of each page**. This is where you'll be able to give each page some extra parameters such as a title, a subtitle, or an image. [Below is a list of all available parameters](#supported-parameters). If you don't want to use any parameters on a page (this also means having no title), then use the empty YAML front matter:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
If you do want to use any parameters, write them between these two lines. For example, you can have this at the top of a page:
|
If you want to use any parameters, write them between the two lines. For example, you can have this at the top of a page:
|
||||||
|
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
@@ -111,77 +88,120 @@ subtitle: Here you'll find all the ways to get in touch with me
|
|||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
You can look at the top of [`aboutme.md`](https://raw.githubusercontent.com/daattali/beautiful-jekyll/master/aboutme.md) as an example.
|
You can look at the top of [`aboutme.md`](./aboutme.md) or [`index.html`](./index.html) as more examples.
|
||||||
|
|
||||||
**Important takeaway: ALWAYS add the YAML front matter, which is two lines with three dashes, to EVERY page. If you have any parameters, they go between the two lines.**
|
**Important takeaway: ALWAYS add the YAML front matter, which is two lines with three dashes, to EVERY page. If you have any parameters, they go between the two lines.**
|
||||||
|
If you don't include YAML then your file will not use the template.
|
||||||
|
|
||||||
If you don't include YAML then your file will not use this template.
|
## Features
|
||||||
|
|
||||||
# Supported parameters
|
### Mobile-first
|
||||||
|
**Beautiful Jekyll** is designed to look great on both large-screen and small-screen (mobile) devices. Load up your site on your phone or your gigantic iMac, and the site will work well on both, though it will look slightly different.
|
||||||
|
|
||||||
Below is a list of the parameters that **Beautiful Jekyll** supports (any of these can be added to the YAML front matter of any page). Remember to also look in the `_config.yml` file to see additional settings.
|
### Customizable
|
||||||
|
|
||||||
## Main paramaters
|
Many personalization settings in `_config.yml`, such as setting your name and site's description, changing the background colour/image, setting your avatar to add a little image in the navigation bar, customizing the links in the menus, customizing what social media links to show in the footer, etc.
|
||||||
|
|
||||||
These are the basic YAML parameters that you are most likely to use on most pages.
|
### Allowing users to leave comments
|
||||||
|
|
||||||
|
If you want to enable comments on your site, Beautiful Jekyll supports either the [Disqus](https://disqus.com/) comments plugin, [Facebook](https://developers.facebook.com/docs/plugins/comments) comments, [Staticman](https://staticman.net) or [JustComments](https://just-comments.com). If any of these are set in the configuration file, then all blog posts will have comments turned on by default. To turn off comments on a particular blog post, add `comments: false` to the YAML front matter. If you want to add comments on the bottom of a non-blog page, add `comments: true` to the YAML front matter.
|
||||||
|
|
||||||
|
#### Disqus comments
|
||||||
|
|
||||||
|
To use Disqus, simply sign up to [Disqus](https://disqus.com/) and add your Disqus shortname to the `disqus` parameter in the `_config.yml` file.
|
||||||
|
|
||||||
|
#### Facebook comments
|
||||||
|
|
||||||
|
To use Facebook comments, create a Facebook app using [Facebook developers](https://developers.facebook.com/docs/apps/register), and add the Facebook App ID to the `fb_comment_id` parameter in `_config.yml`.
|
||||||
|
|
||||||
|
#### Staticman comments
|
||||||
|
|
||||||
|
To use Staticman, you first need to invite `staticmanlab` as a collaborator to your repository (by going to your repository **Settings** page, navigate to the **Collaborators** tab, and add the username `staticmanlab`), and then accept the invitation by going to `https://staticman3.herokuapp.com/v3/connect/github/<username>/<repo-name>`. Lastly, fill in the `staticman` parameters in the Staticman section of `_config.yml`. You may also choose a different Staticman instance other than `staticmanlab`.
|
||||||
|
|
||||||
|
Optional: You may want to configure a webhook to prevent old inactive branches (representing approved comments) from stacking up. You can refer to [Staticman's documentation](https://staticman.net/docs/webhooks) for details. Make sure to input the **Payload URL** according to your chosen `endpoint`. For example, the default `endpoint` is `https://staticman3.herokuapp.com/v3/entry/github/`, so the corresponding **Payload URL** should be `https://staticman3.herokuapp.com/v1/webhook`.
|
||||||
|
|
||||||
|
#### JustComments
|
||||||
|
|
||||||
|
To use JustComments you first need to have an account. After you just need to copy the API key to the `just-comments` property in `_config.yml` file.
|
||||||
|
|
||||||
|
### Adding Google Analytics to track page views
|
||||||
|
|
||||||
|
Beautiful Jekyll lets you easily add Google Analytics to all your pages. This will let you track all sorts of information about visits to your website, such as how many times each page is viewed and where (geographically) your users come from. To add Google Analytics, simply sign up to [Google Analytics](https://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `google_analytics` parameter in `_config.yml`.
|
||||||
|
|
||||||
|
### Sharing blog posts on social media
|
||||||
|
|
||||||
|
By default, all blog posts will have buttons at the bottom of the post to allow people to share the current page on Twitter/Facebook/LinkedIn. You can choose to enable/disable specific social media websites in the `_config.yml` file. You can also turn off the social media buttons on specific blog posts using `social-share: false` in the YAML front matter.
|
||||||
|
|
||||||
|
### RSS feed
|
||||||
|
|
||||||
|
Beautiful Jekyll automatically generates a simple RSS feed of your blog posts, to allow others to subscribe to your posts. If you want to add a link to your RSS feed in the footer of every page, find the `rss: false` line in `_config.yml` and change it to `rss: true`.
|
||||||
|
|
||||||
|
### Page types
|
||||||
|
|
||||||
|
- **post** - To write a blog post, add a markdown or HTML file in the `_posts` folder. As long as you give it YAML front matter (the two lines of three dashes), it will automatically be rendered like a blog post. Look at the existing blog post files to see examples of how to use YAML parameters in blog posts.
|
||||||
|
- **page** - Any page outside the `_posts` folder that uses YAML front matter will have a very similar style to blog posts.
|
||||||
|
- **minimal** - If you want to create a page with minimal styling (ie. without the bulky navigation bar and footer), assign `layout: minimal` to the YAML front matter.
|
||||||
|
- If you want to completely bypass the template engine and just write your own HTML page, simply omit the YAML front matter. Only do this if you know how to write HTML!
|
||||||
|
|
||||||
|
### YAML front matter parameters
|
||||||
|
|
||||||
|
These are the main parameters you can place inside a page's YAML front matter that **Beautiful Jekyll** supports.
|
||||||
|
|
||||||
Parameter | Description
|
Parameter | Description
|
||||||
----------- | -----------
|
----------- | -----------
|
||||||
title | Page or blog post title
|
title | Page or blog post title
|
||||||
subtitle | Short description of page or blog post that goes under the title
|
subtitle | Short description of page or blog post that goes under the title
|
||||||
tags | List of tags to categorize the post. Separate the tags with commas and place them inside square brackets. Example: `[personal, analysis, finance]`
|
tags | List of tags to categorize the post. Separate the tags with commas and place them inside square brackets. Example: `[personal, self help, finance]`
|
||||||
cover-img | Include a large full-width image at the top of the page. You can either provide the path to a single image (eg. `"/path/to/img"`) , or a list of images to cycle through (eg. `["/path/img1", "/path/img2"]`). If you want to add a caption to an image, then the image should be provided as `{"/path/to/img" : "Caption of image"}`.
|
bigimg | Include a large full-width image at the top of the page. You can either give the path to a single image, or provide a list of images to cycle through (see [my personal website](https://deanattali.com/) as an example).
|
||||||
comments | If you want do add comments to a specific page, use `comments: true`. Comments only work if you enable one of the comments providers (Facebook, disqus, staticman, utterances) in `_config.yml` file. Comments are automatically enabled on blog posts but not on other pages; to turn comments off for a specific post, use `comments: false`.
|
comments | If you want do add comments to a specific page, use `comments: true`. Comments are automatically enabled on blog posts; to turn comments off for a specific post, use `comments: false`. Comments only work if you enable at least one provider(diqus, staticman, just-comments) in `_config.yml` file.
|
||||||
|
show-avatar | If you have an avatar configured in the `_config.yml` but you want to turn it off on a specific page, use `show-avatar: false`. If you want to turn it off by default, locate the line `show-avatar: true` in the file `_config.yml` and change the `true` to `false`; then you can selectively turn it on in specific pages using `show-avatar: true`.
|
||||||
## Less commonly used parameters
|
image | If you want to add a personalized image to your blog post that will show up next to the post's excerpt and on the post itself, use `image: /path/to/img`.
|
||||||
|
share-img | If you want to specify an image to use when sharing the page on Facebook or Twitter, then provide the image's full URL here.
|
||||||
These are parameters that you may not use often, but can come in handy sometimes.
|
social-share | If you don't want to show buttons to share a blog post on social media, use `social-share: false` (this feature is turned on by default).
|
||||||
|
use-site-title | If you want to use the site title rather than page title as HTML document title (ie. browser tab title), use `use-site-title: true`. When set, the document title will take the format `Site Title - Site Description` (eg. `My website - A virtual proof that name is awesome!`). By default, it will use `Page Title` if it exists, or `Site Title` otherwise.
|
||||||
Parameter | Description
|
layout | What type of page this is (default is `post` for blog posts and `page` for other pages. You can use `minimal` if you don't want a header and footer)
|
||||||
----------- | -----------
|
js | List of local JavaScript files to include in the page (eg. `/js/mypage.js`)
|
||||||
readtime | If you want a post to show how many minutes it will take to read it, use `readtime: true`.
|
|
||||||
show-avatar | If you have an avatar configured in the `_config.yml` but you want to turn it off on a specific page, use `show-avatar: false`.
|
|
||||||
thumbnail-img | For blog posts, if you want to add a thumbnail that'll show up next to the post's excerpt in the feed, use `thumbnail-img: /path/to/image`. If no thumbnail is provided, then `cover-img` will be used as the thumbnail. You can use `thumbnail-img: ""` to disable a thumbnail.
|
|
||||||
share-img | The image to use when sharing the page to social media. If not provided, then `cover-img` or `thumbnail-img` will be used.
|
|
||||||
social-share | By default, every blog post has buttons to share the page on social media. If you want to turn this feature off, use `social-share: false`.
|
|
||||||
nav-short | By default, the navigation bar gets shorter after scrolling down the page. If you want the navigation bar to always be short on a certain page, use `nav-short: true`
|
|
||||||
gh-repo | If you want to show GitHub buttons at the top of a post, this sets the GitHub repo name (eg. `daattali/beautiful-jekyll`). You must also use the `gh-badge` parameter to specify what buttons to show.
|
|
||||||
gh-badge | Select which GitHub buttons to display. Available options are: [star, watch, fork, follow]. You must also use the `gh-repo` parameter to specify the GitHub repo.
|
|
||||||
layout | What type of page this is (default is `post` for blog posts and `page` for other pages). See _Page types_ section below for more information.
|
|
||||||
|
|
||||||
## Advanced parameters
|
|
||||||
|
|
||||||
These are advanced parameters that are only useful for people who need very fine control over their website.
|
|
||||||
|
|
||||||
Parameter | Description
|
|
||||||
----------- | -----------
|
|
||||||
footer-extra | If you want to include extra information in the footer, create an HTML file in the `_includes/` folder (for example `_includes/myinfo.html`) and set `footer-extra` to the name of the file (for example `footer-extra: myinfo.html`)
|
|
||||||
language | HTML language code to be set on the page's <html> element.
|
|
||||||
use-site-title | If you want to use the site title rather than the page title as the HTML document title, use `use-site-title: true`.
|
|
||||||
js | List of local JavaScript files to include in the page (eg. `/assets/js/mypage.js`)
|
|
||||||
ext-js | List of external JavaScript files to include in the page (eg. `//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js`). External JavaScript files that support [Subresource Integrity (SRI)](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) can be specified using the `href` and `sri` parameters eg.<br/>`href: "//code.jquery.com/jquery-3.1.1.min.js"`<br/>`sri: "sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="`
|
ext-js | List of external JavaScript files to include in the page (eg. `//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js`). External JavaScript files that support [Subresource Integrity (SRI)](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) can be specified using the `href` and `sri` parameters eg.<br/>`href: "//code.jquery.com/jquery-3.1.1.min.js"`<br/>`sri: "sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="`
|
||||||
css | List of local CSS files to include in the page
|
css | List of local CSS files to include in the page
|
||||||
ext-css | List of external CSS files to include in the page. External CSS files using SRI (see `ext-js` parameter) are also supported.
|
ext-css | List of external CSS files to include in the page. External CSS files using SRI (see `ext-js` parameter) are also supported.
|
||||||
|
googlefonts | List of Google fonts to include in the page (eg. `["Monoton", "Lobster"]`)
|
||||||
|
gh-repo | If you want to show GitHub buttons at the top of a post, this sets the GitHub repo name (eg. `daattali/beautiful-jekyll`). You must also use the `gh-badge` parameter to specify what buttons to show.
|
||||||
|
gh-badge | Select which GitHub buttons to display, available options are: [star, watch, fork, follow]. You must also use the `gh-repo` parameter to specify the GitHub repo.
|
||||||
|
|
||||||
## Page types
|
### Advanced features (including how to use a custom URL address for your site)
|
||||||
|
|
||||||
- **post** - To write a blog post, add a markdown or HTML file in the `_posts` folder. As long as you give it YAML front matter (the two lines of three dashes), it will automatically be rendered like a blog post. Look at the existing blog post files to see examples of how to use YAML parameters in blog posts.
|
I wrote [a blog post](https://deanattali.com/2015/03/12/beautiful-jekyll-how-to-build-a-site-in-minutes/) describing some more advanced features that I used in my website that are applicable to any Jekyll site. It describes how I used a custom URL for my site (deanattali.com instead of daattali.github.io), how to add a Google-powered search into your site, and provides a few more details about having an RSS feed.
|
||||||
- **page** - Any page outside the `_posts` folder that uses YAML front matter will have a very similar style to blog posts.
|
|
||||||
- **home** - The home layout is meant to act as the homepage of your blog posts - it will display all your blog posts, sorted from newest to oldest. A file using the `home` layout must be named `index.html` (not `index.md` or anything else!).
|
|
||||||
- **minimal** - If you want to create a page with minimal styling (ie. without the bulky navigation bar and footer), assign `layout: minimal` to the YAML front matter.
|
|
||||||
- If you want to completely bypass the template engine and just write your own HTML page, simply omit the YAML front matter. Only do this if you know how to write HTML!
|
|
||||||
|
|
||||||
# Showcased users (success stories!)
|
## Creating a User Page vs a Project Page
|
||||||
|
|
||||||
Beautiful Jekyll has been used in over 500 websites in its first 6 months, and tens of thousands of times since its inception. Here is a sample of some websites that use Beautiful Jekyll.
|
If you're not sure what the difference is, you can probably safely ignore this section.
|
||||||
|
|
||||||
## Project/company websites
|
If you want to use this theme to host a website that will be available at `https://YOURUSERNAME.github.io`, then you do not need to read this section. That is called a User Page, you can only have one User Page in your GitHub account, and it is what you get by default when forking this project.
|
||||||
|
|
||||||
|
If you want to use this theme to create a website for a particular repository, it will be available at `https://YOURUSERNAME.github.io/PROJECTNAME`, and that is called a [Project Page](https://help.github.com/articles/user-organization-and-project-pages/). You can have a Project Page for any repository you have on GitHub.
|
||||||
|
|
||||||
|
**When using this theme for a Project Page, by default your website will be served from the `gh-pages` branch**, so you must take the following steps:
|
||||||
|
|
||||||
|
1. [Delete the existing `gh-pages` branch](https://help.github.com/en/articles/creating-and-deleting-branches-within-your-repository#deleting-a-branch)
|
||||||
|
|
||||||
|
2. [Create a new branch named `gh-pages` from the `master` branch](https://help.github.com/en/articles/creating-and-deleting-branches-within-your-repository#creating-a-branch)
|
||||||
|
|
||||||
|
Alternatively, instead of the above two steps, you can opt to use the `master` branch instead of `gh-pages` branch as your website's source by choosing that option in the main Settings page.
|
||||||
|
|
||||||
|
## Showcased users (success stories!)
|
||||||
|
|
||||||
|
To my huge surprise, Beautiful Jekyll has been used in over 500 websites in its first 6 months alone! Here is a hand-picked selection of some websites that use Beautiful Jekyll.
|
||||||
|
|
||||||
|
Want your website featured here? [Contact me](https://deanattali.com/aboutme#contact) to let me know about your website.
|
||||||
|
|
||||||
|
### Project/company websites
|
||||||
|
|
||||||
| Website | Description |
|
| Website | Description |
|
||||||
| :------ |:----------- |
|
| :------ |:----------- |
|
||||||
| [repidemicsconsortium.org/](https://www.repidemicsconsortium.org/) | R Epidemics Consortium |
|
| [repidemicsconsortium.org/](https://www.repidemicsconsortium.org/) | R Epidemics Consortium |
|
||||||
| [vaccineimpact.org](https://www.vaccineimpact.org/) | Vaccine Impact Modelling Consortium |
|
| [vaccineimpact.org](https://www.vaccineimpact.org/) | Vaccine Impact Modelling Consortium |
|
||||||
| [derekogle.com/fishR](http://derekogle.com/fishR/) | Using R for Fisheries Analyses |
|
| [derekogle.com/fishR](http://derekogle.com/fishR/) | Using R for Fisheries Analyses |
|
||||||
|
| [bigdata.juju.solutions](http://bigdata.juju.solutions) | Creating Big Data solutions Juju Solutions |
|
||||||
| [joecks.github.io/clipboard-actions](http://joecks.github.io/clipboard-actions/) | Clipboard Actions - an Android app |
|
| [joecks.github.io/clipboard-actions](http://joecks.github.io/clipboard-actions/) | Clipboard Actions - an Android app |
|
||||||
| [deanattali.com/shinyjs](http://deanattali.com/shinyjs/) | shinyjs - an R package |
|
| [deanattali.com/shinyjs](http://deanattali.com/shinyjs/) | shinyjs - an R package |
|
||||||
| [blabel.github.io](http://blabel.github.io) | Library for canonicalising blank node labels in RDF graphs |
|
| [blabel.github.io](http://blabel.github.io) | Library for canonicalising blank node labels in RDF graphs |
|
||||||
@@ -192,7 +212,7 @@ Beautiful Jekyll has been used in over 500 websites in its first 6 months, and t
|
|||||||
| [terremotocentroitalia.info](https://www.terremotocentroitalia.info/) | Information about the 2016 Italy earthquake |
|
| [terremotocentroitalia.info](https://www.terremotocentroitalia.info/) | Information about the 2016 Italy earthquake |
|
||||||
|
|
||||||
|
|
||||||
## Personal websites
|
### Personal websites
|
||||||
|
|
||||||
| Website | Who | What |
|
| Website | Who | What |
|
||||||
| :------ |:--- | :--- |
|
| :------ |:--- | :--- |
|
||||||
@@ -208,54 +228,98 @@ Beautiful Jekyll has been used in over 500 websites in its first 6 months, and t
|
|||||||
| [ocram85.com](https://ocram85.com) | Marco Blessing | A personal blog about PowerShell and automation |
|
| [ocram85.com](https://ocram85.com) | Marco Blessing | A personal blog about PowerShell and automation |
|
||||||
| [khanna.cc](https://khanna.cc/) | Harry Khanna | Law and software |
|
| [khanna.cc](https://khanna.cc/) | Harry Khanna | Law and software |
|
||||||
|
|
||||||
# FAQ and support
|
## Advanced: Local development using Docker
|
||||||
|
|
||||||
|
Beautiful Jekyll is meant to be so simple to use that you can do it all within the browser. However, if you'd like to develop locally on your own machine, that's possible too if you're comfortable with command line. Follow these simple steps set that up with Docker:
|
||||||
|
|
||||||
|
1. Make sure you have [Docker](https://www.docker.com/) installed.
|
||||||
|
|
||||||
|
2. Clone your repository locally.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/<your_username>/<your_username>.github.io.git
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Run the following shell commands to build the docker image and start the container for the first time:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd <repository_folder>
|
||||||
|
docker build -t beautiful-jekyll "$PWD"
|
||||||
|
docker run -d -p 4000:4000 --name beautiful-jekyll -v "$PWD":/srv/jekyll beautiful-jekyll
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Now that Docker is set up, you do not need to run the above steps again. You can now view your website at http://localhost:4000/. You can start the container again in the future with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker start beautiful-jekyll
|
||||||
|
```
|
||||||
|
|
||||||
|
And you can stop the server with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker stop beautiful-jekyll
|
||||||
|
```
|
||||||
|
|
||||||
|
Whenever you make any changes to `_config.yml`, you must stop and re-start the server for the new config settings to take effect.
|
||||||
|
|
||||||
|
Disclaimer: I personally am NOT using local development so I don't know much about running Jekyll locally. If you follow this route, please don't ask me questions because unfortunately I honestly won't be able to help!
|
||||||
|
|
||||||
|
## FAQ and support
|
||||||
|
|
||||||
If you need any help, I suggest heading over to the [Jekyll support forum](https://talk.jekyllrb.com/).
|
If you need any help, I suggest heading over to the [Jekyll support forum](https://talk.jekyllrb.com/).
|
||||||
|
|
||||||
Beautiful Jekyll is actively used by thousands of people with wildly varying degrees of competency, so it's impossible to answer all the questions that may arise. Below are answers to a few very common questions. Most questions that I get asked are not directly related to this theme, and instead are more general questions about Jekyll or web development. Many such questions can be answered by reading the [Jekyll documentation](https://jekyllrb.com/) or with Google.
|
Beautiful Jekyll is actively used by thousands of people with wildly varying degrees of competency, so it's impossible to answer all the questions that may arise. Below are answers to a few very common questions. Most questions that I get asked are not directly related to this theme, and instead are more general questions about Jekyll or web development. Many such questions can be answered by reading the [Jekyll documentation](https://jekyllrb.com/) or with Google.
|
||||||
|
|
||||||
**If you really wany my personal help, please visit https://xscode.com/daattali/beautiful-jekyll to hire my services.**
|
#### How do I change the number of posts per page OR the colour of the navigation bar OR the image in the navigation bar OR ...?
|
||||||
|
|
||||||
### What if I don't want the website to be `https://<yourusername>.github.io`?
|
|
||||||
|
|
||||||
Every GitHub user can have one repository (repository = project) named `<yourusername>.github.io` and the website for that repository will be `https://<yourusername>.github.io`.
|
|
||||||
|
|
||||||
If you want your project to be named something else, for example `MyAwesomeProject`, that's no problem! All you have to do is go to _Settings_ at the top right corner of the page, and rename your repository to `MyAwesomeProject` (**remember to click on the _Rename_ button to confirm!**). Then you need to scroll down to the _GitHub Pages_ section and choose "master branch" as the source (not "master branch /docs folder"!).
|
|
||||||
|
|
||||||
Now your website will be at `https://<yourusername>.github.io\MyAwesomeProject`.
|
|
||||||
|
|
||||||
### How do I change the number of posts per page OR the colour of the navigation bar OR the image in the navigation bar OR ...?
|
|
||||||
|
|
||||||
Beautiful Jekyll is built to be very customizable, and as such, many questions about "how do I change ..." can be answered by looking at the `_config.yml` file. The configuration file has many adjustable parameters to customize your site.
|
Beautiful Jekyll is built to be very customizable, and as such, many questions about "how do I change ..." can be answered by looking at the `_config.yml` file. The configuration file has many adjustable parameters to customize your site.
|
||||||
|
|
||||||
### How do I add a favicon to my site?
|
#### How do I add a favicon to my site?
|
||||||
|
|
||||||
Easy! Just place a valid `favicon.ico` in the root directory of your project. And then wait! It can take a while to update.
|
Easy! Just place a valid `favicon.ico` (or another valid favicon image) in the root directory of your project. And then wait! It can take a while to update.
|
||||||
|
|
||||||
### How do I move the blog to another page instead of having it on the home page?
|
#### How do I move the blog to another page instead of having it on the home page?
|
||||||
|
|
||||||
The default style of Beautiful Jekyll is to feature the blog feed on the front page. But for many sites that's not the ideal structure, and you may want to have a separate dedicated page for the blog posts. To have the blog hosted on a different URL (for example at `<mysite.com>/blog`), copy the `index.html` file into a folder with the same name as the desired page (for example, to `blog/index.html`), and in the `_config.yml` file you need to add a parameter `paginate_path: "/<page name>/page:num/"` (for example `paginate_path: "/blog/page:num/"`).
|
The default style of Beautiful Jekyll is to feature the blog feed on the front page. But for many sites that's not the ideal structure, and you may want to have a separate dedicated page for the blog posts. To have the blog hosted on a different URL (for example at `<mysite.com>/blog`), copy the `index.html` file into a folder with the same name as the desired page (for example, to `blog/index.html`), and in the `_config.yml` file you need to add a parameter `paginate_path: "/<page name>/page:num/"` (for example `paginate_path: "/blog/page:num/"`).
|
||||||
|
|
||||||
### What size do you recommend using for the `cover-img` photos?
|
#### What size do you recommend using for the `bigimg` photos?
|
||||||
|
|
||||||
Unfortunately, this is a no-answer! There isn't a one-size-fits-all solution to this, because every person will view your site on a different browser with different dimensions. Some browsers will have very wide aspect ratio, some will be narrower, some will be vertical (such as phones), different phones have different screens, etc. The image will always be centered, so the only tip I can give is that you should make sure the important part of the image is in the middle so that it'll always show. Other than that, every browser will show a different clipping of the image.
|
Unfortunately, this is a no-answer! There isn't a one-size-fits-all solution to this, because every person will view your site on a different browser with different dimensions. Some browsers will have very wide aspect ratio, some will be narrower, some will be vertical (such as phones), different phones have different screens, etc. The image will always be centered, so the only tip I can give is that you should make sure the important part of the image is in the middle so that it'll always show. Other than that, every browser will show a different clipping of the image.
|
||||||
|
|
||||||
### How do I use MathJax equations in my posts?
|
#### How do I use MathJax equations in my posts?
|
||||||
|
|
||||||
MathJax can be easily integrated into your website with a one-line addition. You can see [this discussion](https://github.com/daattali/beautiful-jekyll/issues/195) for more information.
|
MathJax can be easily integrated into your website with a one-line addition. You can see [this discussion](https://github.com/daattali/beautiful-jekyll/issues/195) for more information.
|
||||||
|
|
||||||
# Contributions
|
#### My project page appear to be broken after a recent update!
|
||||||
|
|
||||||
Thank you to [all past contributors](https://github.com/daattali/beautiful-jekyll/graphs/contributors). If you find any problems or would like to contribute in any way, feel free to create a pull request/open an issue/send me a message. Any comments are welcome!
|
In June 2019, some URL related settings have been adjusted to be more in-line with how Jekyll uses them officially. Project Page absolute links might appear to be broken if you haven't propagated all necessary changes to your local templates, or if you have created additional templates making use of old settings. If a link contains a duplicated project path component, this is most likely the cause. In summary:
|
||||||
|
|
||||||
You can also contribute by becoming an [official sponsor](https://github.com/sponsors/daattali) to help keep beautiful-jekyll well-maintained.
|
| | Old behavior | New behavior |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `url` setting | `https://user.github.io/projectname` | (unset, GitHub auto detects) |
|
||||||
|
| `baseurl` setting | `/projectname` | (unset, GitHub auto detects) |
|
||||||
|
| Absolute link construction | `{{ site.url }}/your/path` | `{{ '/your/path' \| absolute_url }}` |
|
||||||
|
| Relative link construction | `{{ site.baseurl }}/your/path` | `{{ '/your/path' \| relative_url }}` |
|
||||||
|
|
||||||
# Credits
|
## Credits
|
||||||
|
|
||||||
This template was not made *entirely* from scratch. I'd like to give special thanks to [Jekyll Now](https://github.com/barryclark/jekyll-now) and [Bootstrap Clean Blog](https://github.com/IronSummitMedia/startbootstrap-clean-blog), from whom I've taken several ideas initially.
|
This template was not made entirely from scratch. I would like to give special thanks to:
|
||||||
|
- [Barry Clark](https://github.com/barryclark) and his project [Jekyll Now](https://github.com/barryclark/jekyll-now), from whom I've taken several ideas and code snippets, as well as some documenation tips.
|
||||||
|
- [Iron Summit Media](https://github.com/IronSummitMedia) and their project [Bootstrap Clean Blog](https://github.com/IronSummitMedia/startbootstrap-clean-blog), from which I've used some design ideas and some of the templating code for posts and pagination.
|
||||||
|
|
||||||
I'd also like to thank [Dr. Jekyll's Themes](https://drjekyllthemes.github.io/), [Jekyll Themes](http://jekyllthemes.org/), and another [Jekyll Themes](http://jekyllrc.github.io/jekyllthemes/) for featuring Beautiful Jekyll in their Jekyll theme directories.
|
I'd also like to thank [Dr. Jekyll's Themes](https://drjekyllthemes.github.io/), [Jekyll Themes](http://jekyllthemes.org/), and another [Jekyll Themes](http://jekyllrc.github.io/jekyllthemes/) for featuring Beautiful Jekyll in their Jekyll theme directories.
|
||||||
|
|
||||||
# Known limitations
|
## Contributions
|
||||||
|
|
||||||
- If there are many navigation bar links and an avatar, some of the links may get partially hidden behind the avatar. I suggest either re-thinking the number of links, or not using an avatar.
|
If you find anything wrong or would like to contribute in any way, feel free to create a pull request/open an issue/send me a message. Any comments are welcome!
|
||||||
|
|
||||||
|
Thank you to [all contributors](https://github.com/daattali/beautiful-jekyll/graphs/contributors). Special thanks to [@OCram85](https://github.com/OCram85) and [@abelcheung](https://github.com/abelcheung) for contributing multiple times as well as helping with discussions.
|
||||||
|
|
||||||
|
If you do fork or clone this project to use as a template for your site, I would appreciate if you keep the link in the footer to this project. I've noticed that several people who forked this repo removed the attribution and I would prefer to get the recognition if you do use this :)
|
||||||
|
|
||||||
|
## Known limitations
|
||||||
|
|
||||||
|
- If you have a project page and you want a custom 404 page, you must have a custom domain. See https://help.github.com/articles/custom-404-pages/. This means that if you have a regular User Page you can use the 404 page from this theme, but if it's a website for a specific repository, the 404 page will not be used.
|
||||||
|
|
||||||
|
- If there are many navigation bar links and avatar, some of the links may get partially hidden behind the avatar.
|
||||||
|
|||||||
@@ -1,17 +1,23 @@
|
|||||||
# --- Basic options --- #
|
###########################################################
|
||||||
|
### Welcome to Beautiful Jekyll!
|
||||||
|
### This config file is meant for settings that affect your entire website. When you first
|
||||||
|
### set up your website you should go through all these settings and edit them, but after
|
||||||
|
### the initial set up you won't need to come back to this file often.
|
||||||
|
###########################################################
|
||||||
|
|
||||||
# url is the full website URL
|
############################
|
||||||
# baseurl is the website's URL without the hostname
|
# --- Required options --- #
|
||||||
|
############################
|
||||||
|
|
||||||
# If you are building a simple GitHub user page (http://username.github.io) then use these settings:
|
# Name of website
|
||||||
url: "https://blog.bryanroessler.com"
|
title: Bryan Roessler
|
||||||
baseurl: ""
|
|
||||||
|
|
||||||
# Your name to show in the footer
|
# Your name to show in the footer
|
||||||
author: Bryan Roessler
|
author: Bryan Roessler
|
||||||
|
|
||||||
|
###############################################
|
||||||
# --- List of links in the navigation bar --- #
|
# --- List of links in the navigation bar --- #
|
||||||
|
###############################################
|
||||||
|
|
||||||
navbar-links:
|
navbar-links:
|
||||||
Home: "https://bryanroessler.com"
|
Home: "https://bryanroessler.com"
|
||||||
@@ -21,56 +27,67 @@ navbar-links:
|
|||||||
Services:
|
Services:
|
||||||
- Syncthing: "https://syncthing.bryanroessler.com"
|
- Syncthing: "https://syncthing.bryanroessler.com"
|
||||||
- Panel: "https://panel.bryanroessler.com"
|
- Panel: "https://panel.bryanroessler.com"
|
||||||
|
|
||||||
|
################
|
||||||
# --- Logo --- #
|
# --- Logo --- #
|
||||||
|
################
|
||||||
|
|
||||||
# If you want to have an image logo in the top-left corner instead of the title text,
|
# Image to show in the navigation bar - works best with a square image
|
||||||
# then specify the following parameter
|
# Remove this parameter if you don't want an image in the navbar
|
||||||
#title-img: "./img/me_square_sepia_small.jpg"
|
|
||||||
|
|
||||||
# --- Background colour/image options --- #
|
|
||||||
avatar: "/assets/img/me_square_sepia_small.jpg"
|
avatar: "/assets/img/me_square_sepia_small.jpg"
|
||||||
|
|
||||||
# By default, the image is cut into a circle. You can disable this behaviour by setting 'round-avatar: false'
|
# By default, the image is cut into a circle. You can disable this behaviour by setting 'round-avatar: false'
|
||||||
round-avatar: true
|
round-avatar: true
|
||||||
|
|
||||||
# If you want to have an image logo in the top-left corner instead of the title text,
|
# If you want to have an image logo in the top-left corner instead of having the title of the website,
|
||||||
# then specify the following parameter
|
# then specify the following parameter
|
||||||
#title-img: /path/to/image
|
#title-img: /path/to/image
|
||||||
|
|
||||||
|
|
||||||
# --- Footer options --- #
|
#####################################
|
||||||
|
# --- Footer social media links --- #
|
||||||
|
#####################################
|
||||||
|
|
||||||
# Select the social network links that you want to show in the footer.
|
# Select the social network links that you want to show in the footer.
|
||||||
|
# You can change the order that they show up on the page by changing the order here.
|
||||||
# Uncomment the links you want to show and add your information to each one.
|
# Uncomment the links you want to show and add your information to each one.
|
||||||
# If you don't want to show a link to an RSS feed, set rss to "false".
|
|
||||||
# If you want to add a new link that isn't here, you'll need to also edit the file _data/SocialNetworks.yml
|
|
||||||
social-network-links:
|
social-network-links:
|
||||||
email: "bryanroessler@gmail.com"
|
email: "bryanroessler@gmail.com"
|
||||||
# facebook: daattali
|
|
||||||
github: "https://git.bryanroessler.com"
|
|
||||||
# twitter: daattali
|
|
||||||
rss: true
|
rss: true
|
||||||
# reddit: yourname
|
# facebook:
|
||||||
# google-plus: +DeanAttali
|
github: "https://git.bryanroessler.com"
|
||||||
|
# twitter:
|
||||||
|
# reddit:
|
||||||
|
# google-plus:
|
||||||
linkedin: bryan-roessler-phd-47535a60
|
linkedin: bryan-roessler-phd-47535a60
|
||||||
# xing: yourname
|
# youtube:
|
||||||
# stackoverflow: "3943160/daattali"
|
# medium:
|
||||||
# snapchat: deanat78
|
# spotify: yourname
|
||||||
# instagram: deanat78
|
# telephone: +14159998888
|
||||||
# youtube: user/deanat78
|
# steam: deanat78
|
||||||
# spotify: yourname
|
# twitch: yourname
|
||||||
# telephone: +14159998888
|
# yelp: yourname
|
||||||
# steam: deanat78
|
# telegram: yourname
|
||||||
# twitch: yourname
|
# calendly: yourname
|
||||||
# yelp: yourname
|
# mastodon: instance.url/@username
|
||||||
# telegram: yourname
|
# bluesky: yourname
|
||||||
# calendly: yourname
|
# ORCID: your ORCID ID
|
||||||
# mastodon: instance.url/@username
|
# google-scholar: your google scholar
|
||||||
# ORCID: your ORCID ID
|
# discord: "invite_code" or "users/userid" or "invite/invite_code"
|
||||||
# google-scholar: your google scholar
|
# kaggle: yourname
|
||||||
|
# hackerrank: yourname
|
||||||
|
# gitlab: yourname
|
||||||
|
# itchio: yourname
|
||||||
|
# untappd: yourname
|
||||||
|
|
||||||
|
# If you want your website to generate an RSS feed, provide a description
|
||||||
|
# The URL for the feed will be https://<your_website>/feed.xml
|
||||||
|
rss-description: Bryan Roessler's Blog
|
||||||
|
|
||||||
|
###########################
|
||||||
# --- General options --- #
|
# --- General options --- #
|
||||||
|
###########################
|
||||||
|
|
||||||
# Select which social network share links to show in posts
|
# Select which social network share links to show in posts
|
||||||
share-links-active:
|
share-links-active:
|
||||||
@@ -79,38 +96,81 @@ share-links-active:
|
|||||||
linkedin: false
|
linkedin: false
|
||||||
vk: false
|
vk: false
|
||||||
|
|
||||||
# How to display the link to your website in the footer
|
# How to display the link to the website in the footer
|
||||||
# Remove this if you don't want a link in the footer
|
# Remove this if you don't want a link in the footer
|
||||||
url-pretty: "bryanroessler.com" # eg. "deanattali.com/beautiful-jekyll"
|
url-pretty: "bryanroessler.com"
|
||||||
|
|
||||||
# Create a "tags" index page and make tags on each post clickable
|
# Add the website title to the title of every page
|
||||||
link-tags: true
|
title-on-all-pages: true
|
||||||
|
|
||||||
# Excerpt Word Length - Truncates the excerpt to the specified number of words on the index page
|
# Excerpt word length - Truncate the excerpt of each post on the feed page to the specified number of words
|
||||||
excerpt_length: 50
|
excerpt_length: 50
|
||||||
|
|
||||||
|
# Whether or not to show an excerpt for every blog post in the feed page
|
||||||
|
feed_show_excerpt: true
|
||||||
|
|
||||||
|
# Whether or not to show a list of tags below each post preview in the feed page
|
||||||
|
feed_show_tags: true
|
||||||
|
|
||||||
|
# Add a search button to the navbar
|
||||||
|
post_search: true
|
||||||
|
|
||||||
|
# Add a button in the footer to edit the current page. Only works if your website is hosted on GitHub
|
||||||
|
edit_page_button: true
|
||||||
|
|
||||||
|
# Allow sub-menu items (second-level navigation menu items) to be longer than the top-level menu
|
||||||
|
# If this setting is off, then long sub-menu words might get cut off
|
||||||
|
# See https://github.com/daattali/beautiful-jekyll/issues/765 to understand the issue this setting can solve
|
||||||
|
navbar-var-length: false
|
||||||
|
|
||||||
|
# The keywords to associate with your website, for SEO purposes
|
||||||
|
#keywords: "my,list,of,keywords"
|
||||||
|
|
||||||
|
######################################
|
||||||
# --- Colours / background image --- #
|
# --- Colours / background image --- #
|
||||||
|
######################################
|
||||||
|
|
||||||
# Personalize the colors in your website. Colour values can be any valid CSS colour
|
# Personalize the colours in your website. Colour values can be any valid CSS colour
|
||||||
|
|
||||||
navbar-col: "#F5F5F5"
|
|
||||||
navbar-text-col: "#404040"
|
|
||||||
navbar-border-col: "#EAEAEA"
|
|
||||||
page-col: "#FFFFFF"
|
page-col: "#FFFFFF"
|
||||||
|
text-col: "#404040"
|
||||||
link-col: "#008AFF"
|
link-col: "#008AFF"
|
||||||
hover-col: "#0085A1"
|
hover-col: "#0085A1"
|
||||||
footer-col: "#F5F5F5"
|
navbar-col: "#F5F5F5" # #EAEAEA
|
||||||
|
navbar-text-col: "#404040"
|
||||||
|
navbar-border-col: "#DDDDDD"
|
||||||
|
footer-col: "#F5F5F5" # #EAEAEA
|
||||||
footer-text-col: "#777777"
|
footer-text-col: "#777777"
|
||||||
footer-link-col: "#404040"
|
footer-link-col: "#404040"
|
||||||
|
footer-hover-col: "#0085A1"
|
||||||
|
|
||||||
# Alternatively, the navbar, footer, and page background can be set to use background images
|
# Alternatively, the navbar, footer, and page background can be set to an image
|
||||||
# instead of colour
|
# instead of colour
|
||||||
|
|
||||||
#navbar-img: "/assets/img/bgimage.png"
|
#navbar-img: "/assets/img/bgimage.png"
|
||||||
#footer-img: "/assets/img/bgimage.png"
|
#footer-img: "/assets/img/bgimage.png"
|
||||||
#page-img: "/assets/img/bgimage.png"
|
#page-img: "/assets/img/bgimage.png"
|
||||||
|
|
||||||
# --- Web Statistics Section --- #
|
# Suggest a colour for mobile browsers to use as the browser's theme. This is only supported by a few mobile browsers.
|
||||||
|
#mobile-theme-col: "#0085A1"
|
||||||
|
|
||||||
|
# For any extra visual customization, you can include additional CSS files in every page on your site. List any custom CSS files here
|
||||||
|
#site-css:
|
||||||
|
# - "/assets/css/custom-styles.css"
|
||||||
|
|
||||||
|
# If you have common JavaScript files that should be included in every page, list them here
|
||||||
|
#site-js:
|
||||||
|
# - "/assets/js/custom-script.js"
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# --- Web Analytics Section --- #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
# Fill in your Google Analytics tag ID (or "Measurement ID") to track your website usage
|
||||||
|
#gtag: "G-XXXXXXXXXX"
|
||||||
|
|
||||||
|
# Fill in your Cloudflare Analytics beacon token to track your website using Cloudflare Analytics
|
||||||
|
#cloudflare_analytics: ""
|
||||||
|
|
||||||
# Fill in your Google Analytics ID to track your website using GA
|
# Fill in your Google Analytics ID to track your website using GA
|
||||||
google_analytics: "UA-158358388-1"
|
google_analytics: "UA-158358388-1"
|
||||||
@@ -126,7 +186,14 @@ google_analytics: "UA-158358388-1"
|
|||||||
# uri: "demo.wiki.pro"
|
# uri: "demo.wiki.pro"
|
||||||
# opt-out: true
|
# opt-out: true
|
||||||
|
|
||||||
|
# Google Universal Analytics ID -- deprecated
|
||||||
|
# As of July 2023 this is no longer supported by Google! If you are still using `google_analytics`,
|
||||||
|
# you should switch to using the `gtag` field above instead.
|
||||||
|
#google_analytics: "UA-XXXXXXXX-X"
|
||||||
|
|
||||||
|
####################
|
||||||
# --- Comments --- #
|
# --- Comments --- #
|
||||||
|
####################
|
||||||
|
|
||||||
# To use Disqus comments, sign up to https://disqus.com and fill in your Disqus shortname (NOT the userid)
|
# To use Disqus comments, sign up to https://disqus.com and fill in your Disqus shortname (NOT the userid)
|
||||||
#disqus: ""
|
#disqus: ""
|
||||||
@@ -134,6 +201,9 @@ google_analytics: "UA-158358388-1"
|
|||||||
# To use Facebook Comments, create a Facebook app and fill in the Facebook App ID
|
# To use Facebook Comments, create a Facebook app and fill in the Facebook App ID
|
||||||
#fb_comment_id: ""
|
#fb_comment_id: ""
|
||||||
|
|
||||||
|
# To use CommentBox, sign up for a Project ID on https://commentbox.io
|
||||||
|
#commentbox: "" # Project ID, e.g. "5694267682979840-proj"
|
||||||
|
|
||||||
# To use Utterances comments: (0) uncomment the following section, (1) fill in
|
# To use Utterances comments: (0) uncomment the following section, (1) fill in
|
||||||
# "repository" (make sure the repository is public), (2) Enable Issues in your repository,
|
# "repository" (make sure the repository is public), (2) Enable Issues in your repository,
|
||||||
# (3) Install the Utterances app in your repository https://github.com/apps/utterances
|
# (3) Install the Utterances app in your repository https://github.com/apps/utterances
|
||||||
@@ -144,25 +214,39 @@ google_analytics: "UA-158358388-1"
|
|||||||
# theme: github-light # Utterances theme
|
# theme: github-light # Utterances theme
|
||||||
# label: blog-comments # Label that will be assigned to GitHub Issues created by Utterances
|
# label: blog-comments # Label that will be assigned to GitHub Issues created by Utterances
|
||||||
|
|
||||||
# To use Staticman comments, first invite `staticmanlab` as a collaborator to your repository and
|
# To use Staticman comments, uncomment the following section. You may leave the reCaptcha
|
||||||
# accept the invitation by going to `https://staticman3.herokuapp.com/v3/connect/github/<username>/<repo-name>`.
|
# section commented if you aren't using reCaptcha for spam protection.
|
||||||
# Then uncomment the following section and fill in "repository" and "branch".
|
# Using Staticman requires advanced knowledge, please consult
|
||||||
# If you want to use reCaptcha for staticman (optional for spam protection), then fill
|
# https://github.com/eduardoboucas/staticman/ and https://staticman.net/ for further
|
||||||
# in the "siteKey" and "secret" parameters below and also in `staticman.yml`.
|
# instructions. For any support with staticman please direct questions to staticman and
|
||||||
# See more details at https://staticman.net/
|
# not to BeautifulJekyll.
|
||||||
#staticman:
|
#staticman:
|
||||||
# repository : # GitHub username/repository eg. "daattali/beautiful-jekyll"
|
# repository : # GitHub username/repository eg. "daattali/beautiful-jekyll"
|
||||||
# branch : master # If you're not using `master` branch, then you also need to update the `branch` parameter in `staticman.yml`
|
# branch : master # If you're not using `master` branch, then you also need to update the `branch` parameter in `staticman.yml`
|
||||||
# endpoint : # (optional) URL of your own deployment, with a trailing slash eg. https://<your-api>/v3/entry/github/ (will fallback to a public GitLab instance)
|
# endpoint : # URL of your deployment, with a trailing slash eg. "https://<your-api>/v3/entry/github/"
|
||||||
# reCaptcha:
|
# reCaptcha: # (optional, set these parameters in `staticman.yml` as well)
|
||||||
# siteKey : # Use your own site key, you need to apply for one on Google
|
# siteKey : # You need to apply for a site key on Google
|
||||||
# secret : # ENCRYPT your password by going to https://staticman3.herokuapp.com/v3/encrypt/<your-site-secret>
|
# secret : # Encrypt your password by going to https://<your-own-api>/v3/encrypt/<your-site-secret>
|
||||||
|
|
||||||
|
# To use giscus comments:
|
||||||
|
# (0) Uncomment the following giscus section, (1) Enable Discussions in your GitHub repository,
|
||||||
|
# (2) Install the giscus app in your repository (details at https://giscus.app),
|
||||||
|
# (3) Fill in *all* the parameters below
|
||||||
|
# See more details about giscus and each of the following parameters at https://giscus.app
|
||||||
|
#giscus:
|
||||||
|
# hostname: giscus.app # Replace with your giscus instance's hostname if self-hosting
|
||||||
|
# repository: # GitHub username/repository eg. "daattali/beautiful-jekyll"
|
||||||
|
# repository-id: # ID of your repository, retrieve this info from https://giscus.app
|
||||||
|
# category: Announcements # Category name of your GitHub Discussion posts
|
||||||
|
# category-id: # ID of your category, retrieve this info from https://giscus.app
|
||||||
|
# mapping: pathname
|
||||||
|
# reactions-enabled: 1
|
||||||
|
# emit-metadata: 0
|
||||||
|
# theme: light
|
||||||
|
|
||||||
|
################
|
||||||
# --- Misc --- #
|
# --- Misc --- #
|
||||||
|
################
|
||||||
# Character used to separate site title and description in HTML document title
|
|
||||||
# and RSS feed title
|
|
||||||
title-separator: "-"
|
|
||||||
|
|
||||||
# Ruby Date Format to show dates of posts
|
# Ruby Date Format to show dates of posts
|
||||||
date_format: "%B %-d, %Y"
|
date_format: "%B %-d, %Y"
|
||||||
@@ -170,8 +254,9 @@ date_format: "%B %-d, %Y"
|
|||||||
# Facebook App ID
|
# Facebook App ID
|
||||||
#fb_app_id: ""
|
#fb_app_id: ""
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
# --- You don't need to touch anything below here (but you can if you want) --- #
|
# --- You don't need to touch anything below here (but you can if you want) --- #
|
||||||
|
#################################################################################
|
||||||
|
|
||||||
# Output options (more information on Jekyll's site)
|
# Output options (more information on Jekyll's site)
|
||||||
timezone: "America/New_York"
|
timezone: "America/New_York"
|
||||||
@@ -198,10 +283,9 @@ defaults:
|
|||||||
readtime: true # add estimated reading time on all blog posts
|
readtime: true # add estimated reading time on all blog posts
|
||||||
-
|
-
|
||||||
scope:
|
scope:
|
||||||
path: "" # all files
|
path: "" # any file that's not a post will be a "page" layout by default
|
||||||
values:
|
values:
|
||||||
layout: "page"
|
layout: "page"
|
||||||
show-avatar: true
|
|
||||||
|
|
||||||
# Exclude these files from production site
|
# Exclude these files from production site
|
||||||
exclude:
|
exclude:
|
||||||
@@ -215,6 +299,6 @@ exclude:
|
|||||||
- docs/
|
- docs/
|
||||||
- vendor/
|
- vendor/
|
||||||
|
|
||||||
|
plugins:
|
||||||
# Beautiful Jekyll / Dean Attali
|
- jekyll-paginate
|
||||||
# 2fc73a3a967e97599c9763d05e564189
|
- jekyll-sitemap
|
||||||
|
|||||||
92
blog.bryanroessler.com/_data/SocialNetworks.yml
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
# You can define your custom social network links here.
|
||||||
|
# Use the same key you added in _config.yml -> social-network-links.
|
||||||
|
# In addition to that you need to specify the following properties:
|
||||||
|
# name: Specify a user-friendly name that will be used as a link title
|
||||||
|
# baseURL: Define a base URL which will be combined with the value of
|
||||||
|
# site.social-network-links.<key>
|
||||||
|
# icon: Specify a valid fontawesome icon class
|
||||||
|
|
||||||
|
facebook:
|
||||||
|
name: "Facebook"
|
||||||
|
baseURL: "https://www.facebook.com/"
|
||||||
|
icon: "fa-facebook"
|
||||||
|
|
||||||
|
github:
|
||||||
|
name: "GitHub"
|
||||||
|
baseURL: "https://github.com/"
|
||||||
|
icon: "fa-github"
|
||||||
|
|
||||||
|
twitter:
|
||||||
|
name: "Twitter"
|
||||||
|
baseURL: "https://twitter.com/"
|
||||||
|
icon: "fa-twitter"
|
||||||
|
|
||||||
|
reddit:
|
||||||
|
name: "Reddit"
|
||||||
|
baseURL: "https://reddit.com/u/"
|
||||||
|
icon: "fa-reddit"
|
||||||
|
|
||||||
|
email:
|
||||||
|
name: "Email me"
|
||||||
|
baseURL: "mailto:"
|
||||||
|
icon: "fa-envelope"
|
||||||
|
|
||||||
|
linkedin:
|
||||||
|
name: "LinkedIn"
|
||||||
|
baseURL: "https://linkedin.com/in/"
|
||||||
|
icon: "fa-linkedin"
|
||||||
|
|
||||||
|
xing:
|
||||||
|
name: "Xing"
|
||||||
|
baseURL: "https://www.xing.com/profile/"
|
||||||
|
icon: "fa-xing"
|
||||||
|
|
||||||
|
stackoverflow:
|
||||||
|
name: "StackOverflow"
|
||||||
|
baseURL: "https://stackoverflow.com/users/"
|
||||||
|
icon: "fa-stack-overflow"
|
||||||
|
|
||||||
|
snapchat:
|
||||||
|
name: "Snapchat"
|
||||||
|
baseURL: "https://www.snapchat.com/add/"
|
||||||
|
icon: "fa-snapchat-ghost"
|
||||||
|
|
||||||
|
instagram:
|
||||||
|
name: "Instagram"
|
||||||
|
baseURL: "https://www.instagram.com/"
|
||||||
|
icon: "fa-instagram"
|
||||||
|
|
||||||
|
youtube:
|
||||||
|
name: "YouTube"
|
||||||
|
baseURL: "https://www.youtube.com/"
|
||||||
|
icon: "fa-youtube"
|
||||||
|
|
||||||
|
spotify:
|
||||||
|
name: "Spotify"
|
||||||
|
baseURL: "https://open.spotify.com/user/"
|
||||||
|
icon: "fa-spotify"
|
||||||
|
|
||||||
|
telephone:
|
||||||
|
name: "Phone"
|
||||||
|
baseURL: "tel:"
|
||||||
|
icon: "fa-phone"
|
||||||
|
|
||||||
|
rss:
|
||||||
|
name: "RSS"
|
||||||
|
baseURL: "{{ '/feed.xml' | relative_url }}"
|
||||||
|
icon: "fa-rss"
|
||||||
|
|
||||||
|
steam:
|
||||||
|
name: "Steam"
|
||||||
|
baseURL: "https://steamcommunity.com/id/"
|
||||||
|
icon: "fa-steam"
|
||||||
|
|
||||||
|
twitch:
|
||||||
|
name: "Twitch"
|
||||||
|
baseURL: "https://www.twitch.tv/"
|
||||||
|
icon: "fa-twitch"
|
||||||
|
|
||||||
|
yelp:
|
||||||
|
name: "Yelp"
|
||||||
|
baseURL: "https://{{ site.author.yelp }}.yelp.com"
|
||||||
|
icon: "fa-yelp"
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{% if site.cloudflare_analytics %}
|
||||||
|
<!-- Cloudflare Web Analytics -->
|
||||||
|
<script defer
|
||||||
|
src='https://static.cloudflareinsights.com/beacon.min.js'
|
||||||
|
data-cf-beacon='{"token": "{{ site.cloudflare_analytics}}"}'>
|
||||||
|
</script>
|
||||||
|
<!-- End Cloudflare Web Analytics -->
|
||||||
|
{% endif %}
|
||||||
7
blog.bryanroessler.com/_includes/commentbox.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% if site.commentbox %}
|
||||||
|
|
||||||
|
<div class="commentbox"></div>
|
||||||
|
<script src="https://unpkg.com/commentbox.io/dist/commentBox.min.js"></script>
|
||||||
|
<script>commentBox('{{ site.commentbox }}')</script>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
{% if page.comments %}
|
{% if page.comments %}
|
||||||
{% include disqus.html %}
|
{% include disqus.html %}
|
||||||
{% include fb-comment.html %}
|
{% include fb-comment.html %}
|
||||||
{% include staticman-comments.html %}
|
{% include staticman-comments.html %}
|
||||||
{% include utterances-comment.html %}
|
{% include utterances-comment.html %}
|
||||||
{% endif %}
|
{% include giscus-comment.html %}
|
||||||
|
{% include commentbox.html %}
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@@ -1,19 +1,17 @@
|
|||||||
{%- if site.disqus -%}
|
{%- if site.disqus -%}
|
||||||
<div class="disqus-comments">
|
<div class="comments">
|
||||||
<div class="comments">
|
|
||||||
<div id="disqus_thread"></div>
|
<div id="disqus_thread"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var disqus_shortname = '{{ site.disqus }}';
|
var disqus_shortname = '{{ site.disqus }}';
|
||||||
/* ensure that pages with query string get the same discussion */
|
/* ensure that pages with query string get the same discussion */
|
||||||
var url_parts = window.location.href.split("?");
|
var url_parts = window.location.href.split("?");
|
||||||
var disqus_url = url_parts[0];
|
var disqus_url = url_parts[0];
|
||||||
(function() {
|
(function() {
|
||||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% if include.css.sri %}
|
{% if include.css.sri %}
|
||||||
<link href="{{ include.css.href }}" rel="stylesheet" integrity="{{ include.css.sri }}" crossorigin="anonymous">
|
<link href="{{ include.css.href }}" rel="stylesheet" integrity="{{ include.css.sri }}" crossorigin="anonymous">
|
||||||
{% elsif include.css.href %}
|
{% elsif include.css.href %}
|
||||||
<link rel="stylesheet" href="{{ include.css.href }}">
|
<link rel="stylesheet" href="{{ include.css.href }}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<link rel="stylesheet" href="{{ include.css }}">
|
<link rel="stylesheet" href="{{ include.css }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -1,16 +1,14 @@
|
|||||||
{%- if site.fb_comment_id -%}
|
{%- if site.fb_comment_id -%}
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
<div id="fb-root"></div>
|
<div id="fb-root"></div>
|
||||||
<script>
|
<script>(function(d, s, id) {
|
||||||
(function(d, s, id) {
|
var js, fjs = d.getElementsByTagName(s)[0];
|
||||||
var js, fjs = d.getElementsByTagName(s)[0];
|
if (d.getElementById(id)) return;
|
||||||
if (d.getElementById(id)) return;
|
js = d.createElement(s); js.id = id;
|
||||||
js = d.createElement(s); js.id = id;
|
js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12&appId={{ site.fb_comment_id }}&autoLogAppEvents=1';
|
||||||
js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12&appId={{ site.fb_comment_id }}&autoLogAppEvents=1';
|
fjs.parentNode.insertBefore(js, fjs);
|
||||||
fjs.parentNode.insertBefore(js, fjs);
|
}(document, 'script', 'facebook-jssdk'));</script>
|
||||||
}(document, 'script', 'facebook-jssdk'));
|
<div class="fb-comments" data-href="{{ page.url | absolute_url }}" data-width="100%" data-numposts="5"></div>
|
||||||
</script>
|
<noscript>Please enable JavaScript to view the comments powered by Facebook.</noscript>
|
||||||
<div class="fb-comments" data-href="{{ page.url | absolute_url }}" data-width="100%" data-numposts="5"></div>
|
|
||||||
<noscript>Please enable JavaScript to view the comments powered by Facebook.</noscript>
|
|
||||||
</div>
|
</div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|||||||
@@ -1,18 +1,16 @@
|
|||||||
<footer class="footer-min">
|
<footer class="footer-min">
|
||||||
<div class="text-muted">
|
<div class="text-muted">
|
||||||
{% if site.author %}
|
{{ site.author.name }}
|
||||||
{{ site.author }}
|
•
|
||||||
•
|
{% if page.date %}
|
||||||
{% endif %}
|
{{ page.date }}
|
||||||
{% if page.date %}
|
{% else %}
|
||||||
{{ page.date }}
|
{{ site.time | date: '%Y' }}
|
||||||
{% else %}
|
{% endif %}
|
||||||
{{ site.time | date: '%Y' }}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if site.url-pretty %}
|
{% if site.url-pretty %}
|
||||||
•
|
•
|
||||||
<a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
|
<a href="{{ site.url }}">{{ site.url-pretty }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
|
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
|
||||||
{% if js contains 'jquery' %}
|
{% if js contains 'jquery' %}
|
||||||
<script>
|
<script>
|
||||||
if (typeof jQuery == 'undefined') {
|
if (typeof jQuery == 'undefined') {
|
||||||
document.write('<script src="{{ js | relative_url }}"></scr' + 'ipt>');
|
document.write('<script src="{{ js | relative_url }}"></scr' + 'ipt>');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{% else %}
|
{% else %}
|
||||||
<script src="{{ js | relative_url }}"></script>
|
<script src="{{ js | relative_url }}"></script>
|
||||||
|
|||||||
@@ -1,23 +1,36 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<div class="container-md beautiful-jekyll-footer">
|
<div class="container beautiful-jekyll-footer">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
{% include social-networks-links.html %}
|
<ul class="list-inline text-center footer-links">
|
||||||
{% if page.footer-extra %}
|
{%- for link in site.social-network-links -%}
|
||||||
<div class="footer-custom-content">
|
{%- assign curkey = link[0] -%}
|
||||||
{% include {{ page.footer-extra }} %}
|
{%- assign element = site.data.SocialNetworks[curkey] -%}
|
||||||
</div>
|
<li>
|
||||||
{% endif %}
|
{%- if curkey == 'rss' -%}
|
||||||
|
<a href="{{ '/feed.xml' | relative_url }}" title="{{ element.name }}">
|
||||||
|
{%- elsif curkey == 'yelp' -%}
|
||||||
|
<a href="https://{{ site.social-network-links[curkey] }}.yelp.com" title="{{ element.name }}">
|
||||||
|
{%- else -%}
|
||||||
|
<a href="{{element.baseURL}}{{ site.social-network-links[curkey] }}" title="{{ element.name }}">
|
||||||
|
{%- endif -%}
|
||||||
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
<i class="fa fa-circle fa-stack-2x"></i>
|
||||||
|
<i class="fa {{ element.icon }} fa-stack-1x fa-inverse"></i>
|
||||||
|
</span>
|
||||||
|
<span class="sr-only">{{ element.name }}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endfor -%}
|
||||||
|
</ul>
|
||||||
<p class="copyright text-muted">
|
<p class="copyright text-muted">
|
||||||
{% if site.author %}
|
{{ site.author.name }}
|
||||||
{{ site.author }}
|
•
|
||||||
•
|
|
||||||
{% endif %}
|
|
||||||
{{ site.time | date: '%Y' }}
|
{{ site.time | date: '%Y' }}
|
||||||
|
|
||||||
{% if site.url-pretty %}
|
{% if site.url-pretty %}
|
||||||
•
|
•
|
||||||
<a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
|
<a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.matomo %}
|
{% if site.matomo %}
|
||||||
@@ -27,11 +40,11 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif%}
|
{% endif%}
|
||||||
</p>
|
</p>
|
||||||
<!-- Please don't remove this, keep my open source work credited :) -->
|
<!-- Please don't remove this, keep my open source work credited :) -->
|
||||||
<p class="theme-by text-muted">
|
<p class="theme-by text-muted">
|
||||||
Theme by
|
Theme by
|
||||||
<a href="https://beautifuljekyll.com">beautiful-jekyll</a>
|
<a href="https://deanattali.com/beautiful-jekyll/">beautiful-jekyll</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
16
blog.bryanroessler.com/_includes/giscus-comment.html
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{% if site.giscus.repository and site.giscus.hostname %}
|
||||||
|
|
||||||
|
<script src="https://{{ site.giscus.hostname }}/client.js"
|
||||||
|
data-repo="{{ site.giscus.repository }}"
|
||||||
|
data-repo-id="{{ site.giscus.repository-id }}"
|
||||||
|
data-category="{{ site.giscus.category }}"
|
||||||
|
data-category-id="{{ site.giscus.category-id }}"
|
||||||
|
data-mapping="{{ site.giscus.mapping }}"
|
||||||
|
data-reactions-enabled="{{ site.giscus.reactions-enabled }}"
|
||||||
|
data-emit-metadata="{{ site.giscus.emit-metadata }}"
|
||||||
|
data-theme="{{ site.giscus.theme }}"
|
||||||
|
crossorigin="anonymous"
|
||||||
|
async>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
{% if site.google_analytics %}
|
{% if site.google_analytics %}
|
||||||
<!-- Google Analytics -->
|
<!-- Google Analytics -->
|
||||||
<script>
|
<script>
|
||||||
(function (i, s, o, g, r, a, m) {
|
(function (i, s, o, g, r, a, m) {
|
||||||
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
|
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
|
||||||
(i[r].q = i[r].q || []).push(arguments)
|
(i[r].q = i[r].q || []).push(arguments)
|
||||||
}, i[r].l = 1 * new Date(); a = s.createElement(o),
|
}, i[r].l = 1 * new Date(); a = s.createElement(o),
|
||||||
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
|
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
|
||||||
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
||||||
ga('create', '{{ site.google_analytics }}', 'auto');
|
ga('create', '{{ site.google_analytics }}', 'auto');
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
</script>
|
</script>
|
||||||
<!-- End Google Analytics -->
|
<!-- End Google Analytics -->
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
{% if site.gtag %}
|
{% if site.gtag %}
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.gtag }}"></script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.gtag }}"></script>
|
||||||
<script>
|
<script>
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || [];
|
||||||
function gtag(){dataLayer.push(arguments);}
|
function gtag(){dataLayer.push(arguments);}
|
||||||
gtag('js', new Date());
|
gtag('js', new Date());
|
||||||
|
|
||||||
gtag('config', '{{ site.gtag }}');
|
gtag('config', '{{ site.gtag }}');
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{% if site.gtm %}
|
{% if site.gtm %}
|
||||||
<!-- Google Tag Manager (noscript) -->
|
<!-- Google Tag Manager (noscript) -->
|
||||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ site.gtm }}" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ site.gtm }}"
|
||||||
<!-- End Google Tag Manager (noscript) -->
|
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||||
|
<!-- End Google Tag Manager (noscript) -->
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
{% if site.gtm %}
|
{% if site.gtm %}
|
||||||
<!-- Google Tag Manager -->
|
<!-- Google Tag Manager -->
|
||||||
<script>
|
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||||
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
})(window,document,'script','dataLayer','{{ site.gtm }}');</script>
|
||||||
})(window,document,'script','dataLayer','{{ site.gtm }}');
|
<!-- End Google Tag Manager -->
|
||||||
</script>
|
|
||||||
<!-- End Google Tag Manager -->
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -1,18 +1,17 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover">
|
||||||
|
|
||||||
|
<title>{% if page.use-site-title %}{{ site.title }} {{ site.title-separator }} {{ site.description }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
||||||
|
|
||||||
|
<meta name="author" content="{{ site.author.name }}" />
|
||||||
|
|
||||||
<title>{% if page.use-site-title %}{{ site.title }} {{ site.title-separator | default: '-' }} {{ site.description }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
|
||||||
|
|
||||||
{% if site.author %}
|
|
||||||
<meta name="author" content="{{ site.author }}">
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if page.subtitle %}
|
{% if page.subtitle %}
|
||||||
<meta name="description" content="{{ page.subtitle }}">
|
<meta name="description" content="{{ page.subtitle }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<link rel="alternate" type="application/rss+xml" title="{{ site.title | default: 'Untitled' }} {{ site.title-separator | default: '-' }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}">
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title }} {{ site.title-separator }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}" />
|
||||||
|
|
||||||
{% include gtag.html %}
|
{% include gtag.html %}
|
||||||
{% include gtm_head.html %}
|
{% include gtm_head.html %}
|
||||||
@@ -26,7 +25,13 @@
|
|||||||
|
|
||||||
{% if layout.common-css %}
|
{% if layout.common-css %}
|
||||||
{% for css in layout.common-css %}
|
{% for css in layout.common-css %}
|
||||||
<link rel="stylesheet" href="{{ css | relative_url }}">
|
<link rel="stylesheet" href="{{ css | relative_url }}" />
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if layout.common-googlefonts %}
|
||||||
|
{% for font in layout.common-googlefonts %}
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@@ -38,21 +43,27 @@
|
|||||||
|
|
||||||
{% if page.css %}
|
{% if page.css %}
|
||||||
{% for css in page.css %}
|
{% for css in page.css %}
|
||||||
<link rel="stylesheet" href="{{ css | relative_url }}">
|
<link rel="stylesheet" href="{{ css | relative_url }}" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Facebook OpenGraph tags -->
|
{% if page.googlefonts %}
|
||||||
|
{% for font in page.googlefonts %}
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<!-- Facebook OpenGraph tags -->
|
||||||
{% if site.fb_app_id %}
|
{% if site.fb_app_id %}
|
||||||
<meta property="fb:app_id" content="{{ site.fb_app_id }}">
|
<meta property="fb:app_id" content="{{ site.fb_app_id }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.meta-title %}
|
{% if page.meta-title %}
|
||||||
<meta property="og:title" content="{{ page.meta-title }}">
|
<meta property="og:title" content="{{ page.meta-title }}" />
|
||||||
{% elsif page.title %}
|
{% elsif page.title %}
|
||||||
<meta property="og:title" content="{{ page.title }}">
|
<meta property="og:title" content="{{ page.title }}" />
|
||||||
{% elsif site.title %}
|
{% else %}
|
||||||
<meta property="og:title" content="{{ site.title }}">
|
<meta property="og:title" content="{{ site.title }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.meta-description %}
|
{% if page.meta-description %}
|
||||||
@@ -64,59 +75,34 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if page.id %}
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:type" content="article">
|
|
||||||
<meta property="og:article:author" content="{{ site.author }}">
|
|
||||||
<meta property="og:article:published_time" content="{{ page.date | date_to_xmlschema }}">
|
|
||||||
{% else %}
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if page.id %}
|
{% if page.id %}
|
||||||
<meta property="og:url" content="{{ page.url | absolute_url }}">
|
<meta property="og:url" content="{{ page.url | absolute_url }}" />
|
||||||
<link rel="canonical" href="{{ page.url | absolute_url }}">
|
<link rel="canonical" href="{{ page.url | absolute_url }}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta property="og:url" content="{{ page.url | absolute_url | strip_index }}">
|
<meta property="og:url" content="{{ page.url | absolute_url | strip_index }}" />
|
||||||
<link rel="canonical" href="{{ page.url | absolute_url | strip_index }}">
|
<link rel="canonical" href="{{ page.url | absolute_url | strip_index }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{%- capture shareimg -%}
|
{% if page.share-img %}
|
||||||
{% if page.share-img %}
|
<meta property="og:image" content="{{ page.share-img }}" />
|
||||||
{{ page.share-img }}
|
{% elsif site.avatar %}
|
||||||
{% elsif page.cover-img %}
|
<meta property="og:image" content="{{ site.avatar | absolute_url }}" />
|
||||||
{% if page.cover-img.first %}
|
|
||||||
{{ page.cover-img[0].first.first }}
|
|
||||||
{% else %}
|
|
||||||
{{ page.cover-img }}
|
|
||||||
{% endif %}
|
|
||||||
{% elsif page.thumbnail-img %}
|
|
||||||
{{ page.thumbnail-img }}
|
|
||||||
{% elsif site.avatar %}
|
|
||||||
{{ site.avatar }}
|
|
||||||
{% endif %}
|
|
||||||
{% endcapture %}
|
|
||||||
{% assign shareimg=shareimg | strip %}
|
|
||||||
|
|
||||||
{% if shareimg != "" %}
|
|
||||||
<meta property="og:image" content="{{ shareimg | absolute_url }}">
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<!-- Twitter summary cards -->
|
<!-- Twitter summary cards -->
|
||||||
{% if shareimg != "" and shareimg != site.avatar %}
|
<meta name="twitter:card" content="summary" />
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:site" content="@{{ site.author.twitter }}" />
|
||||||
{% else %}
|
<meta name="twitter:creator" content="@{{ site.author.twitter }}" />
|
||||||
<meta name="twitter:card" content="summary">
|
|
||||||
{% endif %}
|
|
||||||
<meta name="twitter:site" content="@{{ site.social-network-links.twitter }}">
|
|
||||||
<meta name="twitter:creator" content="@{{ site.social-network-links.twitter }}">
|
|
||||||
|
|
||||||
{% if page.meta-title %}
|
{% if page.meta-title %}
|
||||||
<meta name="twitter:title" content="{{ page.meta-title }}">
|
<meta name="twitter:title" content="{{ page.meta-title }}" />
|
||||||
{% elsif page.title %}
|
{% elsif page.title %}
|
||||||
<meta name="twitter:title" content="{{ page.title }}">
|
<meta name="twitter:title" content="{{ page.title }}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta name="twitter:title" content="{{ site.title }}">
|
<meta name="twitter:title" content="{{ site.title }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.meta-description %}
|
{% if page.meta-description %}
|
||||||
@@ -127,8 +113,10 @@
|
|||||||
<meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
|
<meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if shareimg != "" %}
|
{% if page.share-img %}
|
||||||
<meta name="twitter:image" content="{{ shareimg | absolute_url }}">
|
<meta name="twitter:image" content="{{ page.share-img }}" />
|
||||||
|
{% elsif site.avatar %}
|
||||||
|
<meta name="twitter:image" content="{{ site.avatar | absolute_url }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.matomo %}
|
{% if site.matomo %}
|
||||||
@@ -137,7 +125,7 @@
|
|||||||
|
|
||||||
{% if page.comments and site.staticman.repository and site.staticman.branch %}
|
{% if page.comments and site.staticman.repository and site.staticman.branch %}
|
||||||
<!-- Staticman -->
|
<!-- Staticman -->
|
||||||
<link rel="stylesheet" href="{{ "/assets/css/staticman.css" | relative_url }}">
|
<link rel="stylesheet" href="{{ "/css/staticman.css" | relative_url }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -1,48 +1,43 @@
|
|||||||
<!-- TODO this file has become a mess, refactor it -->
|
<!-- TODO this file has become a mess, refactor it -->
|
||||||
|
|
||||||
{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
|
{% if page.bigimg or page.title %}
|
||||||
|
|
||||||
{% if page.cover-img or page.title %}
|
{% if page.bigimg %}
|
||||||
|
<div id="header-big-imgs" data-num-img={% if page.bigimg.first %}{{ page.bigimg.size }}{% else %}1{% endif %}
|
||||||
{% if page.cover-img %}
|
{% for bigimg in page.bigimg %}
|
||||||
<div id="header-big-imgs" data-num-img={% if page.cover-img.first %}{{ page.cover-img.size }}{% else %}1{% endif %}
|
{% assign imgnum = forloop.index %}
|
||||||
{% for bigimg in page.cover-img %}
|
{% for imginfo in bigimg %}
|
||||||
{% assign imgnum = forloop.index %}
|
{% if imginfo[0] %}
|
||||||
{% for imginfo in bigimg %}
|
data-img-src-{{ imgnum }}="{{ imginfo[0] | relative_url }}"
|
||||||
{% if imginfo[0] %}
|
data-img-desc-{{ imgnum }}="{{ imginfo[1] }}"
|
||||||
data-img-src-{{ imgnum }}="{{ imginfo[0] | absolute_url }}"
|
{% else %}
|
||||||
data-img-desc-{{ imgnum }}="{{ imginfo[1] }}"
|
data-img-src-{{ imgnum }}="{{ imginfo | relative_url }}"
|
||||||
{% else %}
|
{% endif %}
|
||||||
data-img-src-{{ imgnum }}="{{ imginfo | absolute_url }}"
|
{% endfor %}
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
></div>
|
></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<header class="header-section {% if page.cover-img %}has-img{% endif %}">
|
<header class="header-section {% if page.bigimg %}has-img{% endif %}">
|
||||||
{% if page.cover-img %}
|
{% if page.bigimg %}
|
||||||
<div class="big-img intro-header">
|
<div class="big-img intro-header">
|
||||||
<div class="container-md">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
<div class="{{ include.type }}-heading">
|
<div class="{{ include.type }}-heading">
|
||||||
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
||||||
{% if page.subtitle %}
|
{% if page.subtitle %}
|
||||||
{% if include.type == "page" %}
|
{% if include.type == "page" %}
|
||||||
<hr class="small">
|
<hr class="small">
|
||||||
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if include.type == "post" %}
|
{% if include.type == "post" %}
|
||||||
<span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
|
<span class="post-meta">Posted on {{ page.date | date: site.date_format }}</span>
|
||||||
{% if page.readtime %}
|
{% endif %}
|
||||||
{% include readtime.html %}
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -51,26 +46,23 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="intro-header no-img">
|
<div class="intro-header no-img">
|
||||||
<div class="container-md">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
<div class="{{ include.type }}-heading">
|
<div class="{{ include.type }}-heading">
|
||||||
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
||||||
{% if page.subtitle %}
|
{% if page.subtitle %}
|
||||||
{% if include.type == "page" %}
|
{% if include.type == "page" %}
|
||||||
<hr class="small">
|
<hr class="small">
|
||||||
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if include.type == "post" %}
|
{% if include.type == "post" %}
|
||||||
<span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
|
<span class="post-meta">Posted on {{ page.date | date: site.date_format }}</span>
|
||||||
{% if page.readtime %}
|
{% endif %}
|
||||||
{% include readtime.html %}
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
4
blog.bryanroessler.com/_includes/just_comments.html
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{%- if site.just-comments -%}
|
||||||
|
<div class="just-comments" data-apikey="{{site.just-comments}}"></div>
|
||||||
|
<script async src="https://just-comments.com/w2.js"></script>
|
||||||
|
{%- endif -%}
|
||||||
12
blog.bryanroessler.com/_includes/mathjax.html
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{% if page.mathjax %}
|
||||||
|
<script type="text/javascript">
|
||||||
|
MathJax = {
|
||||||
|
options: {
|
||||||
|
skipHtmlTags: [
|
||||||
|
'script', 'noscript', 'style', 'textarea', 'pre', 'code'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
||||||
|
{% endif %}
|
||||||
@@ -1,46 +1,57 @@
|
|||||||
<nav class="navbar navbar-expand-md navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% endif %}">
|
<nav class="navbar navbar-default navbar-fixed-top navbar-custom">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
|
||||||
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
</button>
|
||||||
|
{%- if site.title-img -%}
|
||||||
|
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img src="{{ site.title-img }}"/></a>
|
||||||
|
{%- else -%}
|
||||||
|
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
|
||||||
|
{%- endif -%}
|
||||||
|
</div>
|
||||||
|
|
||||||
{%- if site.title-img -%}
|
<div class="collapse navbar-collapse" id="main-navbar">
|
||||||
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img }}"/></a>
|
<ul class="nav navbar-nav navbar-right">
|
||||||
{%- elsif site.title -%}
|
|
||||||
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
|
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar" aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="main-navbar">
|
|
||||||
<ul class="navbar-nav ml-auto">
|
|
||||||
{%- for link in site.navbar-links -%}
|
{%- for link in site.navbar-links -%}
|
||||||
{%- if link[1].first %}
|
{%- if link[1].first %}
|
||||||
<li class="nav-item dropdown">
|
<li class="navlinks-container">
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ link[0] }}</a>
|
<a class="navlinks-parent" href="javascript:void(0)">{{ link[0] }}</a>
|
||||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
<div class="navlinks-children">
|
||||||
{%- for childlink in link[1] -%}
|
{%- for childlink in link[1] -%}
|
||||||
{%- for linkparts in childlink %}
|
{%- for linkparts in childlink %}
|
||||||
<a class="dropdown-item" href="{{ linkparts[1] | relative_url }}">{{ linkparts[0] }}</a>
|
<a href="{{ linkparts[1] | relative_url }}">{{ linkparts[0] }}</a>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="nav-item">
|
<li><a href="{{ link[1] | relative_url }}">{{ link[0] }}</a></li>
|
||||||
<a class="nav-link" href="{{ link[1] | relative_url }}">{{ link[0] }}</a>
|
|
||||||
</li>
|
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if site.avatar and (layout.show-avatar or page.show-avatar) %}
|
|
||||||
<div class="avatar-container">
|
|
||||||
<div class="avatar-img-border">
|
|
||||||
<a href="{{ '' | absolute_url }}">
|
|
||||||
<img alt="Navbar avatar" class="avatar-img" src="{{ site.avatar | relative_url }}" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
|
{% if page.image and (layout.show-avatar or page.show-avatar) %}
|
||||||
|
<div class="avatar-container">
|
||||||
|
<div class="avatar-img-border">
|
||||||
|
<a href="{{ '' | absolute_url }}">
|
||||||
|
<img class="avatar-img" src="{{ page.image | relative_url }}" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% elsif site.avatar and (layout.show-avatar or page.show-avatar) %}
|
||||||
|
<div class="avatar-container">
|
||||||
|
<div class="avatar-img-border">
|
||||||
|
<a href="{{ '' | absolute_url }}">
|
||||||
|
<img class="avatar-img" src="{{ site.avatar | relative_url }}" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
{% assign number = finalReadTime | round %}
|
{% assign number = finalReadTime | round %}
|
||||||
{% if number >= 1 %}
|
{% if number >= 1 %}
|
||||||
{% assign yesReadTime = number | append: " minute read" %}
|
{% assign yesReadTime = number | append: " minute read" %}
|
||||||
<span class="reader-time post-meta"><span class="d-none d-md-inline middot">·</span> {{ yesReadTime }}</span>
|
<span class="post-meta"><span class="d-none d-md-inline middot">·</span> {{ yesReadTime }}</span>
|
||||||
{% elsif number < 1 %}
|
{% elsif number < 1 %}
|
||||||
{% assign minReadTime = '< 1 minute read' %}
|
{% assign minReadTime = '< 1 minute read' %}
|
||||||
<span class="reader-time post-meta"><span class="d-none d-md-inline middot">·</span> {{ minReadTime }}</span>
|
<span class="post-meta"><span class="d-none d-md-inline middot">·</span> {{ minReadTime }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign nilReadTime = number | replace:'0',' ' %}
|
{% assign nilReadTime = number | replace:'0',' ' %}
|
||||||
{{ nilReadTime }}
|
{{ nilReadTime }}
|
||||||
|
|||||||
19
blog.bryanroessler.com/_includes/search.html
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{% if site.post_search %}
|
||||||
|
|
||||||
|
<div id="beautifuljekyll-search-overlay">
|
||||||
|
|
||||||
|
<div id="nav-search-exit" title="Exit search">✕</div>
|
||||||
|
<input type="text" id="nav-search-input" placeholder="Search">
|
||||||
|
<ul id="search-results-container"></ul>
|
||||||
|
|
||||||
|
<script src="https://unpkg.com/simple-jekyll-search@latest/dest/simple-jekyll-search.min.js"></script>
|
||||||
|
<script>
|
||||||
|
SimpleJekyllSearch({
|
||||||
|
searchInput: document.getElementById('nav-search-input'),
|
||||||
|
resultsContainer: document.getElementById('search-results-container'),
|
||||||
|
json: '{{ site.baseurl }}/assets/data/searchcorpus.json'
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
|
{% if site.social-network-links %}
|
||||||
<ul class="list-inline text-center footer-links">
|
<ul class="list-inline text-center footer-links">
|
||||||
|
|
||||||
{%- if site.social-network-links.rss -%}
|
{%- for network in site.social-network-links -%}
|
||||||
|
|
||||||
|
{%- if network[0] == "rss" and network[1] and site.rss-description -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="{{ '/feed.xml' | relative_url }}" title="RSS">
|
<a href="{{ '/feed.xml' | relative_url }}" title="RSS">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
@@ -10,11 +13,11 @@
|
|||||||
<span class="sr-only">RSS</span>
|
<span class="sr-only">RSS</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.email -%}
|
{%- if network[0] == "email" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="mailto:{{ site.social-network-links.email }}" title="Email me">
|
<a href="mailto:{{ network[1] }}" title="Email me">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fas fa-envelope fa-stack-1x fa-inverse"></i>
|
<i class="fas fa-envelope fa-stack-1x fa-inverse"></i>
|
||||||
@@ -22,11 +25,11 @@
|
|||||||
<span class="sr-only">Email me</span>
|
<span class="sr-only">Email me</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.calendly -%}
|
{%- if network[0] == "calendly" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://calendly.com/{{ site.social-network-links.calendly }}" title="Schedule a meeting with me">
|
<a href="https://calendly.com/{{ network[1] }}" title="Schedule a meeting with me">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fas fa-calendar-check fa-stack-1x fa-inverse"></i>
|
<i class="fas fa-calendar-check fa-stack-1x fa-inverse"></i>
|
||||||
@@ -34,11 +37,11 @@
|
|||||||
<span class="sr-only">Schedule a meeting with me</span>
|
<span class="sr-only">Schedule a meeting with me</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.facebook -%}
|
{%- if network[0] == "facebook" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://www.facebook.com/{{ site.social-network-links.facebook }}" title="Facebook">
|
<a href="https://www.facebook.com/{{ network[1] }}" title="Facebook">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-facebook fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-facebook fa-stack-1x fa-inverse"></i>
|
||||||
@@ -46,11 +49,11 @@
|
|||||||
<span class="sr-only">Facebook</span>
|
<span class="sr-only">Facebook</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.telegram -%}
|
{%- if network[0] == "telegram" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://t.me/{{ site.social-network-links.telegram }}" title="Telegram">
|
<a href="https://t.me/{{ network[1] }}" title="Telegram">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-telegram-plane fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-telegram-plane fa-stack-1x fa-inverse"></i>
|
||||||
@@ -58,11 +61,23 @@
|
|||||||
<span class="sr-only">Telegram</span>
|
<span class="sr-only">Telegram</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.github -%}
|
{%- if network[0] == "whatsapp" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://github.com/{{ site.social-network-links.github }}" title="GitHub">
|
<a href="https://wa.me/{{ network[1] }}" title="Whatsapp">
|
||||||
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
|
<i class="fab fa-whatsapp fa-stack-1x fa-inverse"></i>
|
||||||
|
</span>
|
||||||
|
<span class="sr-only">Whatsapp</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if network[0] == "github" -%}
|
||||||
|
<li class="list-inline-item">
|
||||||
|
<a href="https://github.com/{{ network[1] }}" title="GitHub">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-github fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-github fa-stack-1x fa-inverse"></i>
|
||||||
@@ -70,23 +85,39 @@
|
|||||||
<span class="sr-only">GitHub</span>
|
<span class="sr-only">GitHub</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.twitter -%}
|
{%- if network[0] == "gitlab" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://twitter.com/{{ site.social-network-links.twitter }}" title="Twitter">
|
<a href="https://gitlab.com/{{ network[1] }}" title="GitLab">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-twitter fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-gitlab fa-stack-1x fa-inverse"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="sr-only">Twitter</span>
|
<span class="sr-only">GitLab</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.reddit -%}
|
{%- if network[0] == "twitter" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://reddit.com/u/{{ site.social-network-links.reddit }}" title="Reddit">
|
<a href="https://twitter.com/{{ network[1] }}" title="X (Twitter)">
|
||||||
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
|
<i class="fab fa-x-twitter fa-stack-1x fa-inverse"></i>
|
||||||
|
</span>
|
||||||
|
<span class="sr-only">X (Twitter)</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if network[0] == "reddit" -%}
|
||||||
|
{% assign reddit_start = network[1] | split: "/" | first -%}
|
||||||
|
{% unless reddit_start == 'r' or reddit_start == 'u' -%}
|
||||||
|
{% assign reddit_url_prefix = 'u/' -%}
|
||||||
|
{% endunless -%}
|
||||||
|
<li class="list-inline-item">
|
||||||
|
<a href="https://reddit.com/{{ reddit_url_prefix }}{{ network[1] }}" title="Reddit">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-reddit fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-reddit fa-stack-1x fa-inverse"></i>
|
||||||
@@ -94,11 +125,11 @@
|
|||||||
<span class="sr-only">Reddit</span>
|
<span class="sr-only">Reddit</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.linkedin -%}
|
{%- if network[0] == "linkedin" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://linkedin.com/in/{{ site.social-network-links.linkedin }}" title="LinkedIn">
|
<a href="https://linkedin.com/in/{{ network[1] }}" title="LinkedIn">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-linkedin fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-linkedin fa-stack-1x fa-inverse"></i>
|
||||||
@@ -106,11 +137,11 @@
|
|||||||
<span class="sr-only">LinkedIn</span>
|
<span class="sr-only">LinkedIn</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.xing -%}
|
{%- if network[0] == "xing" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://www.xing.com/profile/{{ site.social-network-links.xing }}" title="Xing">
|
<a href="https://www.xing.com/profile/{{ network[1] }}" title="Xing">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-xing fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-xing fa-stack-1x fa-inverse"></i>
|
||||||
@@ -118,11 +149,11 @@
|
|||||||
<span class="sr-only">Xing</span>
|
<span class="sr-only">Xing</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.stackoverflow -%}
|
{%- if network[0] == "stackoverflow" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://stackoverflow.com/users/{{ site.social-network-links.stackoverflow }}" title="StackOverflow">
|
<a href="https://stackoverflow.com/users/{{ network[1] }}" title="StackOverflow">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-stack-overflow fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-stack-overflow fa-stack-1x fa-inverse"></i>
|
||||||
@@ -130,11 +161,11 @@
|
|||||||
<span class="sr-only">StackOverflow</span>
|
<span class="sr-only">StackOverflow</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.snapchat -%}
|
{%- if network[0] == "snapchat" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://www.snapchat.com/add/{{ site.social-network-links.snapchat }}" title="Snapchat">
|
<a href="https://www.snapchat.com/add/{{ network[1] }}" title="Snapchat">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-snapchat-ghost fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-snapchat-ghost fa-stack-1x fa-inverse"></i>
|
||||||
@@ -142,11 +173,11 @@
|
|||||||
<span class="sr-only">Snapchat</span>
|
<span class="sr-only">Snapchat</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.instagram -%}
|
{%- if network[0] == "instagram" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://www.instagram.com/{{ site.social-network-links.instagram }}" title="Instagram">
|
<a href="https://www.instagram.com/{{ network[1] }}" title="Instagram">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-instagram fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-instagram fa-stack-1x fa-inverse"></i>
|
||||||
@@ -154,11 +185,11 @@
|
|||||||
<span class="sr-only">Instagram</span>
|
<span class="sr-only">Instagram</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.youtube -%}
|
{%- if network[0] == "youtube" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://www.youtube.com/{{ site.social-network-links.youtube }}" title="YouTube">
|
<a href="https://www.youtube.com/{{ network[1] }}" title="YouTube">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-youtube fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-youtube fa-stack-1x fa-inverse"></i>
|
||||||
@@ -166,11 +197,11 @@
|
|||||||
<span class="sr-only">YouTube</span>
|
<span class="sr-only">YouTube</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.spotify -%}
|
{%- if network[0] == "spotify" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://open.spotify.com/user/{{ site.social-network-links.spotify }}" title="Spotify">
|
<a href="https://open.spotify.com/user/{{ network[1] }}" title="Spotify">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-spotify fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-spotify fa-stack-1x fa-inverse"></i>
|
||||||
@@ -178,11 +209,11 @@
|
|||||||
<span class="sr-only">Spotify</span>
|
<span class="sr-only">Spotify</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.telephone -%}
|
{%- if network[0] == "telephone" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="tel:{{ site.social-network-links.telephone }}" title="Phone">
|
<a href="tel:{{ network[1] }}" title="Phone">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fas fa-phone fa-stack-1x fa-inverse"></i>
|
<i class="fas fa-phone fa-stack-1x fa-inverse"></i>
|
||||||
@@ -190,11 +221,11 @@
|
|||||||
<span class="sr-only">Phone</span>
|
<span class="sr-only">Phone</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.steam -%}
|
{%- if network[0] == "steam" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://steamcommunity.com/id/{{ site.social-network-links.steam }}" title="Steam">
|
<a href="https://steamcommunity.com/id/{{ network[1] }}" title="Steam">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-steam fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-steam fa-stack-1x fa-inverse"></i>
|
||||||
@@ -202,11 +233,11 @@
|
|||||||
<span class="sr-only">Steam</span>
|
<span class="sr-only">Steam</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.twitch -%}
|
{%- if network[0] == "twitch" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://www.twitch.tv/{{ site.social-network-links.twitch }}" title="Twitch">
|
<a href="https://www.twitch.tv/{{ network[1] }}" title="Twitch">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-twitch fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-twitch fa-stack-1x fa-inverse"></i>
|
||||||
@@ -214,11 +245,11 @@
|
|||||||
<span class="sr-only">Twitch</span>
|
<span class="sr-only">Twitch</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.yelp -%}
|
{%- if network[0] == "yelp" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://{{ site.social-network-links.yelp }}.yelp.com" title="Yelp">
|
<a href="https://yelp.com/{{ network[1] }}" title="Yelp">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-yelp fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-yelp fa-stack-1x fa-inverse"></i>
|
||||||
@@ -226,11 +257,11 @@
|
|||||||
<span class="sr-only">Yelp</span>
|
<span class="sr-only">Yelp</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.mastodon -%}
|
{%- if network[0] == "mastodon" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://{{ site.social-network-links.mastodon }}" title="Mastodon">
|
<a rel="me" href="https://{{ network[1] }}" title="Mastodon">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-mastodon fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-mastodon fa-stack-1x fa-inverse"></i>
|
||||||
@@ -238,30 +269,133 @@
|
|||||||
<span class="sr-only">Mastodon</span>
|
<span class="sr-only">Mastodon</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.ORCID -%}
|
{%- if network[0] == "bluesky" -%}
|
||||||
|
<li class="list-inline-item">
|
||||||
|
<a rel="me" href="https://bsky.app/profile/{{ network[1] }}" title="Bluesky">
|
||||||
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
|
<i class="fas fa-square fa-stack-1x fa-inverse"></i>
|
||||||
|
</span>
|
||||||
|
<span class="sr-only">Bluesky</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if network[0] == "ORCID" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://orcid.org/{{ site.social-network-links.ORCID }}" title="ORCID">
|
<a href="https://orcid.org/{{ network[1] }}" title="ORCID">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fab fa-orcid fa-stack-1x fa-inverse"></i>
|
<i class="fab fa-orcid fa-stack-1x fa-inverse"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="sr-only">ORCID</span>
|
<span class="sr-only">ORCID</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if site.social-network-links.google-scholar -%}
|
{%- if network[0] == "google-scholar" -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="https://scholar.google.com/{{ site.social-network-links.google-scholar }}" title="Google Scholar">
|
<a href="https://scholar.google.com/citations?user={{ network[1] }}" title="Google Scholar">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
<i class="fas fa-circle fa-stack-2x"></i>
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
<i class="fa fa-graduation-cap fa-stack-1x fa-inverse"></i>
|
<i class="fa fa-graduation-cap fa-stack-1x fa-inverse"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="sr-only">Google Scholar</span>
|
<span class="sr-only">Google Scholar</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if network[0] == "patreon" -%}
|
||||||
|
<li class="list-inline-item">
|
||||||
|
<a href="https://patreon.com/{{ network[1] }}" title="Patreon">
|
||||||
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
|
<i class="fab fa-patreon fa-stack-1x fa-inverse"></i>
|
||||||
|
</span>
|
||||||
|
<span class="sr-only">Patreon</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if network[0] == "medium" -%}
|
||||||
|
<li class="list-inline-item">
|
||||||
|
<a href="https://medium.com/@{{ network[1] }}" title="Medium">
|
||||||
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
|
<i class="fab fa-medium fa-stack-1x fa-inverse"></i>
|
||||||
|
</span>
|
||||||
|
<span class="sr-only">Medium</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if network[0] == "itchio" -%}
|
||||||
|
<li class="list-inline-item">
|
||||||
|
<a href="https://{{ network[1] }}.itch.io/" title="Itchio">
|
||||||
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
|
<i class="fab fa-itch-io fa-stack-1x fa-inverse"></i>
|
||||||
|
</span>
|
||||||
|
<span class="sr-only">Itchio</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if network[0] == "discord" -%}
|
||||||
|
{% assign discord_start = network[1] | split: "/" | first -%}
|
||||||
|
{% unless discord_start == 'users' or discord_start == 'invite' -%}
|
||||||
|
{% assign discord_url_prefix = 'invite/' -%}
|
||||||
|
{% endunless -%}
|
||||||
|
<li class="list-inline-item">
|
||||||
|
<a href="https://discord.com/{{discord_url_prefix}}{{network[1]}}" title="Discord">
|
||||||
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
|
<i class="fab fa-discord fa-stack-1x fa-inverse"></i>
|
||||||
|
</span>
|
||||||
|
<span class="sr-only">Discord</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if network[0] == "kaggle" -%}
|
||||||
|
<li class="list-inline-item">
|
||||||
|
<a href="https://www.kaggle.com/{{ network[1] }}" title="Kaggle">
|
||||||
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
|
<i class="fab fa-kaggle fa-stack-1x fa-inverse"></i>
|
||||||
|
</span>
|
||||||
|
<span class="sr-only">Kaggle</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if network[0] == "hackerrank" -%}
|
||||||
|
<li class="list-inline-item">
|
||||||
|
<a href="https://www.hackerrank.com/{{ network[1] }}" title="Hackerrank">
|
||||||
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
|
<i class="fab fa-hackerrank fa-stack-1x fa-inverse"></i>
|
||||||
|
</span>
|
||||||
|
<span class="sr-only">Hackerrank</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if network[0] == "untappd" -%}
|
||||||
|
<li class="list-inline-item">
|
||||||
|
<a href="https://untappd.com/user/{{ network[1] }}" title="Untappd">
|
||||||
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
<i class="fas fa-circle fa-stack-2x"></i>
|
||||||
|
<i class="fab fa-untappd fa-stack-1x fa-inverse"></i>
|
||||||
|
</span>
|
||||||
|
<span class="sr-only">Untappd</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- endfor -%}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@@ -11,37 +11,32 @@
|
|||||||
<span class="sr-only">Share: </span>
|
<span class="sr-only">Share: </span>
|
||||||
|
|
||||||
{% if site.share-links-active.twitter %}
|
{% if site.share-links-active.twitter %}
|
||||||
|
<!--- Share on Twitter -->
|
||||||
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
|
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
|
||||||
class="btn btn-social-icon btn-twitter" title="Share on Twitter">
|
class="btn btn-social-icon btn-twitter" title="Share on Twitter">
|
||||||
<span class="fab fa-fw fa-twitter" aria-hidden="true"></span>
|
<span class="fa fa-fw fa-twitter" aria-hidden="true"></span>
|
||||||
<span class="sr-only">Twitter</span>
|
<span class="sr-only">Twitter</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.share-links-active.facebook %}
|
{% if site.share-links-active.facebook %}
|
||||||
|
<!--- Share on Facebook -->
|
||||||
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}"
|
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}"
|
||||||
class="btn btn-social-icon btn-facebook" title="Share on Facebook">
|
class="btn btn-social-icon btn-facebook" title="Share on Facebook">
|
||||||
<span class="fab fa-fw fa-facebook" aria-hidden="true"></span>
|
<span class="fa fa-fw fa-facebook" aria-hidden="true"></span>
|
||||||
<span class="sr-only">Facebook</span>
|
<span class="sr-only">Facebook</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.share-links-active.linkedin %}
|
{% if site.share-links-active.linkedin %}
|
||||||
|
<!--- Share on LinkedIn -->
|
||||||
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}"
|
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}"
|
||||||
class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn">
|
class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn">
|
||||||
<span class="fab fa-fw fa-linkedin" aria-hidden="true"></span>
|
<span class="fa fa-fw fa-linkedin" aria-hidden="true"></span>
|
||||||
<span class="sr-only">LinkedIn</span>
|
<span class="sr-only">LinkedIn</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.share-links-active.vk %}
|
|
||||||
<a href="https://vk.com/share.php?url={{ page.url | absolute_url | url_encode }}"
|
|
||||||
class="btn btn-social-icon btn-vk" title="Share on VK">
|
|
||||||
<span class="fab fa-fw fa-vk" aria-hidden="true"></span>
|
|
||||||
<span class="sr-only">VK</span>
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{% if site.staticman.repository and site.staticman.branch %}
|
{% if site.staticman.repository and site.staticman.branch %}
|
||||||
<div class="staticman-comments">
|
|
||||||
<div class="page__comments">
|
<div class="page__comments">
|
||||||
<!-- Start static comments -->
|
<!-- Start static comments -->
|
||||||
<div class="js-comments">
|
<div class="js-comments">
|
||||||
@@ -25,7 +24,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="comment-form-message">{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} <small class="required">*</small></label><br>
|
<label for="comment-form-message">{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} <small class="required">*</small></label><br>
|
||||||
<textarea type="text" rows="12" cols="36" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>
|
<textarea type="text" rows="12" cols="36" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>
|
||||||
<div class="small form-text"><a href="https://daringfireball.net/projects/markdown/">{{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}</a></div>
|
<div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">{{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}</a></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="comment-form-name">{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} <small class="required">*</small></label>
|
<label for="comment-form-name">{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} <small class="required">*</small></label>
|
||||||
@@ -39,7 +38,7 @@
|
|||||||
<label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
|
<label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
|
||||||
<input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
|
<input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group d-none" style="display: none;">
|
<div class="form-group hidden" style="display: none;">
|
||||||
<input type="hidden" name="options[origin]" value="{{ page.url | absolute_url }}">
|
<input type="hidden" name="options[origin]" value="{{ page.url | absolute_url }}">
|
||||||
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
|
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
|
||||||
<label for="comment-form-location">Not used. Leave blank if you are a human.</label>
|
<label for="comment-form-location">Not used. Leave blank if you are a human.</label>
|
||||||
@@ -48,9 +47,9 @@
|
|||||||
{% if site.staticman.reCaptcha.secret %}<input type="hidden" name="options[reCaptcha][secret]" value="{{ site.staticman.reCaptcha.secret }}">{% endif %}
|
{% if site.staticman.reCaptcha.secret %}<input type="hidden" name="options[reCaptcha][secret]" value="{{ site.staticman.reCaptcha.secret }}">{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<!-- Start comment form alert messaging -->
|
<!-- Start comment form alert messaging -->
|
||||||
<p class="d-none js-notice alert">
|
<p class="hidden js-notice">
|
||||||
<strong class="js-notice-text-success d-none">{{ site.data.ui-text[site.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}</strong>
|
<strong class="js-notice-text-success hidden">{{ site.data.ui-text[site.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}</strong>
|
||||||
<strong class="js-notice-text-failure d-none">{{ site.data.ui-text[site.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}</strong>
|
<strong class="js-notice-text-failure hidden">{{ site.data.ui-text[site.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}</strong>
|
||||||
</p>
|
</p>
|
||||||
<!-- End comment form alert messaging -->
|
<!-- End comment form alert messaging -->
|
||||||
{% if site.staticman.reCaptcha.siteKey %}
|
{% if site.staticman.reCaptcha.siteKey %}
|
||||||
@@ -59,8 +58,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn-primary btn-lg">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
|
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--primary btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
|
||||||
<button type="submit" id="comment-form-submitted" tabindex="5" class="btn btn-primary btn-lg d-none" disabled>{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}</button>
|
<button type="submit" id="comment-form-submitted" tabindex="5" class="btn btn--primary btn--large hidden" disabled>{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -75,9 +74,8 @@
|
|||||||
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
|
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
|
||||||
<script>
|
<script>
|
||||||
if (typeof jQuery == 'undefined') {
|
if (typeof jQuery == 'undefined') {
|
||||||
document.write('<script src="{{ "/assets/js/jquery-3.4.1.min.js" | relative_url }}"></scr' + 'ipt>');
|
document.write('<script src="{{ "/js/jquery-1.11.2.min.js" | relative_url }}"></scr' + 'ipt>');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="{{ "/assets/js/staticman.js" | relative_url }}"></script>
|
<script src="{{ "/js/staticman.js" | relative_url }}"></script>
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
repo="{{ site.utterances.repository }}"
|
repo="{{ site.utterances.repository }}"
|
||||||
issue-term="{{ site.utterances.issue-term }}"
|
issue-term="{{ site.utterances.issue-term }}"
|
||||||
theme="{{ site.utterances.theme}}"
|
theme="{{ site.utterances.theme}}"
|
||||||
label="{{ site.utterances.label}}"
|
label="{{ site.utterances.label}}"
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
async>
|
async>
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,27 +1,22 @@
|
|||||||
---
|
---
|
||||||
common-css:
|
common-css:
|
||||||
- "/assets/css/bootstrap-social.css"
|
- "/css/bootstrap.min.css"
|
||||||
- "/assets/css/main.css"
|
- "/css/bootstrap-social.css"
|
||||||
|
- "/css/main.css"
|
||||||
common-ext-css:
|
common-ext-css:
|
||||||
- href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
- "//maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css"
|
||||||
sri: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
common-googlefonts:
|
||||||
- "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css"
|
- "Lora:400,700,400italic,700italic"
|
||||||
- "https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic"
|
- "Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"
|
||||||
- "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"
|
|
||||||
common-ext-js:
|
|
||||||
- href: "https://code.jquery.com/jquery-3.4.1.min.js"
|
|
||||||
sri: "sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
|
|
||||||
- href: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
|
||||||
sri: "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
|
|
||||||
- href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
|
|
||||||
sri: "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
|
|
||||||
common-js:
|
common-js:
|
||||||
- "/assets/js/main.js"
|
- "/js/jquery-1.11.2.min.js"
|
||||||
|
- "/js/bootstrap.min.js"
|
||||||
|
- "/js/main.js"
|
||||||
---
|
---
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ page.language | default: site.language | default: 'en' }}">
|
<html lang="en">
|
||||||
<!-- Beautiful Jekyll | MIT license | Copyright Dean Attali 2020 -->
|
<!-- Beautiful Jekyll | MIT license | Copyright Dean Attali 2016 -->
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -4,6 +4,6 @@ layout: base
|
|||||||
|
|
||||||
<div class="intro-header"></div>
|
<div class="intro-header"></div>
|
||||||
|
|
||||||
<div role="main" class="container-md">
|
<div role="main" class="container">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,25 +6,12 @@ layout: page
|
|||||||
|
|
||||||
{% assign posts = paginator.posts | default: site.posts %}
|
{% assign posts = paginator.posts | default: site.posts %}
|
||||||
|
|
||||||
<div class="posts-list">
|
<!-- role="list" needed so that `list-style: none` in Safari doesn't remove the list semantics -->
|
||||||
|
<ul class="posts-list list-unstyled" role="list">
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
<article class="post-preview">
|
<li class="post-preview">
|
||||||
<a href="{{ post.url | absolute_url }}">
|
<article>
|
||||||
<h2 class="post-title">{{ post.title }}</h2>
|
|
||||||
|
|
||||||
{% if post.subtitle %}
|
|
||||||
<h3 class="post-subtitle">
|
|
||||||
{{ post.subtitle }}
|
|
||||||
</h3>
|
|
||||||
{% endif %}
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<p class="post-meta">
|
|
||||||
{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
|
|
||||||
Posted on {{ post.date | date: date_format }}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="post-entry-container">
|
|
||||||
{%- capture thumbnail -%}
|
{%- capture thumbnail -%}
|
||||||
{% if post.thumbnail-img %}
|
{% if post.thumbnail-img %}
|
||||||
{{ post.thumbnail-img }}
|
{{ post.thumbnail-img }}
|
||||||
@@ -38,50 +25,97 @@ layout: page
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
{% assign thumbnail=thumbnail | strip %}
|
{% assign thumbnail=thumbnail | strip %}
|
||||||
|
|
||||||
|
{% if site.feed_show_excerpt == false %}
|
||||||
{% if thumbnail != "" %}
|
{% if thumbnail != "" %}
|
||||||
<div class="post-image">
|
<div class="post-image post-image-normal">
|
||||||
<a href="{{ post.url | absolute_url }}">
|
<a href="{{ post.url | absolute_url }}" aria-label="Thumbnail">
|
||||||
<img src="{{ thumbnail | absolute_url }}">
|
<img src="{{ thumbnail | absolute_url }}" alt="Post thumbnail">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<a href="{{ post.url | absolute_url }}">
|
||||||
|
<h2 class="post-title">{{ post.title | strip_html }}</h2>
|
||||||
|
|
||||||
|
{% if post.subtitle %}
|
||||||
|
<h3 class="post-subtitle">
|
||||||
|
{{ post.subtitle | strip_html }}
|
||||||
|
</h3>
|
||||||
|
{% endif %}
|
||||||
|
</a>
|
||||||
|
|
||||||
|
{% if post.author %}
|
||||||
|
<span>By <strong>{{ post.author | strip_html }}</strong></span>
|
||||||
|
{% endif %}
|
||||||
|
<p class="post-meta">
|
||||||
|
{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
|
||||||
|
Posted on {{ post.date | date: date_format }}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
{% if thumbnail != "" %}
|
||||||
|
<div class="post-image post-image-small">
|
||||||
|
<a href="{{ post.url | absolute_url }}" aria-label="Thumbnail">
|
||||||
|
<img src="{{ thumbnail | absolute_url }}" alt="Post thumbnail">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% unless site.feed_show_excerpt == false %}
|
||||||
|
{% if thumbnail != "" %}
|
||||||
|
<div class="post-image post-image-short">
|
||||||
|
<a href="{{ post.url | absolute_url }}" aria-label="Thumbnail">
|
||||||
|
<img src="{{ thumbnail | absolute_url }}" alt="Post thumbnail">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="post-entry">
|
<div class="post-entry">
|
||||||
{% assign excerpt_length = site.excerpt_length | default: 50 %}
|
{% assign excerpt_length = site.excerpt_length | default: 50 %}
|
||||||
{{ post.excerpt | strip_html | xml_escape | truncatewords: excerpt_length }}
|
{{ post.excerpt | strip_html | truncatewords: excerpt_length }}
|
||||||
{% assign excerpt_word_count = post.excerpt | number_of_words %}
|
{% assign excerpt_word_count = post.excerpt | number_of_words %}
|
||||||
{% if post.content != post.excerpt or excerpt_word_count > excerpt_length %}
|
{% if post.content != post.excerpt or excerpt_word_count > excerpt_length %}
|
||||||
<a href="{{ post.url | absolute_url }}" class="post-read-more">[Read More]</a>
|
<a href="{{ post.url | absolute_url }}" class="post-read-more">[Read More]</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endunless %}
|
||||||
|
|
||||||
{% if post.tags.size > 0 %}
|
{% if site.feed_show_tags != false and post.tags.size > 0 %}
|
||||||
<div class="blog-tags">
|
<div class="blog-tags">
|
||||||
Tags:
|
<span>Tags:</span>
|
||||||
{% if site.link-tags %}
|
<!-- role="list" needed so that `list-style: none` in Safari doesn't remove the list semantics -->
|
||||||
{% for tag in post.tags %}
|
<ul class="d-inline list-inline" role="list">
|
||||||
<a href="{{ '/tags' | absolute_url }}#{{- tag -}}">{{- tag -}}</a>
|
{% for tag in post.tags %}
|
||||||
{% endfor %}
|
<li class="list-inline-item">
|
||||||
{% else %}
|
<a href="{{ '/tags' | absolute_url }}#{{- tag -}}">{{- tag -}}</a>
|
||||||
{{ post.tags | join: ", " }}
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</ul>
|
||||||
|
|
||||||
{% if paginator.total_pages > 1 %}
|
{% if paginator.total_pages > 1 %}
|
||||||
<ul class="pagination main-pager">
|
<ul class="pagination main-pager">
|
||||||
{% if paginator.previous_page %}
|
{% if paginator.previous_page %}
|
||||||
<li class="page-item previous">
|
<li class="page-item previous">
|
||||||
<a class="page-link" href="{{ paginator.previous_page_path | absolute_url }}">← Newer Posts</a>
|
<a class="page-link" href="{{ paginator.previous_page_path | absolute_url }}">
|
||||||
|
<i class="fas fa-arrow-left" alt="Newer Posts"></i>
|
||||||
|
<span class="d-none d-sm-inline-block">Newer Posts</span>
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if paginator.next_page %}
|
{% if paginator.next_page %}
|
||||||
<li class="page-item next">
|
<li class="page-item next">
|
||||||
<a class="page-link" href="{{ paginator.next_page_path | absolute_url }}">Older Posts →</a>
|
<a class="page-link" href="{{ paginator.next_page_path | absolute_url }}">
|
||||||
|
<span class="d-none d-sm-inline-block">Older Posts</span>
|
||||||
|
<i class="fas fa-arrow-right" alt="Older Posts"></i>
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -1,26 +1,20 @@
|
|||||||
---
|
---
|
||||||
common-css:
|
common-css:
|
||||||
- "/assets/css/main-minimal.css"
|
- "/css/bootstrap.min.css"
|
||||||
common-ext-css:
|
- "/css/main-minimal.css"
|
||||||
- href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
common-js:
|
||||||
sri: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
- "/js/jquery-1.11.2.min.js"
|
||||||
common-ext-js:
|
- "/js/bootstrap.min.js"
|
||||||
- href: "https://code.jquery.com/jquery-3.4.1.min.js"
|
|
||||||
sri: "sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
|
|
||||||
- href: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
|
||||||
sri: "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
|
|
||||||
- href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
|
|
||||||
sri: "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ page.language | default: site.language | default: 'en' }}">
|
<html lang="en">
|
||||||
|
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div role="main" class="container-md main-content">
|
<div role="main" class="container main-content">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -4,11 +4,22 @@ layout: base
|
|||||||
|
|
||||||
{% include header.html type="page" %}
|
{% include header.html type="page" %}
|
||||||
|
|
||||||
<div class="container-md" role="main">
|
<div class="container" role="main">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
{% include comments.html %}
|
{% if page.comments %}
|
||||||
|
<div class="disqus-comments">
|
||||||
|
{% include disqus.html %}
|
||||||
|
</div>
|
||||||
|
{% include fb-comment.html %}
|
||||||
|
<div class="staticman-comments">
|
||||||
|
{% include staticman-comments.html %}
|
||||||
|
</div>
|
||||||
|
<div class="justcomments-comments">
|
||||||
|
{% include just_comments.html %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ layout: base
|
|||||||
|
|
||||||
{% include header.html type="post" %}
|
{% include header.html type="post" %}
|
||||||
|
|
||||||
<div class="container-md">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
|
|
||||||
{% if page.gh-repo %}
|
{% if page.gh-repo %}
|
||||||
{% assign gh_split = page.gh-repo | split:'/' %}
|
{% assign gh_split = page.gh-repo | split:'/' %}
|
||||||
@@ -52,19 +52,31 @@ layout: base
|
|||||||
{% include social-share.html %}
|
{% include social-share.html %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<ul class="pagination blog-pager">
|
<ul class="pager blog-pager">
|
||||||
{% if page.previous.url %}
|
{% if page.previous.url %}
|
||||||
<li class="page-item previous">
|
<li class="previous">
|
||||||
<a class="page-link" href="{{ page.previous.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">← Previous Post</a>
|
<a href="{{ page.previous.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">← Previous Post</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.next.url %}
|
{% if page.next.url %}
|
||||||
<li class="page-item next">
|
<li class="next">
|
||||||
<a class="page-link" href="{{ page.next.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">Next Post →</a>
|
<a href="{{ page.next.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">Next Post →</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
{% include comments.html %}
|
|
||||||
|
{% if page.comments %}
|
||||||
|
<div class="disqus-comments">
|
||||||
|
{% include disqus.html %}
|
||||||
|
</div>
|
||||||
|
{% include fb-comment.html %}
|
||||||
|
<div class="staticman-comments">
|
||||||
|
{% include staticman-comments.html %}
|
||||||
|
</div>
|
||||||
|
<div class="justcomments-comments">
|
||||||
|
{% include just_comments.html %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,26 +11,31 @@ The rapidly deflating prices of cloud storage (and other low-end) VPS services m
|
|||||||
VPS deal aggregate sites, such as [lowendbox](lowendbox.com), regularly provide offers on storage VPS services that rival shared web hosting or dedicated cloud backup providers. However, while the costs of cloud storage space have dropped dramatically, the CPU and memory configurations offered with the most storage VPS configurations are usually quite limited. Oftentimes a VPS provider will limit virtualized storage VPS instances to only 1 CPU core and <1GB memory (512MB is also common), since the intended use case is to simply provide enough resources for effective backup and retrieval.
|
VPS deal aggregate sites, such as [lowendbox](lowendbox.com), regularly provide offers on storage VPS services that rival shared web hosting or dedicated cloud backup providers. However, while the costs of cloud storage space have dropped dramatically, the CPU and memory configurations offered with the most storage VPS configurations are usually quite limited. Oftentimes a VPS provider will limit virtualized storage VPS instances to only 1 CPU core and <1GB memory (512MB is also common), since the intended use case is to simply provide enough resources for effective backup and retrieval.
|
||||||
|
|
||||||
### Selecting an OS
|
### Selecting an OS
|
||||||
|
|
||||||
For the purposes of minimizing RAM consumption on a low-end VPS, it is imperative to select an OS that is lightweight, flexible, well-supported, and capable of running your intended services. Unfortunately, while most compute VPS instances provide a seemingly endless selection of server OSes to choose from, choices are usually limited on storage VPS instances by comparison. Windows Server is not a great choice because of its large memory footprint compared to its Linux-based equivalents. **Ubuntu Server LTS, CentOS, or Debian are usually safe bets**, but make sure to check that any third-party software (_i.e._ not in the repositories) that you intend to run are compatible with the libraries that ship with your Linux distribution of choice. The most common problem is trying to use newer software on older, stable Linux distributions. For example, [JRiver Media Center](https://yabb.jriver.com/interact/index.php/board,58.0.html) is built on Debian 8 Jessie but will not run on CentOS 7 because it ships with older C++ libraries. I prefer Redhat distributions (for reasons I will explain in a later post) but [my storage VPS host](www.time4vps.com) does not offer Fedora as an option (likely due to its short release cycle), which meant that my choices were limited to either Ubuntu 16.04 LTS or Debian 8. Expect for a base Linux OS installation to use ~125MB of RAM.
|
For the purposes of minimizing RAM consumption on a low-end VPS, it is imperative to select an OS that is lightweight, flexible, well-supported, and capable of running your intended services. Unfortunately, while most compute VPS instances provide a seemingly endless selection of server OSes to choose from, choices are usually limited on storage VPS instances by comparison. Windows Server is not a great choice because of its large memory footprint compared to its Linux-based equivalents. **Ubuntu Server LTS, CentOS, or Debian are usually safe bets**, but make sure to check that any third-party software (_i.e._ not in the repositories) that you intend to run are compatible with the libraries that ship with your Linux distribution of choice. The most common problem is trying to use newer software on older, stable Linux distributions. For example, [JRiver Media Center](https://yabb.jriver.com/interact/index.php/board,58.0.html) is built on Debian 8 Jessie but will not run on CentOS 7 because it ships with older C++ libraries. I prefer Redhat distributions (for reasons I will explain in a later post) but [my storage VPS host](www.time4vps.com) does not offer Fedora as an option (likely due to its short release cycle), which meant that my choices were limited to either Ubuntu 16.04 LTS or Debian 8. Expect for a base Linux OS installation to use ~125MB of RAM.
|
||||||
|
|
||||||
### Selecting a web server
|
### Selecting a web server
|
||||||
|
|
||||||
[Digital Ocean](https://www.digitalocean.com/community/tutorials/apache-vs-nginx-practical-considerations) offers an in-depth comparison of the two major web servers, Apache and Nginx. Long story short, **Nginx provides better performance and uses fewer resources than Apache** thanks to its asynchronous design. The Nginx process itself is single-threaded, which is perfect for a low-end VPS with only a single CPU core. Nginx can also be used as a [reverse proxy](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) (using the `proxy_pass` block) to act as a secure front-end for other web services.
|
[Digital Ocean](https://www.digitalocean.com/community/tutorials/apache-vs-nginx-practical-considerations) offers an in-depth comparison of the two major web servers, Apache and Nginx. Long story short, **Nginx provides better performance and uses fewer resources than Apache** thanks to its asynchronous design. The Nginx process itself is single-threaded, which is perfect for a low-end VPS with only a single CPU core. Nginx can also be used as a [reverse proxy](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) (using the `proxy_pass` block) to act as a secure front-end for other web services.
|
||||||
|
|
||||||
### Selecting a website generator
|
### Selecting a website generator
|
||||||
|
|
||||||
In the past, web development for the layman necessitated using heavy content management systems like [Wordpress](wordpress.com) to handle website design and editing. Unfortunately, **a single instance of Wordpress can easily use up >256MB of RAM**, which would quickly gobble up the available resources on a low-end VPS. Additionally, Wordpress creates dynamic sites that chew up CPU cycles on the server to serve dynamic content whenever the site is accessed. Luckily there has recently been a shift among (primarily smaller) sites to using static site generators such as [**Jekyll**](https://jekyllrb.com/) (my favorite) or [HUGO](https://gohugo.io/) that compile sites beforehand and only serve static HTML/CSS versions of the page. This results in much lower overhead and resources, since post-compile there is nothing actually running except your web server (of course your OS may cache the site in memory to speed up future accesses).
|
In the past, web development for the layman necessitated using heavy content management systems like [Wordpress](wordpress.com) to handle website design and editing. Unfortunately, **a single instance of Wordpress can easily use up >256MB of RAM**, which would quickly gobble up the available resources on a low-end VPS. Additionally, Wordpress creates dynamic sites that chew up CPU cycles on the server to serve dynamic content whenever the site is accessed. Luckily there has recently been a shift among (primarily smaller) sites to using static site generators such as [**Jekyll**](https://jekyllrb.com/) (my favorite) or [HUGO](https://gohugo.io/) that compile sites beforehand and only serve static HTML/CSS versions of the page. This results in much lower overhead and resources, since post-compile there is nothing actually running except your web server (of course your OS may cache the site in memory to speed up future accesses).
|
||||||
|
|
||||||
It's certainly possible to generate your sites locally and only transfer the output to your server's /www directory. However, since content creation in Jekyll is primarily some variation of Markdown language, I prefer using **Git** to push to the server and using post-hooks to generate the site remotely. It only takes a few seconds to generate most sites and as a result your source content is safely duplicated and version controlled on the storage VPS (that is the point of using a storage VPS in the first place, _right_?). As an alternative to git post-hooks (and for a slightly higher performance overhead), you can also use Jekyll's `--incremental` and `--watch` switches to easily and automatically regenerate selected site folders.
|
It's certainly possible to generate your sites locally and only transfer the output to your server's /www directory. However, since content creation in Jekyll is primarily some variation of Markdown language, I prefer using **Git** to push to the server and using post-hooks to generate the site remotely. It only takes a few seconds to generate most sites and as a result your source content is safely duplicated and version controlled on the storage VPS (that is the point of using a storage VPS in the first place, _right_?). As an alternative to git post-hooks (and for a slightly higher performance overhead), you can also use Jekyll's `--incremental` and `--watch` switches to easily and automatically regenerate selected site folders.
|
||||||
|
|
||||||
### Additional Services
|
### Additional Services
|
||||||
|
|
||||||
In addition to a lightweight web server, consider adding the following useful services:
|
In addition to a lightweight web server, consider adding the following useful services:
|
||||||
|
|
||||||
* Private Dynamic DNS
|
* Private Dynamic DNS
|
||||||
* Use [MiniDynDNS](https://github.com/arkanis/minidyndns) to listen for IP address updates from your other computers (running a dynamic DNS client).
|
* Use [MiniDynDNS](https://github.com/arkanis/minidyndns) to listen for IP address updates from your other computers (running a dynamic DNS client).
|
||||||
* File syncing
|
* File syncing
|
||||||
* Run an [rsync daemon](https://www.atlantic.net/cloud-hosting/how-to-setup-rsync-daemon-linux-server/) to cache large numbers of incrementally-updated files without opening and closing an ssh connection.
|
* Run an [rsync daemon](https://www.atlantic.net/cloud-hosting/how-to-setup-rsync-daemon-linux-server/) to cache large numbers of incrementally-updated files without opening and closing an ssh connection.
|
||||||
* For a slightly higher performance penalty, consider using [syncthing](https://syncthing.net/) to keep directories automatically synced between one or more computers. This can be useful when transferring static sites from a build server to the production server. Make sure to enable the file watcher functionality and decrease the full-scan interval to keep the cpu cycles to a minimum.
|
* For a slightly higher performance penalty, consider using [syncthing](https://syncthing.net/) to keep directories automatically synced between one or more computers. This can be useful when transferring static sites from a build server to the production server. Make sure to enable the file watcher functionality and decrease the full-scan interval to keep the cpu cycles to a minimum.
|
||||||
* Code repository
|
* Code repository
|
||||||
* Following Microsoft's recent acquisition of GitHub, many free software advocates are looking to plan B solutions or storing their git repositories online. [GitLab](https://about.gitlab.com/) is a popular alternative, but self-hosting can also make a lot of sense for small or personal projects. While GitLab is available to run on your own site, it is quite resource heavy, making it a poor choice for low-end storage VPS's. Lightweight alternatives include [**Gogs**](https://gogs.io/) and [cgit](https://git.zx2c4.com/cgit/). cgit is the lightest of the bunch, but Gogs presents a more familiar "Github-like" interface that is more comfortable for collaborators or others trying to view or clone your code.
|
* Following Microsoft's recent acquisition of GitHub, many free software advocates are looking to plan B solutions or storing their git repositories online. [GitLab](https://about.gitlab.com/) is a popular alternative, but self-hosting can also make a lot of sense for small or personal projects. While GitLab is available to run on your own site, it is quite resource heavy, making it a poor choice for low-end storage VPS's. Lightweight alternatives include [**Gogs**](https://gogs.io/) and [cgit](https://git.zx2c4.com/cgit/). cgit is the lightest of the bunch, but Gogs presents a more familiar "Github-like" interface that is more comfortable for collaborators or others trying to view or clone your code.
|
||||||
* Certbot
|
* Certbot
|
||||||
* Keep your LetsEncrypt HTTPS certificates automatically up-to-date. If you are using Nginx as a reverse proxy with subdomains, the new LetsEncrypt wildcard certificates can be used to secure all of your subdomains in one go. Don't forget to also include the root of your site in the certificate!
|
* Keep your LetsEncrypt HTTPS certificates automatically up-to-date. If you are using Nginx as a reverse proxy with subdomains, the new LetsEncrypt wildcard certificates can be used to secure all of your subdomains in one go. Don't forget to also include the root of your site in the certificate!
|
||||||
* Media server
|
* Media server
|
||||||
* This can be as simple as an FTP server or as complicated as a dedicated media server program like the aforementioned JRiver Media Center.
|
* This can be as simple as an FTP server or as complicated as a dedicated media server program like the aforementioned JRiver Media Center.
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ I prefer storing my work in version controlled git repositories in order to keep
|
|||||||
There are three steps that need to occur for this to happen seamlessly after the git repos have been created (which is outside the scope of this post).
|
There are three steps that need to occur for this to happen seamlessly after the git repos have been created (which is outside the scope of this post).
|
||||||
|
|
||||||
On the client:
|
On the client:
|
||||||
|
|
||||||
1. Push website changes to the server
|
1. Push website changes to the server
|
||||||
|
|
||||||
On the server:
|
On the server:
|
||||||
@@ -29,6 +30,7 @@ For larger websites, I prefer using nested git repositories to simplify website
|
|||||||
By combining the subgit strategy with some structured naming conventions it is possible to push, build, and deploy multiple subdomains or sites using a single git push from the client!
|
By combining the subgit strategy with some structured naming conventions it is possible to push, build, and deploy multiple subdomains or sites using a single git push from the client!
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
~~~bash
|
~~~bash
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
"/var/lib/git/gogs/gogs" hook --config='/var/lib/git/gogs/conf/app.ini' post-receive
|
"/var/lib/git/gogs/gogs" hook --config='/var/lib/git/gogs/conf/app.ini' post-receive
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ subtitle: The "less" painful way
|
|||||||
tags: [certbot, acme-dns]
|
tags: [certbot, acme-dns]
|
||||||
---
|
---
|
||||||
|
|
||||||
In early 2018, [Let's Encrypt](https://letsencrypt.org/) began issuing wildcard HTTPS certificates (e.g. for \*.bryanroessler.com), which vastly simplified the process of securing multidomain personal websites for free. The main drawback is that LetsEncrypt requires users to renew their site certificates every three months, which can be a headache if users handle renewals manually. Programs like [certbot-auto](https://certbot.eff.org/docs/install.html) can automate the certificate renewal process but the implementations for wildcard domains have been flaky in the past. An additional complication is that not every DNS provider (like Namecheap) support APIs that allow [ACME challenges](https://ietf-wg-acme.github.io/acme/draft-ietf-acme-acme.html) or may require users to pay an additional fee ($50/mo) for access.
|
In early 2018, [Let's Encrypt](https://letsencrypt.org/) began issuing wildcard HTTPS certificates (e.g. for \*.bryanroessler.com), which vastly simplified the process of securing multi-domain personal websites for free. The main drawback is that LetsEncrypt requires users to renew their site certificates every three months, which can be a headache if users handle renewals manually. Programs like [certbot-auto](https://certbot.eff.org/docs/install.html) can automate the certificate renewal process, but the implementations for wildcard domains typically require DNS authentication and API access. Not every DNS provider (including Namecheap) provide an API that supports automating [ACME challenges](https://ietf-wg-acme.github.io/acme/draft-ietf-acme-acme.html) or may require users to pay an additional fee for access.
|
||||||
|
|
||||||
**Luckily, it is possible for users to run their own DNS authentication server using [acme-dns](https://github.com/joohoi/acme-dns), which completely bypasses DNS provider limitations.**
|
**Luckily, it is possible for users to run their own DNS authentication server using [acme-dns](https://github.com/joohoi/acme-dns), which completely bypasses DNS provider limitations.**
|
||||||
|
|
||||||
### Overview
|
### Overview
|
||||||
|
|
||||||
We will be running a small DNS server called acme-dns to respond to challenges issued by LetsEncrypt's certbot. You can run acme-dns on any computer, but typically it will run on the same host server as your website. Certbot will issue an ACME DNS challenge to your DNS provider, which will then forward the request (via some complicated (not really!) redirects) to your acme-dns server.
|
We will be running a small DNS server called acme-dns to respond to challenges issued by LetsEncrypt's certbot. You can run acme-dns on any computer, but typically it will run on the same host server as your website. Certbot will issue an ACME DNS challenge to your DNS provider, which will then forward the request via some redirection to your acme-dns server.
|
||||||
|
|
||||||
### Assumptions
|
### Assumptions
|
||||||
|
|
||||||
@@ -27,78 +27,78 @@ I am using Ubuntu 16.04 for this tutorial, but it should not matter which distro
|
|||||||
3. Install acme-dns: `go get github.com/joohoi/acme-dns/…`
|
3. Install acme-dns: `go get github.com/joohoi/acme-dns/…`
|
||||||
4. Move the binary somewhere sensible since we will be using a systemd service: `sudo cp ~/go/bin/acme-dns /usr/local/bin/acme-dns`
|
4. Move the binary somewhere sensible since we will be using a systemd service: `sudo cp ~/go/bin/acme-dns /usr/local/bin/acme-dns`
|
||||||
5. Make the necessary directories: `sudo mkdir /etc/acme-dns/ /var/lib/acme-dns`
|
5. Make the necessary directories: `sudo mkdir /etc/acme-dns/ /var/lib/acme-dns`
|
||||||
6. Make sure you've removed any existing \_acme-challenge DNS records from your DNS host records
|
6. Make sure you've removed any existing _acme-challenge DNS records from your DNS host records
|
||||||
|
|
||||||
### acme-dns configuration
|
### acme-dns configuration
|
||||||
|
|
||||||
1. Create the following file, substituting your site's domain name for <yoursite\> and your server's IP address (yes the naming scheme is dumb, but leave "acme.", "ns1.acme.", etc):
|
1. Create the following file, substituting your site's domain name for <yoursite\> and your server's IP address (yes the naming scheme is dumb, but leave "acme.", "ns1.acme.", etc):
|
||||||
|
|
||||||
```
|
#/etc/acme-dns/config.cfg
|
||||||
#/etc/acme-dns/config.cfg
|
[general]
|
||||||
[general]
|
# DNS interface
|
||||||
# DNS interface
|
listen = ":53"
|
||||||
listen = ":53"
|
protocol = "udp"
|
||||||
protocol = "udp"
|
# domain name to serve the requests off of
|
||||||
# domain name to serve the requests off of
|
domain = "acme.<yoursite>.com"
|
||||||
domain = "acme.<yoursite>.com"
|
# zone name server
|
||||||
# zone name server
|
nsname = "ns1.acme.<yoursite>.com"
|
||||||
nsname = "ns1.acme.<yoursite>.com"
|
# admin email address, where @ is substituted with .
|
||||||
# admin email address, where @ is substituted with .
|
nsadmin = "admin.<yoursite>.com"
|
||||||
nsadmin = "admin.<yoursite>.com"
|
# predefined records served in addition to the TXT
|
||||||
# predefined records served in addition to the TXT
|
records = [
|
||||||
records = [
|
"acme.<yoursite>.com. A 176.223.132.72",
|
||||||
"acme.<yoursite>.com. A 176.223.132.72",
|
"ns1.acme.<yoursite>.com. A 176.223.132.72",
|
||||||
"ns1.acme.<yoursite>.com. A 176.223.132.72",
|
"acme.<yoursite>.com. NS ns1.acme.<yoursite>.com.",
|
||||||
"acme.<yoursite>.com. NS ns1.acme.<yoursite>.com.",
|
]
|
||||||
]
|
debug = false
|
||||||
debug = false
|
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
engine = "sqlite3"
|
engine = "sqlite3"
|
||||||
connection = "/var/lib/acme-dns/acme-dns.db"
|
connection = "/var/lib/acme-dns/acme-dns.db"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
api_domain = ""
|
api_domain = ""
|
||||||
ip = "127.0.0.1"
|
ip = "127.0.0.1"
|
||||||
disable_registration = false
|
disable_registration = false
|
||||||
autocert_port = "80"
|
autocert_port = "80"
|
||||||
port = "8081"
|
port = "8081"
|
||||||
tls = "none"
|
tls = "none"
|
||||||
corsorigins = [
|
corsorigins = [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
use_header = false
|
use_header = false
|
||||||
header_name = "X-Forwarded-For"
|
header_name = "X-Forwarded-For"
|
||||||
|
|
||||||
|
[logconfig]
|
||||||
|
loglevel = "debug"
|
||||||
|
logtype = "stdout"
|
||||||
|
logformat = "text"
|
||||||
|
|
||||||
|
A short explanation: you are configuring acme-dns to listen to DNS requests (from certbot via Namecheap) globally on the standard DNS port 53 and configuring the HTTP port for certbot to talk to acme-dns on port 8081 (since you are probably running something way cooler on port 8080).
|
||||||
|
|
||||||
[logconfig]
|
|
||||||
loglevel = "debug"
|
|
||||||
logtype = "stdout"
|
|
||||||
logformat = "text"
|
|
||||||
```
|
|
||||||
A short explanation: you are configuring acme-dns to listen to DNS requests (from certbot via Namecheap) globally on the standard DNS port 53 and configuring the HTTP port for certbot to talk to acme-dns on port 8081 (since you are probably running something way cooler on port 8080).
|
|
||||||
2. Since certbot has to traverse Namecheap to perform the challenge, we will need to open port 53 in the firewall (traffic on port 8081 is handled on the localhost, so we don't need to open that port): `sudo ufw allow 53/udp && sudo ufw reload`
|
2. Since certbot has to traverse Namecheap to perform the challenge, we will need to open port 53 in the firewall (traffic on port 8081 is handled on the localhost, so we don't need to open that port): `sudo ufw allow 53/udp && sudo ufw reload`
|
||||||
|
|
||||||
|
**Update 4-10-2021:** Dynamic DNS users, please see [this comment](https://gist.github.com/Nimrodda/af1c35264799fed663088c01b71c9e21#gistcomment-3358700).
|
||||||
|
|
||||||
3. Let's start the acme-dns program automatically on startup. Create:
|
3. Let's start the acme-dns program automatically on startup. Create:
|
||||||
|
|
||||||
```
|
# /etc/systemd/system/acme-dns.service
|
||||||
# /etc/systemd/system/acme-dns.service
|
[Unit]
|
||||||
[Unit]
|
Description=Limited DNS server with RESTful HTTP API to handle ACME DNS challenges easily and securely
|
||||||
Description=Limited DNS server with RESTful HTTP API to handle ACME DNS challenges easily and securely
|
After=network.target
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/acme-dns
|
ExecStart=/usr/local/bin/acme-dns
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
|
||||||
|
|
||||||
Note (Ubuntu 17.04+): you can security-harden the above script on distros running newer kernels by executing as a non-privileged user in conjunction with the `AmbientCapabilities=CAP_NET_BIND_SERVICE` line. However, older kernels will cause systemd to choke on that line during service startup. If you choose to execute as a non-root user make sure to chown the `/etc/acme-dns/` and `/var/lib/acme-dns` directories!
|
(Ubuntu 17.04+): you can security-harden the above script on distros running newer kernels by executing as a non-privileged user in conjunction with the `AmbientCapabilities=CAP_NET_BIND_SERVICE` line. However, older kernels will cause systemd to choke on that line during service startup. If you choose to execute as a non-root user make sure to chown the `/etc/acme-dns/` and `/var/lib/acme-dns` directories!
|
||||||
|
|
||||||
4. Enable the service to run on startup and run it now: `sudo systemctl daemon-reload && sudo systemctl enable --now acme-dns.service`
|
4. Enable the service to run on startup and run it now: `sudo systemctl daemon-reload && sudo systemctl enable --now acme-dns.service`
|
||||||
|
|
||||||
Great, now you've got a DNS authentication server that can respond to ACME challenges! You just saved yourself $50/month!
|
Great, now you've got a DNS authentication server that can respond to ACME challenges!
|
||||||
|
|
||||||
### Initial Namecheap configuration
|
### Initial Namecheap configuration
|
||||||
|
|
||||||
@@ -137,41 +137,41 @@ The step I'm sure you've been waiting for.
|
|||||||
|
|
||||||
1. Create the certbot-renew.service (if you are using Apache in lieu of nginx, substitute "nginx" with "httpd"):
|
1. Create the certbot-renew.service (if you are using Apache in lieu of nginx, substitute "nginx" with "httpd"):
|
||||||
|
|
||||||
```
|
#/etc/systemd/system/certbot-renew.service
|
||||||
#/etc/systemd/system/certbot-renew.service
|
[Unit]
|
||||||
[Unit]
|
Description=Certbot Renewal
|
||||||
Description=Certbot Renewal
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/certbot renew --post-hook "systemctl restart nginx"
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/bin/certbot renew --post-hook "systemctl restart nginx"
|
|
||||||
```
|
|
||||||
2. Create the associated timer file to run the renewal weekly:
|
2. Create the associated timer file to run the renewal weekly:
|
||||||
|
|
||||||
```
|
#/etc/systemd/system/certbot-renew.timer
|
||||||
#/etc/systemd/system/certbot-renew.timer
|
[Unit]
|
||||||
[Unit]
|
Description=Timer for Certbot Renewal
|
||||||
Description=Timer for Certbot Renewal
|
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnBootSec=300
|
OnBootSec=300
|
||||||
OnUnitActiveSec=1w
|
OnUnitActiveSec=1w
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
```
|
|
||||||
3. Enable the timer: `sudo systemctl enable certbot-renew.timer`
|
3. Enable the timer: `sudo systemctl enable certbot-renew.timer`
|
||||||
|
|
||||||
### What the hell is going on here?
|
### What the hell is going on here?
|
||||||
|
|
||||||
A wild goose chase:
|
A wild goose chase:
|
||||||
|
|
||||||
1. LetsEncrypt first asks your <yoursite\>.com domain for the TXT record at \_acme-challenge.example.com to complete the challenge
|
1. LetsEncrypt first asks your <yoursite\>.com domain for the TXT record at _acme-challenge.example.com to complete the challenge
|
||||||
2. The Namecheap DNS server responds with a CNAME record that points to ch30791e-33f4-1af1-7db3-1ae95ecdde28.acme.<yoursite>.com, so LetsEncrypt goes there instead
|
2. The Namecheap DNS server responds with a CNAME record that points to ch30791e-33f4-1af1-7db3-1ae95ecdde28.acme.*yoursite*.com, so LetsEncrypt goes there instead
|
||||||
3. The authoritative DNS server for \*.acme.<yoursite\>.com is ns1.acme.<yoursite\>.com, which points at your server IP (running acme-dns)
|
3. The authoritative DNS server for \*.acme.*yoursite*.com is ns1.acme.*yoursite*.com, which points at your server IP (running acme-dns)
|
||||||
4. LetsEncrypt can finally ask ns1.acme.example.com what is the TXT record for ch30791e-33f4-1af1-7db3-1ae95ecdde28.acme.<yoursite\>.com and acme-dns will answer that question
|
4. LetsEncrypt can finally ask ns1.acme.example.com what is the TXT record for ch30791e-33f4-1af1-7db3-1ae95ecdde28.acme.*yoursite*.com and acme-dns will answer that question
|
||||||
|
|
||||||
### Additional Considerations
|
### Additional Considerations
|
||||||
|
|
||||||
On a critical server it may be a good idea to start and stop acme-dns (and open and close port 53) alongside certbot execution. This can be handled fairly trivially with systemd `Requires=`, but I'll leave that up to you!
|
On a critical server it may be a good idea to start and stop acme-dns (and open and close port 53) alongside certbot execution. This can be handled fairly trivially with systemd `Requires=`, but I'll leave that up to you!
|
||||||
|
|
||||||
### Conclusions
|
### Conclusions
|
||||||
|
|
||||||
Congratulations! You have successfully enabled automatic LetsEncrypt site certificate renewal on a finicky DNS host provider!
|
Congratulations! You have successfully enabled automatic LetsEncrypt site certificate renewal on a finicky DNS host provider!
|
||||||
|
|||||||
@@ -39,12 +39,14 @@ We will be using getty to handle autologin for our user. In order to do this, we
|
|||||||
This will open your default system editor to create an override service file for the systemd getty@tty1.service.
|
This will open your default system editor to create an override service file for the systemd getty@tty1.service.
|
||||||
|
|
||||||
2. Enter the following into the drop-in override file you just opened/created and save it (replacing username with your actual username):
|
2. Enter the following into the drop-in override file you just opened/created and save it (replacing username with your actual username):
|
||||||
```
|
|
||||||
|
```(text)
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=-/sbin/agetty --autologin username --noclear %I $TERM
|
ExecStart=-/sbin/agetty --autologin username --noclear %I $TERM
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Reload, restart, and enable the service file to load on boot: `sudo systemctl daemon-reload && sudo systemctl restart getty@tty1 && sudo systemctl enable getty@tty1`
|
3. Reload, restart, and enable the service file to load on boot: `sudo systemctl daemon-reload && sudo systemctl restart getty@tty1 && sudo systemctl enable getty@tty1`
|
||||||
|
|
||||||
Your system will now autologin the user you specified when you reboot!
|
Your system will now autologin the user you specified when you reboot!
|
||||||
@@ -54,7 +56,8 @@ Your system will now autologin the user you specified when you reboot!
|
|||||||
In order to run a graphical program or window manager, you will first need to initiate an X server. We can start one automatically using a shell profile file that is sourced during user login. The location of this file (e.g. `/etc/profile.d/`, `~/.profile`, `~/.bash_profile`, `~/.zprofile` (zsh), etc.) depends on your Linux distribution and shell settings. Here I am assuming that you are using bash shell (you can confirm this via the `echo $SHELL` command), thus we will place the relevant commands in `~/.bash_profile`.
|
In order to run a graphical program or window manager, you will first need to initiate an X server. We can start one automatically using a shell profile file that is sourced during user login. The location of this file (e.g. `/etc/profile.d/`, `~/.profile`, `~/.bash_profile`, `~/.zprofile` (zsh), etc.) depends on your Linux distribution and shell settings. Here I am assuming that you are using bash shell (you can confirm this via the `echo $SHELL` command), thus we will place the relevant commands in `~/.bash_profile`.
|
||||||
|
|
||||||
1. Add the following to the end of your `~/.bash_profile`:
|
1. Add the following to the end of your `~/.bash_profile`:
|
||||||
```
|
|
||||||
|
```(bash)
|
||||||
# Start X11 automatically
|
# Start X11 automatically
|
||||||
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
|
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
|
||||||
. startx
|
. startx
|
||||||
@@ -65,7 +68,8 @@ fi
|
|||||||
Now that the X server is set to run on login, it needs to be configured to start your window manager, in this case Openbox.
|
Now that the X server is set to run on login, it needs to be configured to start your window manager, in this case Openbox.
|
||||||
|
|
||||||
2. Add the following line to `~/.xinitrc` and save the file:
|
2. Add the following line to `~/.xinitrc` and save the file:
|
||||||
```
|
|
||||||
|
```(bash)
|
||||||
exec openbox-session
|
exec openbox-session
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -78,7 +82,8 @@ It's certainly possible to use Openbox to autostart your server's GUI programs b
|
|||||||
Here are the necessary steps to create and activate a systemd service file to start and stop JRiver Media Center.
|
Here are the necessary steps to create and activate a systemd service file to start and stop JRiver Media Center.
|
||||||
|
|
||||||
1. Create the file `/etc/systemd/system/jriver.service` and add the following (replacing username with your username):
|
1. Create the file `/etc/systemd/system/jriver.service` and add the following (replacing username with your username):
|
||||||
```
|
|
||||||
|
```(text)
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=JRiver Media Center 25
|
Description=JRiver Media Center 25
|
||||||
After=graphical.target
|
After=graphical.target
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ In the course of achieving these goals, my JRMC network has been in a state of f
|
|||||||
JRMC contains a powerful [Media Server](https://wiki.jriver.com/index.php/Media_Server) that enables clients to play and manage media in JRMC as if they were using a local copy of the library. It is certainly possible to use JRMC Media Server exclusively to manage and play your media from the server to your clients in the traditional server-client model.
|
JRMC contains a powerful [Media Server](https://wiki.jriver.com/index.php/Media_Server) that enables clients to play and manage media in JRMC as if they were using a local copy of the library. It is certainly possible to use JRMC Media Server exclusively to manage and play your media from the server to your clients in the traditional server-client model.
|
||||||
|
|
||||||
JRMC Media Server pros:
|
JRMC Media Server pros:
|
||||||
|
|
||||||
1. Tag changes are synced seamlessly between all devices
|
1. Tag changes are synced seamlessly between all devices
|
||||||
2. Client devices are easy to add/remove
|
2. Client devices are easy to add/remove
|
||||||
|
|
||||||
@@ -61,12 +62,12 @@ Although our media files are now in sync, and we have configured JRMC to use loc
|
|||||||
|
|
||||||
The benefits of the client-client model over the server-client model include:
|
The benefits of the client-client model over the server-client model include:
|
||||||
|
|
||||||
* Automatic redundancy of the media library
|
- Automatic redundancy of the media library
|
||||||
* Each client has access to the media library even when offline
|
- Each client has access to the media library even when offline
|
||||||
* Each client can maintain its own set of views, playlists, and smartlists
|
- Each client can maintain its own set of views, playlists, and smartlists
|
||||||
* Useful if you want to give read-only access to a client and allow it to store and display its own set of ratings from a custom tag
|
- Useful if you want to give read-only access to a client and allow it to store and display its own set of ratings from a custom tag
|
||||||
* Low bandwidth and low latency for playback
|
- Low bandwidth and low latency for playback
|
||||||
* Cross-platform since file structure does not have to be identical
|
- Cross-platform since file structure does not have to be identical
|
||||||
|
|
||||||
All that must be done to enable this functionality is to set up Auto-Import on each client to point at your shared (via Syncthing) media folder!
|
All that must be done to enable this functionality is to set up Auto-Import on each client to point at your shared (via Syncthing) media folder!
|
||||||
|
|
||||||
@@ -74,7 +75,7 @@ All that must be done to enable this functionality is to set up Auto-Import on e
|
|||||||
|
|
||||||
The real magic here is to store as much information as possible in the file tags so that they are synced via Syncthing between JRMC clients. This can include basic information like ratings, artwork, audio analysis data (R128 normalization) or more advanced information like user-defined fields that can be used to keep smartlists in sync (see [Advanced tagging](#advanced-tagging) below for more information).
|
The real magic here is to store as much information as possible in the file tags so that they are synced via Syncthing between JRMC clients. This can include basic information like ratings, artwork, audio analysis data (R128 normalization) or more advanced information like user-defined fields that can be used to keep smartlists in sync (see [Advanced tagging](#advanced-tagging) below for more information).
|
||||||
|
|
||||||
##### Sending metadata
|
#### Sending metadata
|
||||||
|
|
||||||
To propagate changes from a client to other clients, we will need to enable *Edit>Edit File Tags When File Info Changes* on any JRMC client that we want to have read-write access to the file metadata. If you leave this option unchecked on a client then that client will maintain its own set of metadata in the JRMC database without propagating changes. If you want to edit the actual file tags without affecting other clients (e.g. you are moving files on the client to a handheld device), then go ahead and enable the option but set your Syncthing client to Receive Only so that it maintains its own local database state. I also recommend enabling automatic file tagging during file analysis upon Auto-Import *Options>Library & Folders>Configure auto-import>Tasks>Write file tags when analyzing audio...* so that analysis only needs to be performed once on the client that performs the initial file import.
|
To propagate changes from a client to other clients, we will need to enable *Edit>Edit File Tags When File Info Changes* on any JRMC client that we want to have read-write access to the file metadata. If you leave this option unchecked on a client then that client will maintain its own set of metadata in the JRMC database without propagating changes. If you want to edit the actual file tags without affecting other clients (e.g. you are moving files on the client to a handheld device), then go ahead and enable the option but set your Syncthing client to Receive Only so that it maintains its own local database state. I also recommend enabling automatic file tagging during file analysis upon Auto-Import *Options>Library & Folders>Configure auto-import>Tasks>Write file tags when analyzing audio...* so that analysis only needs to be performed once on the client that performs the initial file import.
|
||||||
|
|
||||||
@@ -88,7 +89,7 @@ In order to receive metadata updates from other clients, you'll want to use JRMC
|
|||||||
|
|
||||||
Below I will describe two examples of expanding the functionality of the client-client model using file tags.
|
Below I will describe two examples of expanding the functionality of the client-client model using file tags.
|
||||||
|
|
||||||
##### Tracking newly added media
|
#### Tracking newly added media
|
||||||
|
|
||||||
Sometimes it is useful to keep track of which client has added a particular file to the Syncthing network. You can do this by creating a custom user-defined string field in JRMC (*Options>Library & Folders>Manage Library Fields*) named *Imported From* and check the box to *Save in file tags (when possible)*. Then configure each client to apply their specific client name to the field upon auto-import: In *Options>Library & Folders>Configure auto-import* select your auto-import directory that you are sharing with Syncthing, click *Edit...* and under *Apply these tags (optional)>Add>Custom* select the field you just created and enter the client name as the value. For instance I have named my clients *HTPC*, *Laptop*, *VPS*, and *Work*. In this manner you can track where your files were originally imported from.
|
Sometimes it is useful to keep track of which client has added a particular file to the Syncthing network. You can do this by creating a custom user-defined string field in JRMC (*Options>Library & Folders>Manage Library Fields*) named *Imported From* and check the box to *Save in file tags (when possible)*. Then configure each client to apply their specific client name to the field upon auto-import: In *Options>Library & Folders>Configure auto-import* select your auto-import directory that you are sharing with Syncthing, click *Edit...* and under *Apply these tags (optional)>Add>Custom* select the field you just created and enter the client name as the value. For instance I have named my clients *HTPC*, *Laptop*, *VPS*, and *Work*. In this manner you can track where your files were originally imported from.
|
||||||
|
|
||||||
|
|||||||
@@ -6,28 +6,28 @@ subtitle: Now with systemd!
|
|||||||
tags: [atom, podman, containers, ide, systemd, run-with-podman]
|
tags: [atom, podman, containers, ide, systemd, run-with-podman]
|
||||||
---
|
---
|
||||||
|
|
||||||
# Note
|
## Note
|
||||||
|
|
||||||
**The scripts provided in this tutorial have been superseded by the simpler [podmanRun]({% post_url 2020-05-15-podmanrun-a-simple-podman-wrapper %}) wrapper.**
|
**The scripts provided in this tutorial have been superseded by the simpler [podmanRun]({% post_url 2020-05-15-podmanrun-a-simple-podman-wrapper %}) wrapper.**
|
||||||
|
|
||||||
### Overview
|
## Overview
|
||||||
|
|
||||||
In this tutorial we will be using Atom's [build package](https://atom.io/packages/build) (although you are free to use your own IDE) and a container management script to run files/commands on default system images using podman. We will go one step further by enabling systemd support in our build environment. We will also provide the option of masking the program's output from the host using unnamed volumes.
|
In this tutorial we will be using Atom's [build package](https://atom.io/packages/build) (although you are free to use your own IDE) and a container management script to run files/commands on default system images using podman. We will go one step further by enabling systemd support in our build environment. We will also provide the option of masking the program's output from the host using unnamed volumes.
|
||||||
|
|
||||||
### Introduction
|
## Introduction
|
||||||
|
|
||||||
It is important to remember that a development environment can be just as important as the code itself. Over time, our development environment morphs into a unique beast that are specific to each user. Therefore, it is imperative to test your programs in several default environments prior to distribution.
|
It is important to remember that a development environment can be just as important as the code itself. Over time, our development environment morphs into a unique beast that are specific to each user. Therefore, it is imperative to test your programs in several default environments prior to distribution.
|
||||||
|
|
||||||
In the past, this was performed on virtual machines (VMs) that contained a default installation of the distribution that you were targeting. Thanks to their snapshotting abilities it was fairly trivial to restore distributions to their default state for software testing. However, this method had its drawbacks:
|
In the past, this was performed on virtual machines (VMs) that contained a default installation of the distribution that you were targeting. Thanks to their snapshotting abilities it was fairly trivial to restore distributions to their default state for software testing. However, this method had its drawbacks:
|
||||||
|
|
||||||
* The default state was never the *current* default state for long. VMs had to be continually upgraded via their package managers to stay up-to-date with the development environment. They also needed to be modified in some cases (e.g. to enable sshd and allow authentication-less sudo) so deploying newer image versions required manual intervention
|
* The default state was never the *current* default state for long. VMs had to be continually upgraded via their package managers to stay up-to-date with the development environment. They also needed to be modified in some cases (e.g. to enable sshd and allow authentication-less sudo) so deploying newer image versions required manual intervention
|
||||||
* Retroactive changes to existing VMs is difficult
|
* Retroactive changes to existing VMs is difficult
|
||||||
* VMs are difficult to automate, requiring third-party tools (e.g. kickstart files, Ansible, etc.) to manage them
|
* VMs are difficult to automate, requiring third-party tools (e.g. kickstart files, Ansible, etc.) to manage them
|
||||||
* Each VM gets its own IP address, which makes it difficult to automate ssh-based program building/script running
|
* Each VM gets its own IP address, which makes it difficult to automate ssh-based program building/script running
|
||||||
* VMs are computationally heavy. Their footprint is an entire deduplication of the host OS and its virtualization stack, in both memory and disk space. Taking and restoring snapshots is slow.
|
* VMs are computationally heavy. Their footprint is an entire deduplication of the host OS and its virtualization stack, in both memory and disk space. Taking and restoring snapshots is slow.
|
||||||
* There is a meaningful amount of performance loss between the hypervisor and disk i/o because it is handled using network protocols. For example, an Atom VM build command would normally look something like this:
|
* There is a meaningful amount of performance loss between the hypervisor and disk i/o because it is handled using network protocols. For example, an Atom VM build command would normally look something like this:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
cat {FILE_ACTIVE} | ssh fedora-build-machine.lan "cat > /tmp/{FILE_ACTIVE_NAME} ; mkdir -p {FILE_ACTIVE_NAME_BASE}; cd {FILE_ACTIVE_NAME_BASE}; chmod 755 /tmp/{FILE_ACTIVE_NAME} ; /tmp/{FILE_ACTIVE_NAME}"
|
cat {FILE_ACTIVE} | ssh fedora-build-machine.lan "cat > /tmp/{FILE_ACTIVE_NAME} ; mkdir -p {FILE_ACTIVE_NAME_BASE}; cd {FILE_ACTIVE_NAME_BASE}; chmod 755 /tmp/{FILE_ACTIVE_NAME} ; /tmp/{FILE_ACTIVE_NAME}"
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -39,27 +39,27 @@ Containers alleviate all of the problems associated with using VMs to execute co
|
|||||||
|
|
||||||
They:
|
They:
|
||||||
|
|
||||||
* Use standardized images of your target distributions and make it possible to execute commands directly on them
|
* Use standardized images of your target distributions and make it possible to execute commands directly on them
|
||||||
* Allow you to create your own custom base images using Dockerfiles, which are built on top of other rolling images that are automatically maintained
|
* Allow you to create your own custom base images using Dockerfiles, which are built on top of other rolling images that are automatically maintained
|
||||||
* Support several different networking options, such as automatically using the host network or operating via its own whitelisted service
|
* Support several different networking options, such as automatically using the host network or operating via its own whitelisted service
|
||||||
* Perform great because the code is running on the same kernel as the OS
|
* Perform great because the code is running on the same kernel as the OS
|
||||||
* Can be created and destroyed nearly instantaneously which makes them much better for executing frequent build commands (I'm a big F5'er)
|
* Can be created and destroyed nearly instantaneously which makes them much better for executing frequent build commands (I'm a big F5'er)
|
||||||
|
|
||||||
### Podman and Toolbox
|
### Podman and Toolbox
|
||||||
|
|
||||||
Podman is a container manager by Red Hat that is available on Fedora and CentOS and integral to Silverblue and CoreOS. Red Hat has also shipped some fun stuff built on top of Podman such as [Toolbox](https://fedoramagazine.org/a-quick-introduction-to-toolbox-on-fedora/) that combine system overlays and containers to provide seamless build environments for past and current CentOS and Fedora releases (theoretically you should be able to provide your own custom image although the documentation is currently scant). Toolbox will get you 90% of the way there to automated builds as long as you:
|
Podman is a container manager by Red Hat that is available on Fedora and CentOS and integral to Silverblue and CoreOS. Red Hat has also shipped some fun stuff built on top of Podman such as [Toolbox](https://fedoramagazine.org/a-quick-introduction-to-toolbox-on-fedora/) that combine system overlays and containers to provide seamless build environments for past and current CentOS and Fedora releases (theoretically you should be able to provide your own custom image although the documentation is currently scant). Toolbox will get you 90% of the way there to automated builds as long as you:
|
||||||
|
|
||||||
* only target Red Hat-based distributions
|
* only target Red Hat-based distributions
|
||||||
* don't develop or test systemd scripts or need to utilize existing systemd services (**systemd does not work in Toolbox**)
|
* don't develop or test systemd scripts or need to utilize existing systemd services (**systemd does not work in Toolbox**)
|
||||||
* are comfortable with having your entire $HOME exposed to your build environment
|
* are comfortable with having your entire $HOME exposed to your build environment
|
||||||
* don't need to nest toolboxes
|
* don't need to nest toolboxes
|
||||||
|
|
||||||
Toolbox may make sense if you run separate instances of your IDE from *inside* the toolbox containers, but then you are just back to creating custom build environments within each container, only now separated from the host OS. Unfortunately, Toolbox does not support nesting containers so testing your code on default images from within a toolbox is impossible as of this moment. Additionally, if your scripts change environmental variables, they may be difficult to test as the toolbox is mutable.
|
Toolbox may make sense if you run separate instances of your IDE from *inside* the toolbox containers, but then you are just back to creating custom build environments within each container, only now separated from the host OS. Unfortunately, Toolbox does not support nesting containers so testing your code on default images from within a toolbox is impossible as of this moment. Additionally, if your scripts change environmental variables, they may be difficult to test as the toolbox is mutable.
|
||||||
|
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
1. You have a script or command to execute on build. Let's start with something easy like:
|
1. You have a script or command to execute on build. Let's start with something easy like:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# ./hello-pwd-ls.sh
|
# ./hello-pwd-ls.sh
|
||||||
@@ -68,26 +68,25 @@ pwd
|
|||||||
ls -al
|
ls -al
|
||||||
exit $?
|
exit $?
|
||||||
```
|
```
|
||||||
2. You have [Atom](https://atom.io/) and the [build](https://atom.io/packages/build) package installed
|
|
||||||
* I won't pontificate on why I am using Atom and the build package as my example IDE. The podman commands I will highlight in this post will work equally as well using whichever IDE you choose to use in conjunction with its external build commands.
|
|
||||||
3. You are somewhat familiar with .atom-build.yml (or can copypasta)
|
|
||||||
4. You have podman installed
|
|
||||||
|
|
||||||
|
2. You have [Atom](https://atom.io/) and the [build](https://atom.io/packages/build) package installed (the podman commands I will highlight in this post will work equally as well using whichever IDE you choose to use in conjunction with its external build commands.)
|
||||||
|
3. You are somewhat familiar with .atom-build.yml (or can copypasta)
|
||||||
|
4. You have podman installed
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
|
|
||||||
#### run-with-podman.sh
|
#### run-with-podman.sh
|
||||||
|
|
||||||
I created the following script to handle container execution depending on a few arguments. You can download it and place it in your path here:
|
I created the following script to handle container execution depending on a few arguments. You can download it and place it in your path here:
|
||||||
|
|
||||||
|
|
||||||
Download [run-with-podman.sh](https://git.bryanroessler.com/bryan/run-with-podman/src/master/run-with-podman.sh) and install to `$HOME/.local/bin`:
|
Download [run-with-podman.sh](https://git.bryanroessler.com/bryan/run-with-podman/src/master/run-with-podman.sh) and install to `$HOME/.local/bin`:
|
||||||
```
|
|
||||||
|
```bash
|
||||||
wget -q -O "${HOME}/.local/bin/run-with-podman" "https://git.bryanroessler.com/bryan/run-with-podman/src/master/run-with-podman.sh"
|
wget -q -O "${HOME}/.local/bin/run-with-podman" "https://git.bryanroessler.com/bryan/run-with-podman/src/master/run-with-podman.sh"
|
||||||
```
|
```
|
||||||
|
|
||||||
If you prefer to copy-paste:
|
If you prefer to copy-paste:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
@@ -286,14 +285,13 @@ fi
|
|||||||
|
|
||||||
There are several things to highlight in this script:
|
There are several things to highlight in this script:
|
||||||
|
|
||||||
1. The filename is first sanitized so that it can be used to generate a unique container name.
|
1. The filename is first sanitized so that it can be used to generate a unique container name.
|
||||||
2. Next, we edit SELinux permissions on our `pwd` to allow the container full access to our build directory. Editing SELinux permissions is always a balance between ease-of-use and security and I find setting the container_file_t flag is a nice balance. If your script doesn't do much file i/o it may be possible to run it by only altering permissions on `$FILE_ACTIVE`.
|
2. Next, we edit SELinux permissions on our `pwd` to allow the container full access to our build directory. Editing SELinux permissions is always a balance between ease-of-use and security and I find setting the container_file_t flag is a nice balance. If your script doesn't do much file i/o it may be possible to run it by only altering permissions on `$FILE_ACTIVE`.
|
||||||
3. According to the mode we either remove and recreate or create a new container
|
3. According to the mode we either remove and recreate or create a new container
|
||||||
4. We mount the `pwd` in the container
|
4. We mount the `pwd` in the container
|
||||||
5. If `OUTPUT=0, `we mask the output directory `-v "{FILE_ACTIVE_PATH}/${OUTPUT_DIR}"` by mounting an unnamed volume, so that output is only stored in the container and not on the host filesystem. You can repeat this as many times as necessary to exclude other subdirectories in your build directory.
|
5. If `OUTPUT=0`, we mask the output directory `-v "{FILE_ACTIVE_PATH}/${OUTPUT_DIR}"` by mounting an unnamed volume, so that output is only stored in the container and not on the host filesystem. You can repeat this as many times as necessary to exclude other subdirectories in your build directory.
|
||||||
6. Enable `--systemd=always` if you plan on interacting with `systemctl` using your script. The default `on` state will only enable systemd when the command passed to the container is `/usr/sbin/init`. Since it is not possible to pass more than one command and we must pass our script, this should be set to `always`.
|
6. Enable `--systemd=always` if you plan on interacting with `systemctl` using your script. The default `on` state will only enable systemd when the command passed to the container is `/usr/sbin/init`. Since it is not possible to pass more than one command and we must pass our script, this should be set to `always`.
|
||||||
7. Make sure to make the script executable in the container using `chmod 755`
|
7. Make sure to make the script executable in the container using `chmod 755`
|
||||||
|
|
||||||
|
|
||||||
##### `--file` and `--file-path`
|
##### `--file` and `--file-path`
|
||||||
|
|
||||||
@@ -303,16 +301,16 @@ This can be a script running a list of commands (e.g. build script) or a single
|
|||||||
|
|
||||||
##### `--mode`
|
##### `--mode`
|
||||||
|
|
||||||
0. Nonpersistent container (always recreate) (Default)
|
0. Nonpersistent container (always recreate) (Default)
|
||||||
1. Persistent container
|
1. Persistent container
|
||||||
2. Recreate persistent container
|
2. Recreate persistent container
|
||||||
|
|
||||||
##### `--mask-dir`
|
##### `--mask-dir`
|
||||||
|
|
||||||
Optionally, one can mask output from the host system (so that it only resides in a container volume) using `--mask-dir`. As demonstrated in the [prerequisites](#prerequisites), it is important to have your program output to the `--` specified in your `.atom-build.yml` (in this case 'output'). This provides you the ability to optionally mask the output directory with an unnamed volume so that no files are actually written to the host. This has two benefits:
|
Optionally, one can mask output from the host system (so that it only resides in a container volume) using `--mask-dir`. As demonstrated in the [prerequisites](#prerequisites), it is important to have your program output to the `--` specified in your `.atom-build.yml` (in this case 'output'). This provides you the ability to optionally mask the output directory with an unnamed volume so that no files are actually written to the host. This has two benefits:
|
||||||
|
|
||||||
* If the script is configured to overwrite existing output, it may threaten a live system (like a website or any other running process that depends on the script output)
|
* If the script is configured to overwrite existing output, it may threaten a live system (like a website or any other running process that depends on the script output)
|
||||||
* If the script is configured to not overwrite existing output, the script may not run correctly
|
* If the script is configured to not overwrite existing output, the script may not run correctly
|
||||||
|
|
||||||
Output masking gives you the power to control these variables independently of one another by writing output to the container only.
|
Output masking gives you the power to control these variables independently of one another by writing output to the container only.
|
||||||
|
|
||||||
@@ -326,7 +324,6 @@ If you are going to release software that integrates with systemd, it is certain
|
|||||||
|
|
||||||
The container image to be used to execute the command.
|
The container image to be used to execute the command.
|
||||||
|
|
||||||
|
|
||||||
#### .atom-build.yml
|
#### .atom-build.yml
|
||||||
|
|
||||||
In your project directory (next to your script), create the following `.atom-build.yml` file in order to call our script using the appropriate arguments whenever a build is triggered.
|
In your project directory (next to your script), create the following `.atom-build.yml` file in order to call our script using the appropriate arguments whenever a build is triggered.
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: Flake it till you make it
|
||||||
|
subtitle: Excerpt from Soulshaping by Jeff Brown
|
||||||
|
cover-img: /assets/img/path.jpg
|
||||||
|
thumbnail-img: /assets/img/thumb.png
|
||||||
|
share-img: /assets/img/path.jpg
|
||||||
|
tags: [books, test]
|
||||||
|
author: Sharon Smith and Barry Simpson
|
||||||
|
---
|
||||||
|
|
||||||
|
Under what circumstances should we step off a path? When is it essential that we finish what we start? If I bought a bag of peanuts and had an allergic reaction, no one would fault me if I threw it out. If I ended a relationship with a woman who hit me, no one would say that I had a commitment problem. But if I walk away from a seemingly secure route because my soul has other ideas, I am a flake?
|
||||||
|
|
||||||
|
The truth is that no one else can definitively know the path we are here to walk. It’s tempting to listen—many of us long for the omnipotent other—but unless they are genuine psychic intuitives, they can’t know. All others can know is their own truth, and if they’ve actually done the work to excavate it, they will have the good sense to know that they cannot genuinely know anyone else’s. Only soul knows the path it is here to walk. Since you are the only one living in your temple, only you can know its scriptures and interpretive structure.
|
||||||
|
|
||||||
|
At the heart of the struggle are two very different ideas of success—survival-driven and soul-driven. For survivalists, success is security, pragmatism, power over others. Success is the absence of material suffering, the nourishing of the soul be damned. It is an odd and ironic thing that most of the material power in our world often resides in the hands of younger souls. Still working in the egoic and material realms, they love the sensations of power and focus most of their energy on accumulation. Older souls tend not to be as materially driven. They have already played the worldly game in previous lives and they search for more subtle shades of meaning in this one—authentication rather than accumulation. They are often ignored by the culture at large, although they really are the truest warriors.
|
||||||
|
|
||||||
|
A soulful notion of success rests on the actualization of our innate image. Success is simply the completion of a soul step, however unsightly it may be. We have finished what we started when the lesson is learned. What a fear-based culture calls a wonderful opportunity may be fruitless and misguided for the soul. Staying in a passionless relationship may satisfy our need for comfort, but it may stifle the soul. Becoming a famous lawyer is only worthwhile if the soul demands it. It is an essential failure if you are called to be a monastic this time around. If you need to explore and abandon ten careers in order to stretch your soul toward its innate image, then so be it. Flake it till you make it.
|
||||||
95
blog.bryanroessler.com/_posts/2020-02-28-sample-markdown.md
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: Sample blog post to learn markdown tips
|
||||||
|
subtitle: There's lots to learn!
|
||||||
|
gh-repo: daattali/beautiful-jekyll
|
||||||
|
gh-badge: [star, fork, follow]
|
||||||
|
tags: [test]
|
||||||
|
comments: true
|
||||||
|
mathjax: true
|
||||||
|
author: Bill Smith
|
||||||
|
---
|
||||||
|
|
||||||
|
{: .box-success}
|
||||||
|
This is a demo post to show you how to write blog posts with markdown. I strongly encourage you to [take 5 minutes to learn how to write in markdown](https://markdowntutorial.com/) - it'll teach you how to transform regular text into bold/italics/tables/etc.<br/>I also encourage you to look at the [code that created this post](https://raw.githubusercontent.com/daattali/beautiful-jekyll/master/_posts/2020-02-28-sample-markdown.md) to learn some more advanced tips about using markdown in Beautiful Jekyll.
|
||||||
|
|
||||||
|
**Here is some bold text**
|
||||||
|
|
||||||
|
## Here is a secondary heading
|
||||||
|
|
||||||
|
[This is a link to a different site](https://deanattali.com/) and [this is a link to a section inside this page](#local-urls).
|
||||||
|
|
||||||
|
Here's a table:
|
||||||
|
|
||||||
|
| Number | Next number | Previous number |
|
||||||
|
| :------ |:--- | :--- |
|
||||||
|
| Five | Six | Four |
|
||||||
|
| Ten | Eleven | Nine |
|
||||||
|
| Seven | Eight | Six |
|
||||||
|
| Two | Three | One |
|
||||||
|
|
||||||
|
You can use [MathJax](https://www.mathjax.org/) to write LaTeX expressions. For example:
|
||||||
|
When \\(a \ne 0\\), there are two solutions to \\(ax^2 + bx + c = 0\\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
|
||||||
|
|
||||||
|
How about a yummy crepe?
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
It can also be centered!
|
||||||
|
|
||||||
|
{: .mx-auto.d-block :}
|
||||||
|
|
||||||
|
Here's a code chunk:
|
||||||
|
|
||||||
|
~~~
|
||||||
|
var foo = function(x) {
|
||||||
|
return(x + 5);
|
||||||
|
}
|
||||||
|
foo(3)
|
||||||
|
~~~
|
||||||
|
|
||||||
|
And here is the same code with syntax highlighting:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
var foo = function(x) {
|
||||||
|
return(x + 5);
|
||||||
|
}
|
||||||
|
foo(3)
|
||||||
|
```
|
||||||
|
|
||||||
|
And here is the same code yet again but with line numbers:
|
||||||
|
|
||||||
|
{% highlight javascript linenos %}
|
||||||
|
var foo = function(x) {
|
||||||
|
return(x + 5);
|
||||||
|
}
|
||||||
|
foo(3)
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
## Boxes
|
||||||
|
You can add notification, warning and error boxes like this:
|
||||||
|
|
||||||
|
### Notification
|
||||||
|
|
||||||
|
{: .box-note}
|
||||||
|
**Note:** This is a notification box.
|
||||||
|
|
||||||
|
### Warning
|
||||||
|
|
||||||
|
{: .box-warning}
|
||||||
|
**Warning:** This is a warning box.
|
||||||
|
|
||||||
|
### Error
|
||||||
|
|
||||||
|
{: .box-error}
|
||||||
|
**Error:** This is an error box.
|
||||||
|
|
||||||
|
## Local URLs in project sites {#local-urls}
|
||||||
|
|
||||||
|
When hosting a *project site* on GitHub Pages (for example, `https://USERNAME.github.io/MyProject`), URLs that begin with `/` and refer to local files may not work correctly due to how the root URL (`/`) is interpreted by GitHub Pages. You can read more about it [in the FAQ](https://beautifuljekyll.com/faq/#links-in-project-page). To demonstrate the issue, the following local image will be broken **if your site is a project site:**
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
If the above image is broken, then you'll need to follow the instructions [in the FAQ](https://beautifuljekyll.com/faq/#links-in-project-page). Here is proof that it can be fixed:
|
||||||
|
|
||||||
|

|
||||||
@@ -16,11 +16,13 @@ Here's a simple script/function to keep *n* number of the latest files that matc
|
|||||||
### Code
|
### Code
|
||||||
|
|
||||||
[prunefiles](https://git.bryanroessler.com/bryan/scripts/raw/master/prunefiles):
|
[prunefiles](https://git.bryanroessler.com/bryan/scripts/raw/master/prunefiles):
|
||||||
|
|
||||||
~~~bash
|
~~~bash
|
||||||
{% insert_git_code https://git.bryanroessler.com/bryan/scripts/raw/master/prunefiles %}
|
{% insert_git_code https://git.bryanroessler.com/bryan/scripts/raw/master/prunefiles %}
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
~~~bash
|
~~~bash
|
||||||
$ ls
|
$ ls
|
||||||
Package-25-1.rpm
|
Package-25-1.rpm
|
||||||
|
|||||||
@@ -22,22 +22,25 @@ Anyone that wants to easily run programs in ephemeral or persistent containers.
|
|||||||
|
|
||||||
Not much, by design.
|
Not much, by design.
|
||||||
|
|
||||||
1. Generates a unique container name based on the `--name` argument passed to `podman` within the `podmanRun` `--options` string. If no `--name` is specified in the `--options` string, podmanRun will generate a unique container name based on the concatenated options and commands passed by the user. Thus, if any options or commands are changed, a new container will be recreated regardless if `--mode=persistent` was set.
|
1. Generates a unique container name based on the `--name` argument passed to `podman` within the `podmanRun` `--options` string. If no `--name` is specified in the `--options` string, podmanRun will generate a unique container name based on the concatenated options and commands passed by the user. Thus, if any options or commands are changed, a new container will be recreated regardless if `--mode=persistent` was set.
|
||||||
2. Checks whether a container with that name already exists.
|
2. Checks whether a container with that name already exists.
|
||||||
3. If no matching container was found: the `--options` are passed directly to `podman run` and the commands are executed in the new container.
|
3. If no matching container was found: the `--options` are passed directly to `podman run` and the commands are executed in the new container.
|
||||||
4. If a matching container was found:
|
4. If a matching container was found:
|
||||||
- `--mode=recreate` will remove the existing container and run the commands in a new container using `podman run` with the provided `--options`.
|
|
||||||
- `--mode=persistent` will run the commands in the existing container using `podman exec` and `--options` will be ignored.
|
- `--mode=recreate` will remove the existing container and run the commands in a new container using `podman run` with the provided `--options`.
|
||||||
3. By default, the container is not removed afterwards (it will only be removed upon subsequent invocations of `podmanRun` using `--mode=recreate`) to allow the user to inspect the container. Containers can be automatically removed after execution by uncommenting the requisite line in `__main()`.
|
- `--mode=persistent` will run the commands in the existing container using `podman exec` and `--options` will be ignored.
|
||||||
|
|
||||||
|
5. By default, the container is not removed afterwards (it will only be removed upon subsequent invocations of `podmanRun` using `--mode=recreate`) to allow the user to inspect the container. Containers can be automatically removed after execution by uncommenting the requisite line in `__main()`.
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
For the complete list of up-to-date options, run `podmanRun --help`.
|
For the complete list of up-to-date options, run `podmanRun --help`.
|
||||||
```
|
|
||||||
|
```bash
|
||||||
podmanRun [-m MODE] [-o OPTIONS] [COMMANDS [ARGS]...] [--help] [--debug]
|
podmanRun [-m MODE] [-o OPTIONS] [COMMANDS [ARGS]...] [--help] [--debug]
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Options
|
#### Options
|
||||||
|
|
||||||
```text
|
```text
|
||||||
--mode, -m MODE
|
--mode, -m MODE
|
||||||
@@ -58,22 +61,26 @@ Podman options can be passed to `--options` as a single string to be split on wh
|
|||||||
##### Examples
|
##### Examples
|
||||||
|
|
||||||
Run an ephemeral PHP webserver container using the current directory as webroot:
|
Run an ephemeral PHP webserver container using the current directory as webroot:
|
||||||
```
|
|
||||||
|
```shell
|
||||||
podmanRun -o "-p=8000:80 --name=php_script -v=$PWD:/var/www/html:z php:7.3-apache"
|
podmanRun -o "-p=8000:80 --name=php_script -v=$PWD:/var/www/html:z php:7.3-apache"
|
||||||
```
|
```
|
||||||
|
|
||||||
Run an ephemeral PHP webserver container using the current directory as webroot using IDE:
|
Run an ephemeral PHP webserver container using the current directory as webroot using IDE:
|
||||||
```
|
|
||||||
|
```shell
|
||||||
podmanRun -o "-p=8000:80 --name=php_{FILE_ACTIVE_NAME_BASE} -v={FILE_ACTIVE_PATH}:/var/www/html:z php:7.3-apache"
|
podmanRun -o "-p=8000:80 --name=php_{FILE_ACTIVE_NAME_BASE} -v={FILE_ACTIVE_PATH}:/var/www/html:z php:7.3-apache"
|
||||||
```
|
```
|
||||||
|
|
||||||
Run an ephemeral bash script:
|
Run an ephemeral bash script:
|
||||||
```
|
|
||||||
|
```sehll
|
||||||
podmanRun -o "--name=bash_script -v=$PWD:$PWD:z -w=$PWD debian:testing" ./script.sh
|
podmanRun -o "--name=bash_script -v=$PWD:$PWD:z -w=$PWD debian:testing" ./script.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Run an ephemeral bash script using IDE:
|
Run an ephemeral bash script using IDE:
|
||||||
```
|
|
||||||
|
```sehll
|
||||||
podmanRun -o "--name=bash_{FILE_ACTIVE_NAME_BASE}" \
|
podmanRun -o "--name=bash_{FILE_ACTIVE_NAME_BASE}" \
|
||||||
-o "-v={FILE_ACTIVE_PATH}:{FILE_ACTIVE_PATH}:z" \
|
-o "-v={FILE_ACTIVE_PATH}:{FILE_ACTIVE_PATH}:z" \
|
||||||
-o "-w={FILE_ACTIVE_PATH}" \
|
-o "-w={FILE_ACTIVE_PATH}" \
|
||||||
@@ -81,8 +88,6 @@ podmanRun -o "--name=bash_{FILE_ACTIVE_NAME_BASE}" \
|
|||||||
{FILE_ACTIVE} arg1 arg2
|
{FILE_ACTIVE} arg1 arg2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Additional Info
|
## Additional Info
|
||||||
|
|
||||||
Did you find `podmanRun` useful? [Buy me a coffee!](https://paypal.me/bryanroessler?locale.x=en_US)
|
Did you find `podmanRun` useful? [Buy me a coffee!](https://paypal.me/bryanroessler?locale.x=en_US)
|
||||||
|
|||||||
111
blog.bryanroessler.com/_posts/2020-12-14-btrfs-on-wsl2.md
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: 'BTRFS on WSL2'
|
||||||
|
date: '2020-12-14 15:36'
|
||||||
|
subtitle: It works
|
||||||
|
tags:
|
||||||
|
- BTRFS
|
||||||
|
- wsl2
|
||||||
|
- windows
|
||||||
|
- fedora
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
### Introduction
|
||||||
|
|
||||||
|
Recently I needed to move 20TB worth of data stored on my last remaining Windows HTPC server over to a BTRFS-powered NAS running a *BTRFSized* Fedora 33. However, I was quite limited by the wi-fi speeds of the embedded server running the data array and benchmarks indicated it would take several days to complete. Instead of moving displays around, I figured I would see if it was possible to connect the BTRFS drive array directly to the Windows server using WSL2. Of course, such a situation would've been unthinkable a year ago, but now thanks to the ability to use a full Linux kernel in WSL2, the process is relatively simple as long as you are willing to upgrade to a bleeding edge Windows 10 developer edition to enable the ability to mount block devices in WSL2.
|
||||||
|
|
||||||
|
### WSL2
|
||||||
|
|
||||||
|
In version 2 of the Windows Subsystem for Linux (WSL2), Microsoft started shipping a full linux kernel on top of its virtualization stack. Since BTRFS is baked into recent Linux kernels, suddenly these "Linux-only" filesystems could now be used on Windows via the WSL2. Unfortunately it was still impossible to interact with hardware block devices (and thus mount multi-drive BTRFS device arrays) until Windows 10 [Build 20211](https://docs.microsoft.com/en-us/windows/wsl/release-notes), which is still a preview build. This means you will need to enable some Microsoft telemetry, join their Insider Program (their unpaid beta testing team), and upgrade to the latest developer build to enable the `wsl --mount` feature. Since this will be the *coup d'état* for this server, I don't worry much about the long-term privacy concerns or stability risks. If this is not the case for you, **it may be a good idea to wait** until all of these awesome features trickle down to more stable builds.
|
||||||
|
|
||||||
|
1. Upgrade to a Windows Build >= 20211 by joining the Insider Program from the Windows settings (entails several reboots)
|
||||||
|
|
||||||
|
Additional steps I had to perform in Windows:
|
||||||
|
|
||||||
|
1. Enable WSL2 VM support: `dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart`
|
||||||
|
2. Set my default WSL to version 2: `wsl --set-default-version 2`
|
||||||
|
3. If you have an existing WSL installation, you will need to convert it from WSL1 to WSL2: `wsl --set-version Ubuntu 2`
|
||||||
|
|
||||||
|
### The array
|
||||||
|
|
||||||
|
The BTRFS array consists of 5 disks in a **RAID1c3** configuration that was created on a Fedora 33 server. So-called "3-Copy" support was added to **Linux 5.5** and adds some additional redundancy. Unfortunately, the WSL2 currently ships with a Linux 4.9 by default. It's possible to upgrade the kernel to some extent using [a package from Microsoft](https://docs.microsoft.com/en-us/windows/wsl/install-win10#step-4---download-the-linux-kernel-update-package), but I was still stuck on 5.4 even after installing the update package.
|
||||||
|
|
||||||
|
It's certainly possible to build your own Linux kernel from Microsoft's [Linux 5.4 source repository](https://github.com/microsoft/WSL2-Linux-Kernel/tree/linux-msft-wsl-5.4.y) if you wanted to go that route. In my case the BTRFS version in the kernel would still not be able to read my RAID1c3 array.
|
||||||
|
|
||||||
|
Luckily, [Nathan Chance](https://github.com/nathanchance/WSL2-Linux-Kernel) has a public repository available of WSL2-compatible Linux kernels tracking upstream. You can build it using his toolchain or use one of his latest pre-compiled [releases](https://github.com/nathanchance/WSL2-Linux-Kernel/releases). As I mentioned earlier, I'm not too concerned with performance or security here so I'm willing to use a third-party solution to save time as this is a one-shot operation. Thanks, Nathan.
|
||||||
|
|
||||||
|
After downloading the bzImage you will need to point WSL2 at the new kernel by placing a file at `C:\Users\username\.wslconfig` containing:
|
||||||
|
|
||||||
|
```(text)
|
||||||
|
[wsl2]
|
||||||
|
kernel = C:\\Users\\username\\Downloads\\bzImage
|
||||||
|
```
|
||||||
|
|
||||||
|
Yes, those are **double slashes**, because Windows.
|
||||||
|
|
||||||
|
Now you can restart your wsl instance (`wsl --shutdown`) or just reboot and you should be running a sparkling fresh kernel (confirm with `uname -a`). At the time of this writing, Linux 5.10 kernels were already available.
|
||||||
|
|
||||||
|
### Passthrough the BTRFS device (or partition) to WSL2
|
||||||
|
|
||||||
|
Now that our tools are up-to-date we can go ahead and mount (passthrough) our block devices and BTRFS partitions. In Windows you will need to identify the **DeviceID** of the disk(s) you wish to passthrough to WSL2 using `wmic diskdrive list brief` in an elevated prompt. In Windows fashion the nomenclature is nonsensical (probably, `\\.\PHYSICALDRIVE2`).
|
||||||
|
|
||||||
|
In my case I had to passthrough all five drives in the array. WSL2 does have the ability to mount btrfs partitions directly using the `-t` option, but we will just be passing the bare drives as block devices instead:
|
||||||
|
|
||||||
|
```(powershell)
|
||||||
|
wsl --mount \\.\PHYSICALDRIVE5 --bare
|
||||||
|
wsl --mount \\.\PHYSICALDRIVE6 --bare
|
||||||
|
wsl --mount \\.\PHYSICALDRIVE7 --bare
|
||||||
|
wsl --mount \\.\PHYSICALDRIVE8 --bare
|
||||||
|
wsl --mount \\.\PHYSICALDRIVE9 --bare
|
||||||
|
```
|
||||||
|
|
||||||
|
These will all become block devices in `/dev/sd*`.
|
||||||
|
|
||||||
|
### Mount the BTRFS filesystem and transfer your data
|
||||||
|
|
||||||
|
After adding your drives to the WSL2, for good measure run a `sudo btrfs device scan` to make the kernel aware of their existence.
|
||||||
|
|
||||||
|
Check for device blocks:
|
||||||
|
|
||||||
|
```(shell)
|
||||||
|
$ sudo blkid
|
||||||
|
/dev/sda: UUID="3255683f-53a2-4fdf-91cf-b4c1041e2a62" TYPE="ext4"
|
||||||
|
/dev/sdb: UUID="3255683f-53a2-4fdf-91cf-b4c1041e2a62" TYPE="ext4"
|
||||||
|
/dev/sdc: LABEL="array" UUID="6f7065bf-3f6c-4950-b305-e5d3565b9385" UUID_SUB="bdfea478-7826-48ed-b000-04894aac221d" TYPE="btrfs"
|
||||||
|
/dev/sdd: LABEL="array" UUID="6f7065bf-3f6c-4950-b305-e5d3565b9385" UUID_SUB="95615881-0962-4318-b04d-6aa21d991a33" TYPE="btrfs"
|
||||||
|
/dev/sde: LABEL="array" UUID="6f7065bf-3f6c-4950-b305-e5d3565b9385" UUID_SUB="abc9baa8-4b76-4630-a1d5-e91852dca20c" TYPE="btrfs"
|
||||||
|
/dev/sdf: LABEL="array" UUID="6f7065bf-3f6c-4950-b305-e5d3565b9385" UUID_SUB="e06ddecc-57cd-4458-a4a7-22689f940b02" TYPE="btrfs"
|
||||||
|
/dev/sdg: LABEL="array" UUID="6f7065bf-3f6c-4950-b305-e5d3565b9385" UUID_SUB="08f00c39-b1bc-4b01-9f1d-e1efb8686fd4" TYPE="btrfs"
|
||||||
|
```
|
||||||
|
|
||||||
|
BTRFS is smart enough to mount the whole device array even when specifying a single disk member. So just create a sensible mount point and mount any of your btrfs devices: `sudo mkdir /mnt/array && sudo mount /dev/sdc /mnt/array`.
|
||||||
|
|
||||||
|
`cd /mnt/array` into your mounted BTRFS array to make sure everything looks good and your subvolumes are present: `sudo btrfs subvolume list /`
|
||||||
|
|
||||||
|
If everything looks good, go ahead and start transferring your data over from your Windows partitions, which are also conveniently mounted in `/mnt` (as you have probably spotted by now if you've been following along).
|
||||||
|
|
||||||
|
By default the Windows filesystems are `a+rwx` so it is pretty easy to pull data from them with rsync without too many permission hassles using the `-a` archive option: `rsync -a --info=progress2 /mnt/d/media/ /mnt/e/media/ /mnt/array/media`
|
||||||
|
|
||||||
|
As you can see in the above rsync command, I chose to chain several source directories together to simplify the transfer to the new array.
|
||||||
|
|
||||||
|
### Cleanup
|
||||||
|
|
||||||
|
After you are finished moving data around:
|
||||||
|
|
||||||
|
1. Unmount the array in WSL: `sudo umount /dev/array` **Note:** Make sure you aren't currently in the mount point or you will get `target is busy` errors when trying to unmount. `cd ~` first.
|
||||||
|
2. Back in Windows, unshare the drive with the WSL2:
|
||||||
|
|
||||||
|
```(powershell)
|
||||||
|
wsl --unmount \\.\PHYSICALDRIVE5
|
||||||
|
wsl --unmount \\.\PHYSICALDRIVE6
|
||||||
|
wsl --unmount \\.\PHYSICALDRIVE7
|
||||||
|
wsl --unmount \\.\PHYSICALDRIVE8
|
||||||
|
wsl --unmount \\.\PHYSICALDRIVE9
|
||||||
|
```
|
||||||
|
|
||||||
|
And voilà, you are done!
|
||||||
|
|
||||||
|
### Conclusions
|
||||||
|
|
||||||
|
Even though my aging Windows server was limited to 5 GB/s USB throughput, I was still able to complete the transfer in a matter of hours (not days) and without putting tremendous load on my network for an extended period of time. It is also perhaps bittersweet that I exit the ecosystem just as it achieves some useful level of compatibility with my preferred workflow. In theory one could even share BTRFS devices between Windows and Linux as long as they were not simultaneously mounted. Of course, in most cases it would be more sensible to use a network-based solution but for those seeking optimal performance, the WSL2 offers a compelling option.
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: 'Restoring external (remote) WSL2 access'
|
||||||
|
date: 2021-02-18 11:01
|
||||||
|
tags: [windows, wsl, wsl2, linux, ssh, firewall, ip, ifconfig, powershell]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Cannot access WSL2 instances remotely
|
||||||
|
|
||||||
|
If you rely on external (remote) access to the Windows Subsystem for Linux (WSL2) you may have noticed that your manual port forwards have suddenly stopped working. Microsoft has started issuing WSL2 instances a randomized IP address on startup, which makes it difficult to reliably access services hosted in the Linux subsystem. However, it's still possible to probe the WSL2 instance on startup and open the appropriate ports using Powershell.
|
||||||
|
|
||||||
|
Most existing solutions rely on legacy `ifconfig`, which has been deprecated in Ubuntu 20.04 (available in WSL2 via an in-place `do-release-upgrade`) in favor of `ip`.
|
||||||
|
|
||||||
|
## Allow WSL2 to bypass the Windows Firewall with a Powershell task
|
||||||
|
|
||||||
|
Steps:
|
||||||
|
|
||||||
|
1. [Download](https://git.bryanroessler.com/bryan/scripts/raw/master/powershell/wsl2-firewall-rules.ps1) or copy-paste the following Powershell script to a local file:
|
||||||
|
{% highlight powershell %}
|
||||||
|
{% insert_git_code https://git.bryanroessler.com/bryan/scripts/raw/master/powershell/wsl2-firewall-rules.ps1 %}
|
||||||
|
{% endhighlight %}
|
||||||
|
2. Edit the port list to add any additional WSL2 ports you wish to expose
|
||||||
|
3. Create a startup new task in the Windows Task Scheduler:
|
||||||
|
|
||||||
|
* Name: 'WSL2-Bypass'
|
||||||
|
* Triggers: At log on, for any user
|
||||||
|
* Actions:
|
||||||
|
* Program/Script: `powershell`
|
||||||
|
* Add Arguments: `-ExecutionPolicy Bypass C:\Users\Bryan\Path\To\wsl2-firewall-rules.ps1`
|
||||||
|
|
||||||
|
4. Save the task and run it
|
||||||
|
|
||||||
|
## Starting WSL2 services automatically at login
|
||||||
|
|
||||||
|
You can use your `.bashrc` in the WSL2 or simply append the following line to the beginning of your powershell task:
|
||||||
|
|
||||||
|
`bash.exe -c "sudo /usr/sbin/service ssh start; sudo /usr/sbin/service unattended-upgrades start"`
|
||||||
|
|
||||||
|
You can add or remove services as necessary. In order to be able to use root privileges without entering a password, you will need to edit the sudoers file using **`visudo`** and adding the following lines:
|
||||||
|
|
||||||
|
```(bash)
|
||||||
|
bryan ALL = NOPASSWD: /usr/sbin/service start ssh
|
||||||
|
bryan ALL = NOPASSWD: /usr/sbin/service start unattended-upgrades
|
||||||
|
```
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
* Make sure that you have already made the appropriate firewall changes within the instance itself.
|
||||||
|
* Make sure that your service is running.
|
||||||
|
* Try probing for the IP address manually and connecting to the service from the Windows machine.
|
||||||
|
|
||||||
|
Enjoy unfettered remote access to your WSL2 services again!
|
||||||
@@ -13,4 +13,4 @@ What else do you need?
|
|||||||
|
|
||||||
### my history
|
### my history
|
||||||
|
|
||||||
To be honest, I'm having some trouble remembering right now, so why don't you just watch [my movie](https://en.wikipedia.org/wiki/The_Princess_Bride_%28film%29) and it will answer **all** your questions.
|
To be honest, I'm having some trouble remembering right now, so why don't you just watch [my movie](http://en.wikipedia.org/wiki/The_Princess_Bride_%28film%29) and it will answer **all** your questions.
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ footer.footer-min {
|
|||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
border-top: 1px solid #eeeeee;
|
border-top: 1px solid #eeeeee;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
23
blog.bryanroessler.com/assets/data/searchcorpus.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
layout: null
|
||||||
|
---
|
||||||
|
[
|
||||||
|
{% for post in site.posts %}
|
||||||
|
{
|
||||||
|
"title" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}",
|
||||||
|
"desc" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}",
|
||||||
|
"category" : "{{ post.tags | join: ', ' }}",
|
||||||
|
"url" : "{{ site.baseurl }}{{ post.url | escape }}",
|
||||||
|
"date" : "{{ post.date | date: "%B %e, %Y" | default: "January 1, 1970" }}"
|
||||||
|
},
|
||||||
|
{% endfor %}
|
||||||
|
{% for page in site.html_pages %}{% if page.title != "{title}" and page.title != "404 - Page not found" %}
|
||||||
|
{
|
||||||
|
"title" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}",
|
||||||
|
"desc" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}",
|
||||||
|
"category" : "{% if page.tags %}{{ page.tags | join: ', ' }}{% else %}page{% endif %}",
|
||||||
|
"url" : "{{ site.baseurl }}{{ page.url }}",
|
||||||
|
"date" : "{{ page.date | date: '%B %e, %Y' | default: "January 1, 1970" }}"
|
||||||
|
}{% unless forloop.last %},{% endunless %}
|
||||||
|
{% endif %}{% endfor %}
|
||||||
|
]
|
||||||
BIN
blog.bryanroessler.com/assets/img/crepe.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
@@ -1,11 +1,13 @@
|
|||||||
// Dean Attali / Beautiful Jekyll 2020
|
// Dean Attali / Beautiful Jekyll 2023
|
||||||
|
|
||||||
var BeautifulJekyllJS = {
|
let BeautifulJekyllJS = {
|
||||||
|
|
||||||
bigImgEl : null,
|
bigImgEl : null,
|
||||||
numImgs : null,
|
numImgs : null,
|
||||||
|
|
||||||
init : function() {
|
init : function() {
|
||||||
|
setTimeout(BeautifulJekyllJS.initNavbar, 10);
|
||||||
|
|
||||||
// Shorten the navbar after scrolling a little bit down
|
// Shorten the navbar after scrolling a little bit down
|
||||||
$(window).scroll(function() {
|
$(window).scroll(function() {
|
||||||
if ($(".navbar").offset().top > 50) {
|
if ($(".navbar").offset().top > 50) {
|
||||||
@@ -25,6 +27,23 @@ var BeautifulJekyllJS = {
|
|||||||
|
|
||||||
// show the big header image
|
// show the big header image
|
||||||
BeautifulJekyllJS.initImgs();
|
BeautifulJekyllJS.initImgs();
|
||||||
|
|
||||||
|
BeautifulJekyllJS.initSearch();
|
||||||
|
},
|
||||||
|
|
||||||
|
initNavbar : function() {
|
||||||
|
// Set the navbar-dark/light class based on its background color
|
||||||
|
const rgb = $('.navbar').css("background-color").replace(/[^\d,]/g,'').split(",");
|
||||||
|
const brightness = Math.round(( // http://www.w3.org/TR/AERT#color-contrast
|
||||||
|
parseInt(rgb[0]) * 299 +
|
||||||
|
parseInt(rgb[1]) * 587 +
|
||||||
|
parseInt(rgb[2]) * 114
|
||||||
|
) / 1000);
|
||||||
|
if (brightness <= 125) {
|
||||||
|
$(".navbar").removeClass("navbar-light").addClass("navbar-dark");
|
||||||
|
} else {
|
||||||
|
$(".navbar").removeClass("navbar-dark").addClass("navbar-light");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
initImgs : function() {
|
initImgs : function() {
|
||||||
@@ -35,23 +54,23 @@ var BeautifulJekyllJS = {
|
|||||||
|
|
||||||
// 2fc73a3a967e97599c9763d05e564189
|
// 2fc73a3a967e97599c9763d05e564189
|
||||||
// set an initial image
|
// set an initial image
|
||||||
var imgInfo = BeautifulJekyllJS.getImgInfo();
|
const imgInfo = BeautifulJekyllJS.getImgInfo();
|
||||||
var src = imgInfo.src;
|
const src = imgInfo.src;
|
||||||
var desc = imgInfo.desc;
|
const desc = imgInfo.desc;
|
||||||
BeautifulJekyllJS.setImg(src, desc);
|
BeautifulJekyllJS.setImg(src, desc);
|
||||||
|
|
||||||
// For better UX, prefetch the next image so that it will already be loaded when we want to show it
|
// For better UX, prefetch the next image so that it will already be loaded when we want to show it
|
||||||
var getNextImg = function() {
|
const getNextImg = function() {
|
||||||
var imgInfo = BeautifulJekyllJS.getImgInfo();
|
const imgInfo = BeautifulJekyllJS.getImgInfo();
|
||||||
var src = imgInfo.src;
|
const src = imgInfo.src;
|
||||||
var desc = imgInfo.desc;
|
const desc = imgInfo.desc;
|
||||||
|
|
||||||
var prefetchImg = new Image();
|
const prefetchImg = new Image();
|
||||||
prefetchImg.src = src;
|
prefetchImg.src = src;
|
||||||
// if I want to do something once the image is ready: `prefetchImg.onload = function(){}`
|
// if I want to do something once the image is ready: `prefetchImg.onload = function(){}`
|
||||||
|
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
var img = $("<div></div>").addClass("big-img-transition").css("background-image", 'url(' + src + ')');
|
const img = $("<div></div>").addClass("big-img-transition").css("background-image", 'url(' + src + ')');
|
||||||
$(".intro-header.big-img").prepend(img);
|
$(".intro-header.big-img").prepend(img);
|
||||||
setTimeout(function(){ img.css("opacity", "1"); }, 50);
|
setTimeout(function(){ img.css("opacity", "1"); }, 50);
|
||||||
|
|
||||||
@@ -74,9 +93,9 @@ var BeautifulJekyllJS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getImgInfo : function() {
|
getImgInfo : function() {
|
||||||
var randNum = Math.floor((Math.random() * BeautifulJekyllJS.numImgs) + 1);
|
const randNum = Math.floor((Math.random() * BeautifulJekyllJS.numImgs) + 1);
|
||||||
var src = BeautifulJekyllJS.bigImgEl.attr("data-img-src-" + randNum);
|
const src = BeautifulJekyllJS.bigImgEl.attr("data-img-src-" + randNum);
|
||||||
var desc = BeautifulJekyllJS.bigImgEl.attr("data-img-desc-" + randNum);
|
const desc = BeautifulJekyllJS.bigImgEl.attr("data-img-desc-" + randNum);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
src : src,
|
src : src,
|
||||||
@@ -91,6 +110,30 @@ var BeautifulJekyllJS = {
|
|||||||
} else {
|
} else {
|
||||||
$(".img-desc").hide();
|
$(".img-desc").hide();
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
initSearch : function() {
|
||||||
|
if (!document.getElementById("beautifuljekyll-search-overlay")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$("#nav-search-link").click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
$("#beautifuljekyll-search-overlay").show();
|
||||||
|
$("#nav-search-input").focus().select();
|
||||||
|
$("body").addClass("overflow-hidden");
|
||||||
|
});
|
||||||
|
$("#nav-search-exit").click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
$("#beautifuljekyll-search-overlay").hide();
|
||||||
|
$("body").removeClass("overflow-hidden");
|
||||||
|
});
|
||||||
|
$(document).on('keyup', function(e) {
|
||||||
|
if (e.key == "Escape") {
|
||||||
|
$("#beautifuljekyll-search-overlay").hide();
|
||||||
|
$("body").removeClass("overflow-hidden");
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3,40 +3,51 @@ layout: null
|
|||||||
---
|
---
|
||||||
|
|
||||||
(function ($) {
|
(function ($) {
|
||||||
var $comments = $('.js-comments');
|
|
||||||
|
|
||||||
$('#new_comment').submit(function () {
|
$('#new_comment').submit(function () {
|
||||||
var form = this;
|
const form = this;
|
||||||
|
|
||||||
$(form).addClass('disabled');
|
$(form).addClass('disabled');
|
||||||
|
|
||||||
{% assign sm = site.staticman -%}
|
{% assign sm = site.staticman -%}
|
||||||
var endpoint = '{{ sm.endpoint | default: "https://staticman3.herokuapp.com/v3/entry/github/" }}';
|
const endpoint = '{{ sm.endpoint }}';
|
||||||
var repository = '{{ sm.repository }}';
|
const repository = '{{ sm.repository }}';
|
||||||
var branch = '{{ sm.branch }}';
|
const branch = '{{ sm.branch }}';
|
||||||
|
const url = endpoint + repository + '/' + branch + '/comments';
|
||||||
|
const data = $(this).serialize();
|
||||||
|
|
||||||
$.ajax({
|
const xhr = new XMLHttpRequest();
|
||||||
type: $(this).attr('method'),
|
xhr.open("POST", url);
|
||||||
url: endpoint + repository + '/' + branch + '/comments',
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||||
data: $(this).serialize(),
|
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
||||||
contentType: 'application/x-www-form-urlencoded',
|
xhr.onreadystatechange = function () {
|
||||||
success: function (data) {
|
if(xhr.readyState === XMLHttpRequest.DONE) {
|
||||||
$('#comment-form-submit').addClass('d-none');
|
const status = xhr.status;
|
||||||
$('#comment-form-submitted').removeClass('d-none');
|
if (status >= 200 && status < 400) {
|
||||||
$('.page__comments-form .js-notice').removeClass('alert-danger');
|
formSubmitted();
|
||||||
$('.page__comments-form .js-notice').addClass('alert-success');
|
} else {
|
||||||
showAlert('success');
|
formError();
|
||||||
},
|
}
|
||||||
error: function (err) {
|
|
||||||
console.log(err);
|
|
||||||
$('#comment-form-submitted').addClass('d-none');
|
|
||||||
$('#comment-form-submit').removeClass('d-none');
|
|
||||||
$('.page__comments-form .js-notice').removeClass('alert-success');
|
|
||||||
$('.page__comments-form .js-notice').addClass('alert-danger');
|
|
||||||
showAlert('failure');
|
|
||||||
$(form).removeClass('disabled');
|
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
|
||||||
|
function formSubmitted() {
|
||||||
|
$('#comment-form-submit').addClass('d-none');
|
||||||
|
$('#comment-form-submitted').removeClass('d-none');
|
||||||
|
$('.page__comments-form .js-notice').removeClass('alert-danger');
|
||||||
|
$('.page__comments-form .js-notice').addClass('alert-success');
|
||||||
|
showAlert('success');
|
||||||
|
}
|
||||||
|
|
||||||
|
function formError() {
|
||||||
|
$('#comment-form-submitted').addClass('d-none');
|
||||||
|
$('#comment-form-submit').removeClass('d-none');
|
||||||
|
$('.page__comments-form .js-notice').removeClass('alert-success');
|
||||||
|
$('.page__comments-form .js-notice').addClass('alert-danger');
|
||||||
|
showAlert('failure');
|
||||||
|
$(form).removeClass('disabled');
|
||||||
|
}
|
||||||
|
|
||||||
|
xhr.send(data);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Gem::Specification.new do |spec|
|
Gem::Specification.new do |spec|
|
||||||
spec.name = "beautiful-jekyll-theme"
|
spec.name = "beautiful-jekyll-theme"
|
||||||
spec.version = "4.0.1"
|
spec.version = "6.0.1"
|
||||||
spec.authors = ["Dean Attali"]
|
spec.authors = ["Dean Attali"]
|
||||||
spec.email = ["daattali@gmail.com"]
|
spec.email = ["daattali@gmail.com"]
|
||||||
|
|
||||||
@@ -10,17 +10,21 @@ Gem::Specification.new do |spec|
|
|||||||
spec.homepage = "https://beautifuljekyll.com"
|
spec.homepage = "https://beautifuljekyll.com"
|
||||||
spec.license = "MIT"
|
spec.license = "MIT"
|
||||||
|
|
||||||
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|_layouts|_includes|LICENSE|README|feed|404|_data|tags|stfaticman)}i) }
|
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|_layouts|_includes|LICENSE|README|feed|404|_data|tags|staticman)}i) }
|
||||||
|
|
||||||
spec.metadata = {
|
spec.metadata = {
|
||||||
"changelog_uri" => "https://github.com/daattali/beautiful-jekyll/blob/master/CHANGELOG.md",
|
"changelog_uri" => "https://beautifuljekyll.com/updates/",
|
||||||
"documentation_uri" => "https://github.com/daattali/beautiful-jekyll#readme"
|
"documentation_uri" => "https://github.com/daattali/beautiful-jekyll#readme"
|
||||||
}
|
}
|
||||||
|
|
||||||
spec.add_runtime_dependency "jekyll", "~> 3.8"
|
spec.add_runtime_dependency "jekyll", ">= 3.9.3"
|
||||||
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
|
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
|
||||||
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4"
|
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4"
|
||||||
|
spec.add_runtime_dependency "kramdown-parser-gfm", "~> 1.1"
|
||||||
|
spec.add_runtime_dependency "kramdown", "~> 2.3"
|
||||||
|
spec.add_runtime_dependency "webrick", "~> 1.8"
|
||||||
|
|
||||||
spec.add_development_dependency "bundler", ">= 1.16"
|
spec.add_development_dependency "bundler", ">= 1.16"
|
||||||
spec.add_development_dependency "rake", "~> 12.0"
|
spec.add_development_dependency "rake", "~> 12.0"
|
||||||
|
spec.add_development_dependency "appraisal", "~> 2.5"
|
||||||
end
|
end
|
||||||
|
|||||||
147
blog.bryanroessler.com/css/bootstrap-social.css
vendored
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
/*
|
||||||
|
* Social Buttons for Bootstrap
|
||||||
|
*
|
||||||
|
* Copyright 2013-2015 Panayiotis Lipiridis
|
||||||
|
* Licensed under the MIT License
|
||||||
|
*
|
||||||
|
* https://github.com/lipis/bootstrap-social
|
||||||
|
*/
|
||||||
|
|
||||||
|
.btn-social{position:relative;margin-bottom:5px;padding-left:44px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn-social>:first-child{position:absolute;left:0;top:0;bottom:0;width:32px;line-height:34px;font-size:1.6em;text-align:center;border-right:1px solid rgba(0,0,0,0.2)}
|
||||||
|
.btn-social.btn-lg{padding-left:61px}.btn-social.btn-lg>:first-child{line-height:45px;width:45px;font-size:1.8em}
|
||||||
|
.btn-social.btn-sm{padding-left:38px}.btn-social.btn-sm>:first-child{line-height:28px;width:28px;font-size:1.4em}
|
||||||
|
.btn-social.btn-xs{padding-left:30px}.btn-social.btn-xs>:first-child{line-height:20px;width:20px;font-size:1.2em}
|
||||||
|
.btn-social-icon{position:relative;padding-left:44px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:34px;width:34px;padding:0}.btn-social-icon>:first-child{position:absolute;left:0;top:0;bottom:0;width:32px;line-height:34px;font-size:1.6em;text-align:center;border-right:1px solid rgba(0,0,0,0.2)}
|
||||||
|
.btn-social-icon.btn-lg{padding-left:61px}.btn-social-icon.btn-lg>:first-child{line-height:45px;width:45px;font-size:1.8em}
|
||||||
|
.btn-social-icon.btn-sm{padding-left:38px}.btn-social-icon.btn-sm>:first-child{line-height:28px;width:28px;font-size:1.4em}
|
||||||
|
.btn-social-icon.btn-xs{padding-left:30px}.btn-social-icon.btn-xs>:first-child{line-height:20px;width:20px;font-size:1.2em}
|
||||||
|
.btn-social-icon>:first-child{border:none;text-align:center;width:100% !important}
|
||||||
|
.btn-social-icon.btn-lg{height:45px;width:45px;padding-left:0;padding-right:0}
|
||||||
|
.btn-social-icon.btn-sm{height:30px;width:30px;padding-left:0;padding-right:0}
|
||||||
|
.btn-social-icon.btn-xs{height:22px;width:22px;padding-left:0;padding-right:0}
|
||||||
|
.btn-adn{color:#fff;background-color:#d87a68;border-color:rgba(0,0,0,0.2)}.btn-adn:focus,.btn-adn.focus{color:#fff;background-color:#ce563f;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-adn:hover{color:#fff;background-color:#ce563f;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-adn:active,.btn-adn.active,.open>.dropdown-toggle.btn-adn{color:#fff;background-color:#ce563f;border-color:rgba(0,0,0,0.2)}.btn-adn:active:hover,.btn-adn.active:hover,.open>.dropdown-toggle.btn-adn:hover,.btn-adn:active:focus,.btn-adn.active:focus,.open>.dropdown-toggle.btn-adn:focus,.btn-adn:active.focus,.btn-adn.active.focus,.open>.dropdown-toggle.btn-adn.focus{color:#fff;background-color:#b94630;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-adn:active,.btn-adn.active,.open>.dropdown-toggle.btn-adn{background-image:none}
|
||||||
|
.btn-adn.disabled,.btn-adn[disabled],fieldset[disabled] .btn-adn,.btn-adn.disabled:hover,.btn-adn[disabled]:hover,fieldset[disabled] .btn-adn:hover,.btn-adn.disabled:focus,.btn-adn[disabled]:focus,fieldset[disabled] .btn-adn:focus,.btn-adn.disabled.focus,.btn-adn[disabled].focus,fieldset[disabled] .btn-adn.focus,.btn-adn.disabled:active,.btn-adn[disabled]:active,fieldset[disabled] .btn-adn:active,.btn-adn.disabled.active,.btn-adn[disabled].active,fieldset[disabled] .btn-adn.active{background-color:#d87a68;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-adn .badge{color:#d87a68;background-color:#fff}
|
||||||
|
.btn-bitbucket{color:#fff;background-color:#205081;border-color:rgba(0,0,0,0.2)}.btn-bitbucket:focus,.btn-bitbucket.focus{color:#fff;background-color:#163758;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-bitbucket:hover{color:#fff;background-color:#163758;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-bitbucket:active,.btn-bitbucket.active,.open>.dropdown-toggle.btn-bitbucket{color:#fff;background-color:#163758;border-color:rgba(0,0,0,0.2)}.btn-bitbucket:active:hover,.btn-bitbucket.active:hover,.open>.dropdown-toggle.btn-bitbucket:hover,.btn-bitbucket:active:focus,.btn-bitbucket.active:focus,.open>.dropdown-toggle.btn-bitbucket:focus,.btn-bitbucket:active.focus,.btn-bitbucket.active.focus,.open>.dropdown-toggle.btn-bitbucket.focus{color:#fff;background-color:#0f253c;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-bitbucket:active,.btn-bitbucket.active,.open>.dropdown-toggle.btn-bitbucket{background-image:none}
|
||||||
|
.btn-bitbucket.disabled,.btn-bitbucket[disabled],fieldset[disabled] .btn-bitbucket,.btn-bitbucket.disabled:hover,.btn-bitbucket[disabled]:hover,fieldset[disabled] .btn-bitbucket:hover,.btn-bitbucket.disabled:focus,.btn-bitbucket[disabled]:focus,fieldset[disabled] .btn-bitbucket:focus,.btn-bitbucket.disabled.focus,.btn-bitbucket[disabled].focus,fieldset[disabled] .btn-bitbucket.focus,.btn-bitbucket.disabled:active,.btn-bitbucket[disabled]:active,fieldset[disabled] .btn-bitbucket:active,.btn-bitbucket.disabled.active,.btn-bitbucket[disabled].active,fieldset[disabled] .btn-bitbucket.active{background-color:#205081;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-bitbucket .badge{color:#205081;background-color:#fff}
|
||||||
|
.btn-dropbox{color:#fff;background-color:#1087dd;border-color:rgba(0,0,0,0.2)}.btn-dropbox:focus,.btn-dropbox.focus{color:#fff;background-color:#0d6aad;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-dropbox:hover{color:#fff;background-color:#0d6aad;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-dropbox:active,.btn-dropbox.active,.open>.dropdown-toggle.btn-dropbox{color:#fff;background-color:#0d6aad;border-color:rgba(0,0,0,0.2)}.btn-dropbox:active:hover,.btn-dropbox.active:hover,.open>.dropdown-toggle.btn-dropbox:hover,.btn-dropbox:active:focus,.btn-dropbox.active:focus,.open>.dropdown-toggle.btn-dropbox:focus,.btn-dropbox:active.focus,.btn-dropbox.active.focus,.open>.dropdown-toggle.btn-dropbox.focus{color:#fff;background-color:#0a568c;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-dropbox:active,.btn-dropbox.active,.open>.dropdown-toggle.btn-dropbox{background-image:none}
|
||||||
|
.btn-dropbox.disabled,.btn-dropbox[disabled],fieldset[disabled] .btn-dropbox,.btn-dropbox.disabled:hover,.btn-dropbox[disabled]:hover,fieldset[disabled] .btn-dropbox:hover,.btn-dropbox.disabled:focus,.btn-dropbox[disabled]:focus,fieldset[disabled] .btn-dropbox:focus,.btn-dropbox.disabled.focus,.btn-dropbox[disabled].focus,fieldset[disabled] .btn-dropbox.focus,.btn-dropbox.disabled:active,.btn-dropbox[disabled]:active,fieldset[disabled] .btn-dropbox:active,.btn-dropbox.disabled.active,.btn-dropbox[disabled].active,fieldset[disabled] .btn-dropbox.active{background-color:#1087dd;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-dropbox .badge{color:#1087dd;background-color:#fff}
|
||||||
|
.btn-facebook{color:#fff;background-color:#3b5998;border-color:rgba(0,0,0,0.2)}.btn-facebook:focus,.btn-facebook.focus{color:#fff;background-color:#2d4373;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-facebook:hover{color:#fff;background-color:#2d4373;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-facebook:active,.btn-facebook.active,.open>.dropdown-toggle.btn-facebook{color:#fff;background-color:#2d4373;border-color:rgba(0,0,0,0.2)}.btn-facebook:active:hover,.btn-facebook.active:hover,.open>.dropdown-toggle.btn-facebook:hover,.btn-facebook:active:focus,.btn-facebook.active:focus,.open>.dropdown-toggle.btn-facebook:focus,.btn-facebook:active.focus,.btn-facebook.active.focus,.open>.dropdown-toggle.btn-facebook.focus{color:#fff;background-color:#23345a;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-facebook:active,.btn-facebook.active,.open>.dropdown-toggle.btn-facebook{background-image:none}
|
||||||
|
.btn-facebook.disabled,.btn-facebook[disabled],fieldset[disabled] .btn-facebook,.btn-facebook.disabled:hover,.btn-facebook[disabled]:hover,fieldset[disabled] .btn-facebook:hover,.btn-facebook.disabled:focus,.btn-facebook[disabled]:focus,fieldset[disabled] .btn-facebook:focus,.btn-facebook.disabled.focus,.btn-facebook[disabled].focus,fieldset[disabled] .btn-facebook.focus,.btn-facebook.disabled:active,.btn-facebook[disabled]:active,fieldset[disabled] .btn-facebook:active,.btn-facebook.disabled.active,.btn-facebook[disabled].active,fieldset[disabled] .btn-facebook.active{background-color:#3b5998;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-facebook .badge{color:#3b5998;background-color:#fff}
|
||||||
|
.btn-flickr{color:#fff;background-color:#ff0084;border-color:rgba(0,0,0,0.2)}.btn-flickr:focus,.btn-flickr.focus{color:#fff;background-color:#cc006a;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-flickr:hover{color:#fff;background-color:#cc006a;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-flickr:active,.btn-flickr.active,.open>.dropdown-toggle.btn-flickr{color:#fff;background-color:#cc006a;border-color:rgba(0,0,0,0.2)}.btn-flickr:active:hover,.btn-flickr.active:hover,.open>.dropdown-toggle.btn-flickr:hover,.btn-flickr:active:focus,.btn-flickr.active:focus,.open>.dropdown-toggle.btn-flickr:focus,.btn-flickr:active.focus,.btn-flickr.active.focus,.open>.dropdown-toggle.btn-flickr.focus{color:#fff;background-color:#a80057;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-flickr:active,.btn-flickr.active,.open>.dropdown-toggle.btn-flickr{background-image:none}
|
||||||
|
.btn-flickr.disabled,.btn-flickr[disabled],fieldset[disabled] .btn-flickr,.btn-flickr.disabled:hover,.btn-flickr[disabled]:hover,fieldset[disabled] .btn-flickr:hover,.btn-flickr.disabled:focus,.btn-flickr[disabled]:focus,fieldset[disabled] .btn-flickr:focus,.btn-flickr.disabled.focus,.btn-flickr[disabled].focus,fieldset[disabled] .btn-flickr.focus,.btn-flickr.disabled:active,.btn-flickr[disabled]:active,fieldset[disabled] .btn-flickr:active,.btn-flickr.disabled.active,.btn-flickr[disabled].active,fieldset[disabled] .btn-flickr.active{background-color:#ff0084;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-flickr .badge{color:#ff0084;background-color:#fff}
|
||||||
|
.btn-foursquare{color:#fff;background-color:#f94877;border-color:rgba(0,0,0,0.2)}.btn-foursquare:focus,.btn-foursquare.focus{color:#fff;background-color:#f71752;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-foursquare:hover{color:#fff;background-color:#f71752;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-foursquare:active,.btn-foursquare.active,.open>.dropdown-toggle.btn-foursquare{color:#fff;background-color:#f71752;border-color:rgba(0,0,0,0.2)}.btn-foursquare:active:hover,.btn-foursquare.active:hover,.open>.dropdown-toggle.btn-foursquare:hover,.btn-foursquare:active:focus,.btn-foursquare.active:focus,.open>.dropdown-toggle.btn-foursquare:focus,.btn-foursquare:active.focus,.btn-foursquare.active.focus,.open>.dropdown-toggle.btn-foursquare.focus{color:#fff;background-color:#e30742;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-foursquare:active,.btn-foursquare.active,.open>.dropdown-toggle.btn-foursquare{background-image:none}
|
||||||
|
.btn-foursquare.disabled,.btn-foursquare[disabled],fieldset[disabled] .btn-foursquare,.btn-foursquare.disabled:hover,.btn-foursquare[disabled]:hover,fieldset[disabled] .btn-foursquare:hover,.btn-foursquare.disabled:focus,.btn-foursquare[disabled]:focus,fieldset[disabled] .btn-foursquare:focus,.btn-foursquare.disabled.focus,.btn-foursquare[disabled].focus,fieldset[disabled] .btn-foursquare.focus,.btn-foursquare.disabled:active,.btn-foursquare[disabled]:active,fieldset[disabled] .btn-foursquare:active,.btn-foursquare.disabled.active,.btn-foursquare[disabled].active,fieldset[disabled] .btn-foursquare.active{background-color:#f94877;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-foursquare .badge{color:#f94877;background-color:#fff}
|
||||||
|
.btn-github{color:#fff;background-color:#444;border-color:rgba(0,0,0,0.2)}.btn-github:focus,.btn-github.focus{color:#fff;background-color:#2b2b2b;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-github:hover{color:#fff;background-color:#2b2b2b;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-github:active,.btn-github.active,.open>.dropdown-toggle.btn-github{color:#fff;background-color:#2b2b2b;border-color:rgba(0,0,0,0.2)}.btn-github:active:hover,.btn-github.active:hover,.open>.dropdown-toggle.btn-github:hover,.btn-github:active:focus,.btn-github.active:focus,.open>.dropdown-toggle.btn-github:focus,.btn-github:active.focus,.btn-github.active.focus,.open>.dropdown-toggle.btn-github.focus{color:#fff;background-color:#191919;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-github:active,.btn-github.active,.open>.dropdown-toggle.btn-github{background-image:none}
|
||||||
|
.btn-github.disabled,.btn-github[disabled],fieldset[disabled] .btn-github,.btn-github.disabled:hover,.btn-github[disabled]:hover,fieldset[disabled] .btn-github:hover,.btn-github.disabled:focus,.btn-github[disabled]:focus,fieldset[disabled] .btn-github:focus,.btn-github.disabled.focus,.btn-github[disabled].focus,fieldset[disabled] .btn-github.focus,.btn-github.disabled:active,.btn-github[disabled]:active,fieldset[disabled] .btn-github:active,.btn-github.disabled.active,.btn-github[disabled].active,fieldset[disabled] .btn-github.active{background-color:#444;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-github .badge{color:#444;background-color:#fff}
|
||||||
|
.btn-google{color:#fff;background-color:#dd4b39;border-color:rgba(0,0,0,0.2)}.btn-google:focus,.btn-google.focus{color:#fff;background-color:#c23321;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-google:hover{color:#fff;background-color:#c23321;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-google:active,.btn-google.active,.open>.dropdown-toggle.btn-google{color:#fff;background-color:#c23321;border-color:rgba(0,0,0,0.2)}.btn-google:active:hover,.btn-google.active:hover,.open>.dropdown-toggle.btn-google:hover,.btn-google:active:focus,.btn-google.active:focus,.open>.dropdown-toggle.btn-google:focus,.btn-google:active.focus,.btn-google.active.focus,.open>.dropdown-toggle.btn-google.focus{color:#fff;background-color:#a32b1c;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-google:active,.btn-google.active,.open>.dropdown-toggle.btn-google{background-image:none}
|
||||||
|
.btn-google.disabled,.btn-google[disabled],fieldset[disabled] .btn-google,.btn-google.disabled:hover,.btn-google[disabled]:hover,fieldset[disabled] .btn-google:hover,.btn-google.disabled:focus,.btn-google[disabled]:focus,fieldset[disabled] .btn-google:focus,.btn-google.disabled.focus,.btn-google[disabled].focus,fieldset[disabled] .btn-google.focus,.btn-google.disabled:active,.btn-google[disabled]:active,fieldset[disabled] .btn-google:active,.btn-google.disabled.active,.btn-google[disabled].active,fieldset[disabled] .btn-google.active{background-color:#dd4b39;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-google .badge{color:#dd4b39;background-color:#fff}
|
||||||
|
.btn-instagram{color:#fff;background-color:#3f729b;border-color:rgba(0,0,0,0.2)}.btn-instagram:focus,.btn-instagram.focus{color:#fff;background-color:#305777;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-instagram:hover{color:#fff;background-color:#305777;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-instagram:active,.btn-instagram.active,.open>.dropdown-toggle.btn-instagram{color:#fff;background-color:#305777;border-color:rgba(0,0,0,0.2)}.btn-instagram:active:hover,.btn-instagram.active:hover,.open>.dropdown-toggle.btn-instagram:hover,.btn-instagram:active:focus,.btn-instagram.active:focus,.open>.dropdown-toggle.btn-instagram:focus,.btn-instagram:active.focus,.btn-instagram.active.focus,.open>.dropdown-toggle.btn-instagram.focus{color:#fff;background-color:#26455d;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-instagram:active,.btn-instagram.active,.open>.dropdown-toggle.btn-instagram{background-image:none}
|
||||||
|
.btn-instagram.disabled,.btn-instagram[disabled],fieldset[disabled] .btn-instagram,.btn-instagram.disabled:hover,.btn-instagram[disabled]:hover,fieldset[disabled] .btn-instagram:hover,.btn-instagram.disabled:focus,.btn-instagram[disabled]:focus,fieldset[disabled] .btn-instagram:focus,.btn-instagram.disabled.focus,.btn-instagram[disabled].focus,fieldset[disabled] .btn-instagram.focus,.btn-instagram.disabled:active,.btn-instagram[disabled]:active,fieldset[disabled] .btn-instagram:active,.btn-instagram.disabled.active,.btn-instagram[disabled].active,fieldset[disabled] .btn-instagram.active{background-color:#3f729b;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-instagram .badge{color:#3f729b;background-color:#fff}
|
||||||
|
.btn-linkedin{color:#fff;background-color:#007bb6;border-color:rgba(0,0,0,0.2)}.btn-linkedin:focus,.btn-linkedin.focus{color:#fff;background-color:#005983;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-linkedin:hover{color:#fff;background-color:#005983;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-linkedin:active,.btn-linkedin.active,.open>.dropdown-toggle.btn-linkedin{color:#fff;background-color:#005983;border-color:rgba(0,0,0,0.2)}.btn-linkedin:active:hover,.btn-linkedin.active:hover,.open>.dropdown-toggle.btn-linkedin:hover,.btn-linkedin:active:focus,.btn-linkedin.active:focus,.open>.dropdown-toggle.btn-linkedin:focus,.btn-linkedin:active.focus,.btn-linkedin.active.focus,.open>.dropdown-toggle.btn-linkedin.focus{color:#fff;background-color:#00405f;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-linkedin:active,.btn-linkedin.active,.open>.dropdown-toggle.btn-linkedin{background-image:none}
|
||||||
|
.btn-linkedin.disabled,.btn-linkedin[disabled],fieldset[disabled] .btn-linkedin,.btn-linkedin.disabled:hover,.btn-linkedin[disabled]:hover,fieldset[disabled] .btn-linkedin:hover,.btn-linkedin.disabled:focus,.btn-linkedin[disabled]:focus,fieldset[disabled] .btn-linkedin:focus,.btn-linkedin.disabled.focus,.btn-linkedin[disabled].focus,fieldset[disabled] .btn-linkedin.focus,.btn-linkedin.disabled:active,.btn-linkedin[disabled]:active,fieldset[disabled] .btn-linkedin:active,.btn-linkedin.disabled.active,.btn-linkedin[disabled].active,fieldset[disabled] .btn-linkedin.active{background-color:#007bb6;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-linkedin .badge{color:#007bb6;background-color:#fff}
|
||||||
|
.btn-microsoft{color:#fff;background-color:#2672ec;border-color:rgba(0,0,0,0.2)}.btn-microsoft:focus,.btn-microsoft.focus{color:#fff;background-color:#125acd;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-microsoft:hover{color:#fff;background-color:#125acd;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-microsoft:active,.btn-microsoft.active,.open>.dropdown-toggle.btn-microsoft{color:#fff;background-color:#125acd;border-color:rgba(0,0,0,0.2)}.btn-microsoft:active:hover,.btn-microsoft.active:hover,.open>.dropdown-toggle.btn-microsoft:hover,.btn-microsoft:active:focus,.btn-microsoft.active:focus,.open>.dropdown-toggle.btn-microsoft:focus,.btn-microsoft:active.focus,.btn-microsoft.active.focus,.open>.dropdown-toggle.btn-microsoft.focus{color:#fff;background-color:#0f4bac;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-microsoft:active,.btn-microsoft.active,.open>.dropdown-toggle.btn-microsoft{background-image:none}
|
||||||
|
.btn-microsoft.disabled,.btn-microsoft[disabled],fieldset[disabled] .btn-microsoft,.btn-microsoft.disabled:hover,.btn-microsoft[disabled]:hover,fieldset[disabled] .btn-microsoft:hover,.btn-microsoft.disabled:focus,.btn-microsoft[disabled]:focus,fieldset[disabled] .btn-microsoft:focus,.btn-microsoft.disabled.focus,.btn-microsoft[disabled].focus,fieldset[disabled] .btn-microsoft.focus,.btn-microsoft.disabled:active,.btn-microsoft[disabled]:active,fieldset[disabled] .btn-microsoft:active,.btn-microsoft.disabled.active,.btn-microsoft[disabled].active,fieldset[disabled] .btn-microsoft.active{background-color:#2672ec;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-microsoft .badge{color:#2672ec;background-color:#fff}
|
||||||
|
.btn-odnoklassniki{color:#fff;background-color:#f4731c;border-color:rgba(0,0,0,0.2)}.btn-odnoklassniki:focus,.btn-odnoklassniki.focus{color:#fff;background-color:#d35b0a;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-odnoklassniki:hover{color:#fff;background-color:#d35b0a;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-odnoklassniki:active,.btn-odnoklassniki.active,.open>.dropdown-toggle.btn-odnoklassniki{color:#fff;background-color:#d35b0a;border-color:rgba(0,0,0,0.2)}.btn-odnoklassniki:active:hover,.btn-odnoklassniki.active:hover,.open>.dropdown-toggle.btn-odnoklassniki:hover,.btn-odnoklassniki:active:focus,.btn-odnoklassniki.active:focus,.open>.dropdown-toggle.btn-odnoklassniki:focus,.btn-odnoklassniki:active.focus,.btn-odnoklassniki.active.focus,.open>.dropdown-toggle.btn-odnoklassniki.focus{color:#fff;background-color:#b14c09;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-odnoklassniki:active,.btn-odnoklassniki.active,.open>.dropdown-toggle.btn-odnoklassniki{background-image:none}
|
||||||
|
.btn-odnoklassniki.disabled,.btn-odnoklassniki[disabled],fieldset[disabled] .btn-odnoklassniki,.btn-odnoklassniki.disabled:hover,.btn-odnoklassniki[disabled]:hover,fieldset[disabled] .btn-odnoklassniki:hover,.btn-odnoklassniki.disabled:focus,.btn-odnoklassniki[disabled]:focus,fieldset[disabled] .btn-odnoklassniki:focus,.btn-odnoklassniki.disabled.focus,.btn-odnoklassniki[disabled].focus,fieldset[disabled] .btn-odnoklassniki.focus,.btn-odnoklassniki.disabled:active,.btn-odnoklassniki[disabled]:active,fieldset[disabled] .btn-odnoklassniki:active,.btn-odnoklassniki.disabled.active,.btn-odnoklassniki[disabled].active,fieldset[disabled] .btn-odnoklassniki.active{background-color:#f4731c;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-odnoklassniki .badge{color:#f4731c;background-color:#fff}
|
||||||
|
.btn-openid{color:#fff;background-color:#f7931e;border-color:rgba(0,0,0,0.2)}.btn-openid:focus,.btn-openid.focus{color:#fff;background-color:#da7908;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-openid:hover{color:#fff;background-color:#da7908;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-openid:active,.btn-openid.active,.open>.dropdown-toggle.btn-openid{color:#fff;background-color:#da7908;border-color:rgba(0,0,0,0.2)}.btn-openid:active:hover,.btn-openid.active:hover,.open>.dropdown-toggle.btn-openid:hover,.btn-openid:active:focus,.btn-openid.active:focus,.open>.dropdown-toggle.btn-openid:focus,.btn-openid:active.focus,.btn-openid.active.focus,.open>.dropdown-toggle.btn-openid.focus{color:#fff;background-color:#b86607;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-openid:active,.btn-openid.active,.open>.dropdown-toggle.btn-openid{background-image:none}
|
||||||
|
.btn-openid.disabled,.btn-openid[disabled],fieldset[disabled] .btn-openid,.btn-openid.disabled:hover,.btn-openid[disabled]:hover,fieldset[disabled] .btn-openid:hover,.btn-openid.disabled:focus,.btn-openid[disabled]:focus,fieldset[disabled] .btn-openid:focus,.btn-openid.disabled.focus,.btn-openid[disabled].focus,fieldset[disabled] .btn-openid.focus,.btn-openid.disabled:active,.btn-openid[disabled]:active,fieldset[disabled] .btn-openid:active,.btn-openid.disabled.active,.btn-openid[disabled].active,fieldset[disabled] .btn-openid.active{background-color:#f7931e;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-openid .badge{color:#f7931e;background-color:#fff}
|
||||||
|
.btn-pinterest{color:#fff;background-color:#cb2027;border-color:rgba(0,0,0,0.2)}.btn-pinterest:focus,.btn-pinterest.focus{color:#fff;background-color:#9f191f;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-pinterest:hover{color:#fff;background-color:#9f191f;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-pinterest:active,.btn-pinterest.active,.open>.dropdown-toggle.btn-pinterest{color:#fff;background-color:#9f191f;border-color:rgba(0,0,0,0.2)}.btn-pinterest:active:hover,.btn-pinterest.active:hover,.open>.dropdown-toggle.btn-pinterest:hover,.btn-pinterest:active:focus,.btn-pinterest.active:focus,.open>.dropdown-toggle.btn-pinterest:focus,.btn-pinterest:active.focus,.btn-pinterest.active.focus,.open>.dropdown-toggle.btn-pinterest.focus{color:#fff;background-color:#801419;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-pinterest:active,.btn-pinterest.active,.open>.dropdown-toggle.btn-pinterest{background-image:none}
|
||||||
|
.btn-pinterest.disabled,.btn-pinterest[disabled],fieldset[disabled] .btn-pinterest,.btn-pinterest.disabled:hover,.btn-pinterest[disabled]:hover,fieldset[disabled] .btn-pinterest:hover,.btn-pinterest.disabled:focus,.btn-pinterest[disabled]:focus,fieldset[disabled] .btn-pinterest:focus,.btn-pinterest.disabled.focus,.btn-pinterest[disabled].focus,fieldset[disabled] .btn-pinterest.focus,.btn-pinterest.disabled:active,.btn-pinterest[disabled]:active,fieldset[disabled] .btn-pinterest:active,.btn-pinterest.disabled.active,.btn-pinterest[disabled].active,fieldset[disabled] .btn-pinterest.active{background-color:#cb2027;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-pinterest .badge{color:#cb2027;background-color:#fff}
|
||||||
|
.btn-reddit{color:#000;background-color:#eff7ff;border-color:rgba(0,0,0,0.2)}.btn-reddit:focus,.btn-reddit.focus{color:#000;background-color:#bcddff;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-reddit:hover{color:#000;background-color:#bcddff;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-reddit:active,.btn-reddit.active,.open>.dropdown-toggle.btn-reddit{color:#000;background-color:#bcddff;border-color:rgba(0,0,0,0.2)}.btn-reddit:active:hover,.btn-reddit.active:hover,.open>.dropdown-toggle.btn-reddit:hover,.btn-reddit:active:focus,.btn-reddit.active:focus,.open>.dropdown-toggle.btn-reddit:focus,.btn-reddit:active.focus,.btn-reddit.active.focus,.open>.dropdown-toggle.btn-reddit.focus{color:#000;background-color:#98ccff;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-reddit:active,.btn-reddit.active,.open>.dropdown-toggle.btn-reddit{background-image:none}
|
||||||
|
.btn-reddit.disabled,.btn-reddit[disabled],fieldset[disabled] .btn-reddit,.btn-reddit.disabled:hover,.btn-reddit[disabled]:hover,fieldset[disabled] .btn-reddit:hover,.btn-reddit.disabled:focus,.btn-reddit[disabled]:focus,fieldset[disabled] .btn-reddit:focus,.btn-reddit.disabled.focus,.btn-reddit[disabled].focus,fieldset[disabled] .btn-reddit.focus,.btn-reddit.disabled:active,.btn-reddit[disabled]:active,fieldset[disabled] .btn-reddit:active,.btn-reddit.disabled.active,.btn-reddit[disabled].active,fieldset[disabled] .btn-reddit.active{background-color:#eff7ff;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-reddit .badge{color:#eff7ff;background-color:#000}
|
||||||
|
.btn-soundcloud{color:#fff;background-color:#f50;border-color:rgba(0,0,0,0.2)}.btn-soundcloud:focus,.btn-soundcloud.focus{color:#fff;background-color:#c40;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-soundcloud:hover{color:#fff;background-color:#c40;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-soundcloud:active,.btn-soundcloud.active,.open>.dropdown-toggle.btn-soundcloud{color:#fff;background-color:#c40;border-color:rgba(0,0,0,0.2)}.btn-soundcloud:active:hover,.btn-soundcloud.active:hover,.open>.dropdown-toggle.btn-soundcloud:hover,.btn-soundcloud:active:focus,.btn-soundcloud.active:focus,.open>.dropdown-toggle.btn-soundcloud:focus,.btn-soundcloud:active.focus,.btn-soundcloud.active.focus,.open>.dropdown-toggle.btn-soundcloud.focus{color:#fff;background-color:#a83800;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-soundcloud:active,.btn-soundcloud.active,.open>.dropdown-toggle.btn-soundcloud{background-image:none}
|
||||||
|
.btn-soundcloud.disabled,.btn-soundcloud[disabled],fieldset[disabled] .btn-soundcloud,.btn-soundcloud.disabled:hover,.btn-soundcloud[disabled]:hover,fieldset[disabled] .btn-soundcloud:hover,.btn-soundcloud.disabled:focus,.btn-soundcloud[disabled]:focus,fieldset[disabled] .btn-soundcloud:focus,.btn-soundcloud.disabled.focus,.btn-soundcloud[disabled].focus,fieldset[disabled] .btn-soundcloud.focus,.btn-soundcloud.disabled:active,.btn-soundcloud[disabled]:active,fieldset[disabled] .btn-soundcloud:active,.btn-soundcloud.disabled.active,.btn-soundcloud[disabled].active,fieldset[disabled] .btn-soundcloud.active{background-color:#f50;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-soundcloud .badge{color:#f50;background-color:#fff}
|
||||||
|
.btn-tumblr{color:#fff;background-color:#2c4762;border-color:rgba(0,0,0,0.2)}.btn-tumblr:focus,.btn-tumblr.focus{color:#fff;background-color:#1c2d3f;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-tumblr:hover{color:#fff;background-color:#1c2d3f;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-tumblr:active,.btn-tumblr.active,.open>.dropdown-toggle.btn-tumblr{color:#fff;background-color:#1c2d3f;border-color:rgba(0,0,0,0.2)}.btn-tumblr:active:hover,.btn-tumblr.active:hover,.open>.dropdown-toggle.btn-tumblr:hover,.btn-tumblr:active:focus,.btn-tumblr.active:focus,.open>.dropdown-toggle.btn-tumblr:focus,.btn-tumblr:active.focus,.btn-tumblr.active.focus,.open>.dropdown-toggle.btn-tumblr.focus{color:#fff;background-color:#111c26;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-tumblr:active,.btn-tumblr.active,.open>.dropdown-toggle.btn-tumblr{background-image:none}
|
||||||
|
.btn-tumblr.disabled,.btn-tumblr[disabled],fieldset[disabled] .btn-tumblr,.btn-tumblr.disabled:hover,.btn-tumblr[disabled]:hover,fieldset[disabled] .btn-tumblr:hover,.btn-tumblr.disabled:focus,.btn-tumblr[disabled]:focus,fieldset[disabled] .btn-tumblr:focus,.btn-tumblr.disabled.focus,.btn-tumblr[disabled].focus,fieldset[disabled] .btn-tumblr.focus,.btn-tumblr.disabled:active,.btn-tumblr[disabled]:active,fieldset[disabled] .btn-tumblr:active,.btn-tumblr.disabled.active,.btn-tumblr[disabled].active,fieldset[disabled] .btn-tumblr.active{background-color:#2c4762;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-tumblr .badge{color:#2c4762;background-color:#fff}
|
||||||
|
.btn-twitter{color:#fff;background-color:#55acee;border-color:rgba(0,0,0,0.2)}.btn-twitter:focus,.btn-twitter.focus{color:#fff;background-color:#2795e9;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-twitter:hover{color:#fff;background-color:#2795e9;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-twitter:active,.btn-twitter.active,.open>.dropdown-toggle.btn-twitter{color:#fff;background-color:#2795e9;border-color:rgba(0,0,0,0.2)}.btn-twitter:active:hover,.btn-twitter.active:hover,.open>.dropdown-toggle.btn-twitter:hover,.btn-twitter:active:focus,.btn-twitter.active:focus,.open>.dropdown-toggle.btn-twitter:focus,.btn-twitter:active.focus,.btn-twitter.active.focus,.open>.dropdown-toggle.btn-twitter.focus{color:#fff;background-color:#1583d7;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-twitter:active,.btn-twitter.active,.open>.dropdown-toggle.btn-twitter{background-image:none}
|
||||||
|
.btn-twitter.disabled,.btn-twitter[disabled],fieldset[disabled] .btn-twitter,.btn-twitter.disabled:hover,.btn-twitter[disabled]:hover,fieldset[disabled] .btn-twitter:hover,.btn-twitter.disabled:focus,.btn-twitter[disabled]:focus,fieldset[disabled] .btn-twitter:focus,.btn-twitter.disabled.focus,.btn-twitter[disabled].focus,fieldset[disabled] .btn-twitter.focus,.btn-twitter.disabled:active,.btn-twitter[disabled]:active,fieldset[disabled] .btn-twitter:active,.btn-twitter.disabled.active,.btn-twitter[disabled].active,fieldset[disabled] .btn-twitter.active{background-color:#55acee;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-twitter .badge{color:#55acee;background-color:#fff}
|
||||||
|
.btn-vimeo{color:#fff;background-color:#1ab7ea;border-color:rgba(0,0,0,0.2)}.btn-vimeo:focus,.btn-vimeo.focus{color:#fff;background-color:#1295bf;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-vimeo:hover{color:#fff;background-color:#1295bf;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-vimeo:active,.btn-vimeo.active,.open>.dropdown-toggle.btn-vimeo{color:#fff;background-color:#1295bf;border-color:rgba(0,0,0,0.2)}.btn-vimeo:active:hover,.btn-vimeo.active:hover,.open>.dropdown-toggle.btn-vimeo:hover,.btn-vimeo:active:focus,.btn-vimeo.active:focus,.open>.dropdown-toggle.btn-vimeo:focus,.btn-vimeo:active.focus,.btn-vimeo.active.focus,.open>.dropdown-toggle.btn-vimeo.focus{color:#fff;background-color:#0f7b9f;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-vimeo:active,.btn-vimeo.active,.open>.dropdown-toggle.btn-vimeo{background-image:none}
|
||||||
|
.btn-vimeo.disabled,.btn-vimeo[disabled],fieldset[disabled] .btn-vimeo,.btn-vimeo.disabled:hover,.btn-vimeo[disabled]:hover,fieldset[disabled] .btn-vimeo:hover,.btn-vimeo.disabled:focus,.btn-vimeo[disabled]:focus,fieldset[disabled] .btn-vimeo:focus,.btn-vimeo.disabled.focus,.btn-vimeo[disabled].focus,fieldset[disabled] .btn-vimeo.focus,.btn-vimeo.disabled:active,.btn-vimeo[disabled]:active,fieldset[disabled] .btn-vimeo:active,.btn-vimeo.disabled.active,.btn-vimeo[disabled].active,fieldset[disabled] .btn-vimeo.active{background-color:#1ab7ea;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-vimeo .badge{color:#1ab7ea;background-color:#fff}
|
||||||
|
.btn-vk{color:#fff;background-color:#587ea3;border-color:rgba(0,0,0,0.2)}.btn-vk:focus,.btn-vk.focus{color:#fff;background-color:#466482;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-vk:hover{color:#fff;background-color:#466482;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-vk:active,.btn-vk.active,.open>.dropdown-toggle.btn-vk{color:#fff;background-color:#466482;border-color:rgba(0,0,0,0.2)}.btn-vk:active:hover,.btn-vk.active:hover,.open>.dropdown-toggle.btn-vk:hover,.btn-vk:active:focus,.btn-vk.active:focus,.open>.dropdown-toggle.btn-vk:focus,.btn-vk:active.focus,.btn-vk.active.focus,.open>.dropdown-toggle.btn-vk.focus{color:#fff;background-color:#3a526b;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-vk:active,.btn-vk.active,.open>.dropdown-toggle.btn-vk{background-image:none}
|
||||||
|
.btn-vk.disabled,.btn-vk[disabled],fieldset[disabled] .btn-vk,.btn-vk.disabled:hover,.btn-vk[disabled]:hover,fieldset[disabled] .btn-vk:hover,.btn-vk.disabled:focus,.btn-vk[disabled]:focus,fieldset[disabled] .btn-vk:focus,.btn-vk.disabled.focus,.btn-vk[disabled].focus,fieldset[disabled] .btn-vk.focus,.btn-vk.disabled:active,.btn-vk[disabled]:active,fieldset[disabled] .btn-vk:active,.btn-vk.disabled.active,.btn-vk[disabled].active,fieldset[disabled] .btn-vk.active{background-color:#587ea3;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-vk .badge{color:#587ea3;background-color:#fff}
|
||||||
|
.btn-yahoo{color:#fff;background-color:#720e9e;border-color:rgba(0,0,0,0.2)}.btn-yahoo:focus,.btn-yahoo.focus{color:#fff;background-color:#500a6f;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-yahoo:hover{color:#fff;background-color:#500a6f;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-yahoo:active,.btn-yahoo.active,.open>.dropdown-toggle.btn-yahoo{color:#fff;background-color:#500a6f;border-color:rgba(0,0,0,0.2)}.btn-yahoo:active:hover,.btn-yahoo.active:hover,.open>.dropdown-toggle.btn-yahoo:hover,.btn-yahoo:active:focus,.btn-yahoo.active:focus,.open>.dropdown-toggle.btn-yahoo:focus,.btn-yahoo:active.focus,.btn-yahoo.active.focus,.open>.dropdown-toggle.btn-yahoo.focus{color:#fff;background-color:#39074e;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-yahoo:active,.btn-yahoo.active,.open>.dropdown-toggle.btn-yahoo{background-image:none}
|
||||||
|
.btn-yahoo.disabled,.btn-yahoo[disabled],fieldset[disabled] .btn-yahoo,.btn-yahoo.disabled:hover,.btn-yahoo[disabled]:hover,fieldset[disabled] .btn-yahoo:hover,.btn-yahoo.disabled:focus,.btn-yahoo[disabled]:focus,fieldset[disabled] .btn-yahoo:focus,.btn-yahoo.disabled.focus,.btn-yahoo[disabled].focus,fieldset[disabled] .btn-yahoo.focus,.btn-yahoo.disabled:active,.btn-yahoo[disabled]:active,fieldset[disabled] .btn-yahoo:active,.btn-yahoo.disabled.active,.btn-yahoo[disabled].active,fieldset[disabled] .btn-yahoo.active{background-color:#720e9e;border-color:rgba(0,0,0,0.2)}
|
||||||
|
.btn-yahoo .badge{color:#720e9e;background-color:#fff}
|
||||||
476
blog.bryanroessler.com/css/bootstrap-theme.css
vendored
Normal file
@@ -0,0 +1,476 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap v3.3.2 (http://getbootstrap.com)
|
||||||
|
* Copyright 2011-2015 Twitter, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
|
*/
|
||||||
|
|
||||||
|
.btn-default,
|
||||||
|
.btn-primary,
|
||||||
|
.btn-success,
|
||||||
|
.btn-info,
|
||||||
|
.btn-warning,
|
||||||
|
.btn-danger {
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
|
||||||
|
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||||
|
}
|
||||||
|
.btn-default:active,
|
||||||
|
.btn-primary:active,
|
||||||
|
.btn-success:active,
|
||||||
|
.btn-info:active,
|
||||||
|
.btn-warning:active,
|
||||||
|
.btn-danger:active,
|
||||||
|
.btn-default.active,
|
||||||
|
.btn-primary.active,
|
||||||
|
.btn-success.active,
|
||||||
|
.btn-info.active,
|
||||||
|
.btn-warning.active,
|
||||||
|
.btn-danger.active {
|
||||||
|
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
||||||
|
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
||||||
|
}
|
||||||
|
.btn-default .badge,
|
||||||
|
.btn-primary .badge,
|
||||||
|
.btn-success .badge,
|
||||||
|
.btn-info .badge,
|
||||||
|
.btn-warning .badge,
|
||||||
|
.btn-danger .badge {
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
.btn:active,
|
||||||
|
.btn.active {
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-default {
|
||||||
|
text-shadow: 0 1px 0 #fff;
|
||||||
|
background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0));
|
||||||
|
background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #dbdbdb;
|
||||||
|
border-color: #ccc;
|
||||||
|
}
|
||||||
|
.btn-default:hover,
|
||||||
|
.btn-default:focus {
|
||||||
|
background-color: #e0e0e0;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-default:active,
|
||||||
|
.btn-default.active {
|
||||||
|
background-color: #e0e0e0;
|
||||||
|
border-color: #dbdbdb;
|
||||||
|
}
|
||||||
|
.btn-default.disabled,
|
||||||
|
.btn-default:disabled,
|
||||||
|
.btn-default[disabled] {
|
||||||
|
background-color: #e0e0e0;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-primary {
|
||||||
|
background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88));
|
||||||
|
background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #245580;
|
||||||
|
}
|
||||||
|
.btn-primary:hover,
|
||||||
|
.btn-primary:focus {
|
||||||
|
background-color: #265a88;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-primary:active,
|
||||||
|
.btn-primary.active {
|
||||||
|
background-color: #265a88;
|
||||||
|
border-color: #245580;
|
||||||
|
}
|
||||||
|
.btn-primary.disabled,
|
||||||
|
.btn-primary:disabled,
|
||||||
|
.btn-primary[disabled] {
|
||||||
|
background-color: #265a88;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-success {
|
||||||
|
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641));
|
||||||
|
background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #3e8f3e;
|
||||||
|
}
|
||||||
|
.btn-success:hover,
|
||||||
|
.btn-success:focus {
|
||||||
|
background-color: #419641;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-success:active,
|
||||||
|
.btn-success.active {
|
||||||
|
background-color: #419641;
|
||||||
|
border-color: #3e8f3e;
|
||||||
|
}
|
||||||
|
.btn-success.disabled,
|
||||||
|
.btn-success:disabled,
|
||||||
|
.btn-success[disabled] {
|
||||||
|
background-color: #419641;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-info {
|
||||||
|
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2));
|
||||||
|
background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #28a4c9;
|
||||||
|
}
|
||||||
|
.btn-info:hover,
|
||||||
|
.btn-info:focus {
|
||||||
|
background-color: #2aabd2;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-info:active,
|
||||||
|
.btn-info.active {
|
||||||
|
background-color: #2aabd2;
|
||||||
|
border-color: #28a4c9;
|
||||||
|
}
|
||||||
|
.btn-info.disabled,
|
||||||
|
.btn-info:disabled,
|
||||||
|
.btn-info[disabled] {
|
||||||
|
background-color: #2aabd2;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-warning {
|
||||||
|
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316));
|
||||||
|
background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #e38d13;
|
||||||
|
}
|
||||||
|
.btn-warning:hover,
|
||||||
|
.btn-warning:focus {
|
||||||
|
background-color: #eb9316;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-warning:active,
|
||||||
|
.btn-warning.active {
|
||||||
|
background-color: #eb9316;
|
||||||
|
border-color: #e38d13;
|
||||||
|
}
|
||||||
|
.btn-warning.disabled,
|
||||||
|
.btn-warning:disabled,
|
||||||
|
.btn-warning[disabled] {
|
||||||
|
background-color: #eb9316;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-danger {
|
||||||
|
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a));
|
||||||
|
background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #b92c28;
|
||||||
|
}
|
||||||
|
.btn-danger:hover,
|
||||||
|
.btn-danger:focus {
|
||||||
|
background-color: #c12e2a;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-danger:active,
|
||||||
|
.btn-danger.active {
|
||||||
|
background-color: #c12e2a;
|
||||||
|
border-color: #b92c28;
|
||||||
|
}
|
||||||
|
.btn-danger.disabled,
|
||||||
|
.btn-danger:disabled,
|
||||||
|
.btn-danger[disabled] {
|
||||||
|
background-color: #c12e2a;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.thumbnail,
|
||||||
|
.img-thumbnail {
|
||||||
|
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||||
|
}
|
||||||
|
.dropdown-menu > li > a:hover,
|
||||||
|
.dropdown-menu > li > a:focus {
|
||||||
|
background-color: #e8e8e8;
|
||||||
|
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
|
||||||
|
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.dropdown-menu > .active > a,
|
||||||
|
.dropdown-menu > .active > a:hover,
|
||||||
|
.dropdown-menu > .active > a:focus {
|
||||||
|
background-color: #2e6da4;
|
||||||
|
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||||
|
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.navbar-default {
|
||||||
|
background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8));
|
||||||
|
background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-radius: 4px;
|
||||||
|
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||||
|
}
|
||||||
|
.navbar-default .navbar-nav > .open > a,
|
||||||
|
.navbar-default .navbar-nav > .active > a {
|
||||||
|
background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2));
|
||||||
|
background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
-webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
|
||||||
|
box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
|
||||||
|
}
|
||||||
|
.navbar-brand,
|
||||||
|
.navbar-nav > li > a {
|
||||||
|
text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
|
||||||
|
}
|
||||||
|
.navbar-inverse {
|
||||||
|
background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222));
|
||||||
|
background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.navbar-inverse .navbar-nav > .open > a,
|
||||||
|
.navbar-inverse .navbar-nav > .active > a {
|
||||||
|
background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f));
|
||||||
|
background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
-webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
|
||||||
|
box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
|
||||||
|
}
|
||||||
|
.navbar-inverse .navbar-brand,
|
||||||
|
.navbar-inverse .navbar-nav > li > a {
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
|
||||||
|
}
|
||||||
|
.navbar-static-top,
|
||||||
|
.navbar-fixed-top,
|
||||||
|
.navbar-fixed-bottom {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.navbar .navbar-nav .open .dropdown-menu > .active > a,
|
||||||
|
.navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
|
||||||
|
.navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
|
||||||
|
color: #fff;
|
||||||
|
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||||
|
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.alert {
|
||||||
|
text-shadow: 0 1px 0 rgba(255, 255, 255, .2);
|
||||||
|
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
|
||||||
|
}
|
||||||
|
.alert-success {
|
||||||
|
background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc));
|
||||||
|
background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #b2dba1;
|
||||||
|
}
|
||||||
|
.alert-info {
|
||||||
|
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0));
|
||||||
|
background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #9acfea;
|
||||||
|
}
|
||||||
|
.alert-warning {
|
||||||
|
background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0));
|
||||||
|
background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #f5e79e;
|
||||||
|
}
|
||||||
|
.alert-danger {
|
||||||
|
background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3));
|
||||||
|
background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #dca7a7;
|
||||||
|
}
|
||||||
|
.progress {
|
||||||
|
background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5));
|
||||||
|
background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar {
|
||||||
|
background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090));
|
||||||
|
background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar-success {
|
||||||
|
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44));
|
||||||
|
background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar-info {
|
||||||
|
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5));
|
||||||
|
background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar-warning {
|
||||||
|
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f));
|
||||||
|
background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar-danger {
|
||||||
|
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c));
|
||||||
|
background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar-striped {
|
||||||
|
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
|
}
|
||||||
|
.list-group {
|
||||||
|
border-radius: 4px;
|
||||||
|
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||||
|
}
|
||||||
|
.list-group-item.active,
|
||||||
|
.list-group-item.active:hover,
|
||||||
|
.list-group-item.active:focus {
|
||||||
|
text-shadow: 0 -1px 0 #286090;
|
||||||
|
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a));
|
||||||
|
background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #2b669a;
|
||||||
|
}
|
||||||
|
.list-group-item.active .badge,
|
||||||
|
.list-group-item.active:hover .badge,
|
||||||
|
.list-group-item.active:focus .badge {
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
.panel {
|
||||||
|
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
|
||||||
|
}
|
||||||
|
.panel-default > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
|
||||||
|
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.panel-primary > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||||
|
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.panel-success > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6));
|
||||||
|
background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.panel-info > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3));
|
||||||
|
background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.panel-warning > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc));
|
||||||
|
background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.panel-danger > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc));
|
||||||
|
background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.well {
|
||||||
|
background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5));
|
||||||
|
background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #dcdcdc;
|
||||||
|
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
||||||
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
||||||
|
}
|
||||||
|
/*# sourceMappingURL=bootstrap-theme.css.map */
|
||||||
1
blog.bryanroessler.com/css/bootstrap-theme.css.map
Normal file
5
blog.bryanroessler.com/css/bootstrap-theme.min.css
vendored
Normal file
6566
blog.bryanroessler.com/css/bootstrap.css
vendored
Normal file
1
blog.bryanroessler.com/css/bootstrap.css.map
Normal file
5
blog.bryanroessler.com/css/bootstrap.min.css
vendored
Normal file
13
blog.bryanroessler.com/css/main-minimal.css
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
.main-content {
|
||||||
|
padding-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer.footer-min {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
padding: 3px;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border-top: 1px solid #eeeeee;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
788
blog.bryanroessler.com/css/main.css
Normal file
@@ -0,0 +1,788 @@
|
|||||||
|
---
|
||||||
|
layout: null
|
||||||
|
---
|
||||||
|
|
||||||
|
@import url("pygment_highlights.css");
|
||||||
|
|
||||||
|
/* --- General --- */
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: 'Lora', 'Times New Roman', serif;
|
||||||
|
font-size: 18px;
|
||||||
|
color: #404040;
|
||||||
|
position: relative;
|
||||||
|
background-color: {{ site.page-col }};
|
||||||
|
{% if site.page-img %}
|
||||||
|
background-image: url({{ site.page-img | relative_url }});
|
||||||
|
background-attachment: fixed;
|
||||||
|
{% endif %}
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
line-height: 1.5;
|
||||||
|
margin: 30px 0;
|
||||||
|
}
|
||||||
|
h1,h2,h3,h4,h5,h6 {
|
||||||
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: {{ site.link-col }};
|
||||||
|
}
|
||||||
|
a:hover,
|
||||||
|
a:focus {
|
||||||
|
color: {{ site.hover-col }};
|
||||||
|
}
|
||||||
|
blockquote {
|
||||||
|
color: #808080;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
blockquote p:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
hr.small {
|
||||||
|
max-width: 100px;
|
||||||
|
margin: 15px auto;
|
||||||
|
border-width: 4px;
|
||||||
|
border-color: inherit;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-content {
|
||||||
|
padding-top: 80px;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.main-content {
|
||||||
|
padding-top: 130px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-explain-area {
|
||||||
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
padding: 15px inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hideme {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-moz-selection {
|
||||||
|
color: white;
|
||||||
|
text-shadow: none;
|
||||||
|
background-color: {{ site.hover-col }};
|
||||||
|
}
|
||||||
|
::selection {
|
||||||
|
color: white;
|
||||||
|
text-shadow: none;
|
||||||
|
background-color: {{ site.hover-col }};
|
||||||
|
}
|
||||||
|
img::selection {
|
||||||
|
color: white;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
img::-moz-selection {
|
||||||
|
color: white;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.disqus-comments {
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.disqus-comments {
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.linked-section {
|
||||||
|
padding-top: 60px;
|
||||||
|
margin-top: -25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Navbar --- */
|
||||||
|
|
||||||
|
.navbar-custom {
|
||||||
|
background-color: {{ site.navbar-col }};
|
||||||
|
border-bottom: 1px solid #EAEAEA;
|
||||||
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
{% if site.navbar-img %}
|
||||||
|
background-image: url({{ site.navbar-img | relative_url }});
|
||||||
|
background-attachment: fixed;
|
||||||
|
{% endif %}
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-custom .nav li a {
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 12px;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-custom .navbar-brand,
|
||||||
|
.navbar-custom .nav li a {
|
||||||
|
font-weight: 800;
|
||||||
|
color: {{ site.navbar-text-col }};
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-custom .navbar-brand:hover,
|
||||||
|
.navbar-custom .navbar-brand:focus ,
|
||||||
|
.navbar-custom .nav li a:hover,
|
||||||
|
.navbar-custom .nav li a:focus {
|
||||||
|
color: {{ site.hover-col }};
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-custom .navbar-brand-logo {
|
||||||
|
padding-top: 0;
|
||||||
|
-webkit-transition: padding .5s ease-in-out;
|
||||||
|
-moz-transition: padding .5s ease-in-out;
|
||||||
|
transition: padding .5s ease-in-out;
|
||||||
|
}
|
||||||
|
.navbar-custom .navbar-brand-logo img {
|
||||||
|
height: 50px;
|
||||||
|
-webkit-transition: height .5s ease-in-out;
|
||||||
|
-moz-transition: height .5s ease-in-out;
|
||||||
|
transition: height .5s ease-in-out;
|
||||||
|
}
|
||||||
|
.navbar-custom.top-nav-short .navbar-brand-logo {
|
||||||
|
padding-top: 5px;
|
||||||
|
}
|
||||||
|
.navbar-custom.top-nav-short .navbar-brand-logo img {
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.navbar-custom {
|
||||||
|
padding: 20px 0;
|
||||||
|
-webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
|
||||||
|
-moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
|
||||||
|
transition: background .5s ease-in-out,padding .5s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-custom.top-nav-short {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-custom .avatar-container {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
width: 50px;
|
||||||
|
margin-top: -25px;
|
||||||
|
}
|
||||||
|
.navbar-custom .avatar-container .avatar-img-border {
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin-left: -50%;
|
||||||
|
display: inline-block;
|
||||||
|
box-shadow: 0 0 8px rgba(0, 0, 0, .8);
|
||||||
|
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .8);
|
||||||
|
-moz-box-shadow: 0 0 8px rgba(0, 0, 0, .8);
|
||||||
|
}
|
||||||
|
.navbar-custom .avatar-container .avatar-img {
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-custom.top-nav-expanded .avatar-container {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.navbar-custom .avatar-container {
|
||||||
|
width: 100px;
|
||||||
|
margin-top: -50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-custom .avatar-container .avatar-img-border {
|
||||||
|
width: 100%;
|
||||||
|
box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
|
||||||
|
-webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
|
||||||
|
-moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-custom .avatar-container .avatar-img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Multi-level navigation links */
|
||||||
|
.navbar-custom .nav .navlinks-container {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.navbar-custom .nav .navlinks-parent:after {
|
||||||
|
content: " \25BC";
|
||||||
|
}
|
||||||
|
.navbar-custom .nav .navlinks-children {
|
||||||
|
width: 100%;
|
||||||
|
display: none;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
.navbar-custom .nav .navlinks-container .navlinks-children a {
|
||||||
|
display: block;
|
||||||
|
padding: 10px;
|
||||||
|
padding-left: 30px;
|
||||||
|
background-color: {{ site.navbar-children-col }};
|
||||||
|
text-decoration: none !important;
|
||||||
|
border-width: 0 1px 1px 1px;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 767px) {
|
||||||
|
.navbar-custom .nav .navlinks-container.show-children {
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
.navbar-custom .nav .navlinks-container.show-children .navlinks-children {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.navbar-custom .nav .navlinks-container {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.navbar-custom .nav .navlinks-container:hover {
|
||||||
|
background: rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
.navbar-custom .nav .navlinks-container:hover .navlinks-children {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.navbar-custom .nav .navlinks-children {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
.navbar-custom .nav .navlinks-container .navlinks-children a {
|
||||||
|
padding-left: 10px;
|
||||||
|
border: 1px solid #eaeaea;
|
||||||
|
border-width: 0 1px 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Footer --- */
|
||||||
|
|
||||||
|
footer {
|
||||||
|
padding: 30px 0;
|
||||||
|
border-top: 1px #EAEAEA solid;
|
||||||
|
margin-top: 50px;
|
||||||
|
font-size: 14px;
|
||||||
|
background-color: {{ site.footer-col }};
|
||||||
|
{% if site.footer-img %}
|
||||||
|
background-image: url({{ site.footer-img | relative_url }});
|
||||||
|
background-attachment: fixed;
|
||||||
|
{% endif %}
|
||||||
|
}
|
||||||
|
|
||||||
|
footer p.text-muted {
|
||||||
|
color: {{ site.footer-text-col }};
|
||||||
|
}
|
||||||
|
|
||||||
|
footer a {
|
||||||
|
color: {{site.footer-link-col}};
|
||||||
|
}
|
||||||
|
|
||||||
|
footer .list-inline {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
footer .copyright {
|
||||||
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
footer .theme-by {
|
||||||
|
text-align: center;
|
||||||
|
margin: 10px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
footer {
|
||||||
|
padding: 50px 0;
|
||||||
|
}
|
||||||
|
footer .footer-links {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
footer .copyright {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Post preview --- */
|
||||||
|
|
||||||
|
.post-preview {
|
||||||
|
padding: 20px 0;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.post-preview {
|
||||||
|
padding: 35px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-preview:last-child {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-preview a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #404040;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-preview a:focus,
|
||||||
|
.post-preview a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
color: {{ site.hover-col }};
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-preview .post-title {
|
||||||
|
font-size: 30px;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.post-preview .post-subtitle {
|
||||||
|
margin: 0;
|
||||||
|
font-weight: 300;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.post-preview .post-meta,
|
||||||
|
.post-heading .post-meta {
|
||||||
|
color: #808080;
|
||||||
|
font-size: 18px;
|
||||||
|
font-style: italic;
|
||||||
|
margin: 0 0 10px;
|
||||||
|
}
|
||||||
|
.post-preview .post-entry {
|
||||||
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
.post-entry-container {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.post-entry {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.post-image {
|
||||||
|
float: right;
|
||||||
|
height: 192px;
|
||||||
|
width: 192px;
|
||||||
|
margin-top: -35px;
|
||||||
|
filter: grayscale(90%);
|
||||||
|
}
|
||||||
|
.post-image:hover {
|
||||||
|
filter: grayscale(0%);
|
||||||
|
}
|
||||||
|
.post-image img {
|
||||||
|
border-radius: 100px;
|
||||||
|
height: 192px;
|
||||||
|
width: 192px;
|
||||||
|
}
|
||||||
|
.post-preview .post-read-more {
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.post-preview .post-title {
|
||||||
|
font-size: 36px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Tags --- */
|
||||||
|
|
||||||
|
.blog-tags {
|
||||||
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
color: #999;
|
||||||
|
font-size: 15px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-tags a {
|
||||||
|
color: {{ site.link-col }};
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 0px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-tags a:hover {
|
||||||
|
border-radius: 2px;
|
||||||
|
color: {{ site.hover-col }};
|
||||||
|
background-color: #EEE;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-preview .blog-tags {
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.post-preview .blog-tags {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 500px) {
|
||||||
|
.post-image, .post-image img {
|
||||||
|
height: 100px;
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-image {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 0;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* --- Post and page headers --- */
|
||||||
|
|
||||||
|
.intro-header {
|
||||||
|
margin: 80px 0 20px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.intro-header.big-img {
|
||||||
|
background: no-repeat center center;
|
||||||
|
-webkit-background-size: cover;
|
||||||
|
-moz-background-size: cover;
|
||||||
|
background-size: cover;
|
||||||
|
-o-background-size: cover;
|
||||||
|
margin-top: 51px; /* The small navbar is 50px tall + 1px border */
|
||||||
|
margin-bottom: 35px;
|
||||||
|
}
|
||||||
|
.intro-header.big-img .big-img-transition {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
opacity: 0;
|
||||||
|
background: no-repeat center center;
|
||||||
|
-webkit-background-size: cover;
|
||||||
|
-moz-background-size: cover;
|
||||||
|
background-size: cover;
|
||||||
|
-o-background-size: cover;
|
||||||
|
-webkit-transition: opacity 1s linear;
|
||||||
|
-moz-transition: opacity 1s linear;
|
||||||
|
transition: opacity 1s linear;
|
||||||
|
}
|
||||||
|
.intro-header .page-heading {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.intro-header.big-img .page-heading,
|
||||||
|
.intro-header.big-img .post-heading {
|
||||||
|
padding: 100px 0;
|
||||||
|
color: #FFF;
|
||||||
|
text-shadow: 1px 1px 3px #000;
|
||||||
|
}
|
||||||
|
.intro-header .page-heading h1 {
|
||||||
|
margin-top: 0;
|
||||||
|
font-size: 50px;
|
||||||
|
}
|
||||||
|
.intro-header .post-heading h1 {
|
||||||
|
margin-top: 0;
|
||||||
|
font-size: 35px;
|
||||||
|
}
|
||||||
|
.intro-header .page-heading .page-subheading,
|
||||||
|
.intro-header .post-heading .post-subheading {
|
||||||
|
font-size: 27px;
|
||||||
|
line-height: 1.1;
|
||||||
|
display: block;
|
||||||
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
font-weight: 300;
|
||||||
|
margin: 10px 0 0;
|
||||||
|
}
|
||||||
|
.intro-header .post-heading .post-subheading {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.intro-header.big-img .page-heading .page-subheading,
|
||||||
|
.intro-header.big-img .post-heading .post-subheading {
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
.intro-header.big-img .page-heading hr {
|
||||||
|
box-shadow: 1px 1px 3px #000;
|
||||||
|
-webkit-box-shadow: 1px 1px 3px #000;
|
||||||
|
-moz-box-shadow: 1px 1px 3px #000;
|
||||||
|
}
|
||||||
|
.intro-header.big-img .post-heading .post-meta {
|
||||||
|
color: #EEE;
|
||||||
|
}
|
||||||
|
.intro-header.big-img .img-desc {
|
||||||
|
background: rgba(30, 30, 30, 0.6);
|
||||||
|
position: absolute;
|
||||||
|
padding: 5px 10px;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #EEE;
|
||||||
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.intro-header {
|
||||||
|
margin-top: 130px;
|
||||||
|
}
|
||||||
|
.intro-header.big-img {
|
||||||
|
margin-top: 91px; /* Full navbar is small navbar + 20px padding on each side when expanded */
|
||||||
|
}
|
||||||
|
.intro-header.big-img .page-heading,
|
||||||
|
.intro-header.big-img .post-heading {
|
||||||
|
padding: 150px 0;
|
||||||
|
}
|
||||||
|
.intro-header .page-heading h1 {
|
||||||
|
font-size: 80px;
|
||||||
|
}
|
||||||
|
.intro-header .post-heading h1 {
|
||||||
|
font-size: 50px;
|
||||||
|
}
|
||||||
|
.intro-header.big-img .img-desc {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-section.has-img .no-img {
|
||||||
|
margin-top: 0;
|
||||||
|
background-color: #FCFCFC;
|
||||||
|
margin: 0 0 40px;
|
||||||
|
padding: 20px 0;
|
||||||
|
box-shadow: 0 0 5px #AAA;
|
||||||
|
}
|
||||||
|
/* Many phones are 320 or 360px, so make sure images are a proper aspect ratio in those cases */
|
||||||
|
.header-section.has-img .intro-header.no-img {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 365px) {
|
||||||
|
.header-section.has-img .intro-header.no-img {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.intro-header.big-img {
|
||||||
|
width: 100%;
|
||||||
|
height: 220px;
|
||||||
|
}
|
||||||
|
.intro-header.big-img .page-heading,
|
||||||
|
.intro-header.big-img .post-heading {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.header-section.has-img .big-img {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 325px) {
|
||||||
|
.intro-header.big-img {
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.caption {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 10px;
|
||||||
|
font-style: italic;
|
||||||
|
margin: 0;
|
||||||
|
display: block;
|
||||||
|
border-bottom-right-radius: 5px;
|
||||||
|
border-bottom-left-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-gh-btns {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 500px) {
|
||||||
|
#header-gh-btns > iframe {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Pager --- */
|
||||||
|
|
||||||
|
.pager li a {
|
||||||
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
padding: 10px 5px;
|
||||||
|
background-color: #FFF;
|
||||||
|
border-radius: 0;
|
||||||
|
color: #404040;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.pager li a {
|
||||||
|
padding: 15px 25px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.pager li a:hover,
|
||||||
|
.pager li a:focus {
|
||||||
|
color: #FFF;
|
||||||
|
border: 1px solid {{ site.hover-col }};
|
||||||
|
background-color: {{ site.hover-col }};
|
||||||
|
}
|
||||||
|
|
||||||
|
.pager {
|
||||||
|
margin: 10px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pager.blog-pager {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.pager.blog-pager {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Tables --- */
|
||||||
|
|
||||||
|
table {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
table tr {
|
||||||
|
border-top: 1px solid #cccccc;
|
||||||
|
background-color: #ffffff;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
table tr:nth-child(2n) {
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
}
|
||||||
|
table tr th {
|
||||||
|
font-weight: bold;
|
||||||
|
border: 1px solid #cccccc;
|
||||||
|
text-align: left;
|
||||||
|
margin: 0;
|
||||||
|
padding: 6px 13px;
|
||||||
|
}
|
||||||
|
table tr td {
|
||||||
|
border: 1px solid #cccccc;
|
||||||
|
text-align: left;
|
||||||
|
margin: 0;
|
||||||
|
padding: 6px 13px;
|
||||||
|
}
|
||||||
|
table tr th :first-child,
|
||||||
|
table tr td :first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
table tr th :last-child,
|
||||||
|
table tr td :last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Code blocks --- */
|
||||||
|
|
||||||
|
pre {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
.highlight pre {
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.highlight > pre {
|
||||||
|
background-image: linear-gradient(
|
||||||
|
rgba(0,0,0,0.06), rgba(0,0,0,0.06) 1.5em, rgba(0,0,0,0.03) 1.5em, rgba(0,0,0,0.03) 3em);
|
||||||
|
background-size: auto 3em;
|
||||||
|
background-position-y: 10px;
|
||||||
|
border: 1px solid rgba(0,0,0,0.1);
|
||||||
|
border-left: 7px solid #444;
|
||||||
|
}
|
||||||
|
.highlight > pre:not([class~="highlight"]) { /* code block with line number */
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.highlight table, .highlight tr, .highlight td { /* to be removed after fixing table styles */
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.highlight pre.lineno {
|
||||||
|
color: rgba(0,0,0,0.3);
|
||||||
|
border-radius: 0;
|
||||||
|
border-right: 2px solid #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Make line numbers unselectable: excludes line numbers from copy-paste user ops */
|
||||||
|
.lineno {
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
.lineno::selection, .lineno::-moz-selection {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Social media sharing section --- */
|
||||||
|
|
||||||
|
#social-share-section {
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Notification boxes --- */
|
||||||
|
.box-note, .box-warning, .box-error, .box-success {
|
||||||
|
padding: 15px 15px 15px 10px;
|
||||||
|
margin: 20px 20px 20px 5px;
|
||||||
|
border: 1px solid #eee;
|
||||||
|
border-left-width: 5px;
|
||||||
|
border-radius: 5px 3px 3px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-note {
|
||||||
|
background-color: #eee;
|
||||||
|
border-left-color: #2980b9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-warning {
|
||||||
|
background-color: #fdf5d4;
|
||||||
|
border-left-color: #f1c40f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-error {
|
||||||
|
background-color: #f4dddb;
|
||||||
|
border-left-color: #c0392b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-success {
|
||||||
|
background-color: #98FB98;
|
||||||
|
border-left-color: #3CB371;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fix table border github gist snippets */
|
||||||
|
|
||||||
|
.gist, .gist-file table tr {
|
||||||
|
border: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gist, .gist-file table tr td {
|
||||||
|
border: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fix .navbar-toggle */
|
||||||
|
|
||||||
|
.navbar-default button.navbar-toggle:focus,
|
||||||
|
.navbar-default button.navbar-toggle:hover {
|
||||||
|
background-color: initial;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-default button.navbar-toggle[aria-expanded="true"] {
|
||||||
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tags page */
|
||||||
|
|
||||||
|
.tag-btn {
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#full-tags-list {
|
||||||
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
#full-tags-list .tag-entry {
|
||||||
|
margin: 0 0 15px 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#full-tags-list .tag-entry a {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#full-tags-list .tag-entry .entry-date {
|
||||||
|
color: #808080;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
427
blog.bryanroessler.com/css/normalize.css
vendored
Normal file
@@ -0,0 +1,427 @@
|
|||||||
|
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Set default font family to sans-serif.
|
||||||
|
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||||
|
* user zoom.
|
||||||
|
*/
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-family: sans-serif; /* 1 */
|
||||||
|
-ms-text-size-adjust: 100%; /* 2 */
|
||||||
|
-webkit-text-size-adjust: 100%; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove default margin.
|
||||||
|
*/
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* HTML5 display definitions
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||||
|
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||||
|
* and Firefox.
|
||||||
|
* Correct `block` display not defined for `main` in IE 11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
article,
|
||||||
|
aside,
|
||||||
|
details,
|
||||||
|
figcaption,
|
||||||
|
figure,
|
||||||
|
footer,
|
||||||
|
header,
|
||||||
|
hgroup,
|
||||||
|
main,
|
||||||
|
menu,
|
||||||
|
nav,
|
||||||
|
section,
|
||||||
|
summary {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||||
|
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||||
|
*/
|
||||||
|
|
||||||
|
audio,
|
||||||
|
canvas,
|
||||||
|
progress,
|
||||||
|
video {
|
||||||
|
display: inline-block; /* 1 */
|
||||||
|
vertical-align: baseline; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevent modern browsers from displaying `audio` without controls.
|
||||||
|
* Remove excess height in iOS 5 devices.
|
||||||
|
*/
|
||||||
|
|
||||||
|
audio:not([controls]) {
|
||||||
|
display: none;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||||
|
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[hidden],
|
||||||
|
template {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Links
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the gray background color from active links in IE 10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
a {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Improve readability when focused and also mouse hovered in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
a:active,
|
||||||
|
a:hover {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Text-level semantics
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
abbr[title] {
|
||||||
|
border-bottom: 1px dotted;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
b,
|
||||||
|
strong {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address styling not present in Safari and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
dfn {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address variable `h1` font-size and margin within `section` and `article`
|
||||||
|
* contexts in Firefox 4+, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2em;
|
||||||
|
margin: 0.67em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address styling not present in IE 8/9.
|
||||||
|
*/
|
||||||
|
|
||||||
|
mark {
|
||||||
|
background: #ff0;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address inconsistent and variable font size in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-size: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
sub,
|
||||||
|
sup {
|
||||||
|
font-size: 75%;
|
||||||
|
line-height: 0;
|
||||||
|
position: relative;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
sup {
|
||||||
|
top: -0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub {
|
||||||
|
bottom: -0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Embedded content
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove border when inside `a` element in IE 8/9/10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
img {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct overflow not hidden in IE 9/10/11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
svg:not(:root) {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Grouping content
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address margin not present in IE 8/9 and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
figure {
|
||||||
|
margin: 1em 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address differences between Firefox and other browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
hr {
|
||||||
|
-moz-box-sizing: content-box;
|
||||||
|
box-sizing: content-box;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contain overflow in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
pre {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address odd `em`-unit font size rendering in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
code,
|
||||||
|
kbd,
|
||||||
|
pre,
|
||||||
|
samp {
|
||||||
|
font-family: monospace, monospace;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Forms
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||||
|
* styling of `select`, unless a `border` property is set.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct color not being inherited.
|
||||||
|
* Known issue: affects color of disabled elements.
|
||||||
|
* 2. Correct font properties not being inherited.
|
||||||
|
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
optgroup,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
color: inherit; /* 1 */
|
||||||
|
font: inherit; /* 2 */
|
||||||
|
margin: 0; /* 3 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||||
|
* All other form control elements do not inherit `text-transform` values.
|
||||||
|
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||||
|
* Correct `select` style inheritance in Firefox.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
select {
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||||
|
* and `video` controls.
|
||||||
|
* 2. Correct inability to style clickable `input` types in iOS.
|
||||||
|
* 3. Improve usability and consistency of cursor style between image-type
|
||||||
|
* `input` and others.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
html input[type="button"], /* 1 */
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="submit"] {
|
||||||
|
-webkit-appearance: button; /* 2 */
|
||||||
|
cursor: pointer; /* 3 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Re-set default cursor for disabled elements.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button[disabled],
|
||||||
|
html input[disabled] {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove inner padding and border in Firefox 4+.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button::-moz-focus-inner,
|
||||||
|
input::-moz-focus-inner {
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||||
|
* the UA stylesheet.
|
||||||
|
*/
|
||||||
|
|
||||||
|
input {
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* It's recommended that you don't attempt to style these elements.
|
||||||
|
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||||
|
*
|
||||||
|
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||||
|
* 2. Remove excess padding in IE 8/9/10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
box-sizing: border-box; /* 1 */
|
||||||
|
padding: 0; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||||
|
* `font-size` values of the `input`, it causes the cursor style of the
|
||||||
|
* decrement button to change from `default` to `text`.
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="number"]::-webkit-inner-spin-button,
|
||||||
|
input[type="number"]::-webkit-outer-spin-button {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||||
|
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||||
|
* (include `-moz` to future-proof).
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="search"] {
|
||||||
|
-webkit-appearance: textfield; /* 1 */
|
||||||
|
-moz-box-sizing: content-box;
|
||||||
|
-webkit-box-sizing: content-box; /* 2 */
|
||||||
|
box-sizing: content-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||||
|
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||||
|
* padding (and `textfield` appearance).
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="search"]::-webkit-search-cancel-button,
|
||||||
|
input[type="search"]::-webkit-search-decoration {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Define consistent border, margin, and padding.
|
||||||
|
*/
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
border: 1px solid #c0c0c0;
|
||||||
|
margin: 0 2px;
|
||||||
|
padding: 0.35em 0.625em 0.75em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||||
|
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||||
|
*/
|
||||||
|
|
||||||
|
legend {
|
||||||
|
border: 0; /* 1 */
|
||||||
|
padding: 0; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Don't inherit the `font-weight` (applied by a rule above).
|
||||||
|
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||||
|
*/
|
||||||
|
|
||||||
|
optgroup {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tables
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove most spacing between table cells.
|
||||||
|
*/
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
td,
|
||||||
|
th {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
61
blog.bryanroessler.com/css/pygment_highlights.css
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
/* .highlight { background: #ffffff; } Dean commented out */
|
||||||
|
/* .highlight pre { background-color: #fff; font-size: 16px } */
|
||||||
|
.highlight .c { color: #999988; font-style: italic } /* Comment */
|
||||||
|
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
|
||||||
|
.highlight .k { font-weight: bold } /* Keyword */
|
||||||
|
.highlight .o { font-weight: bold } /* Operator */
|
||||||
|
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
|
||||||
|
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
|
||||||
|
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
|
||||||
|
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
|
||||||
|
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
|
||||||
|
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
|
||||||
|
.highlight .ge { font-style: italic } /* Generic.Emph */
|
||||||
|
.highlight .gr { color: #aa0000 } /* Generic.Error */
|
||||||
|
.highlight .gh { color: #999999 } /* Generic.Heading */
|
||||||
|
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
|
||||||
|
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
|
||||||
|
.highlight .go { color: #888888 } /* Generic.Output */
|
||||||
|
.highlight .gp { color: #555555 } /* Generic.Prompt */
|
||||||
|
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
||||||
|
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
|
||||||
|
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
|
||||||
|
.highlight .kc { font-weight: bold } /* Keyword.Constant */
|
||||||
|
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
|
||||||
|
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
|
||||||
|
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
|
||||||
|
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
|
||||||
|
.highlight .m { color: #009999 } /* Literal.Number */
|
||||||
|
.highlight .s { color: #d14 } /* Literal.String */
|
||||||
|
.highlight .na { color: #008080 } /* Name.Attribute */
|
||||||
|
.highlight .nb { color: #0086B3 } /* Name.Builtin */
|
||||||
|
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
|
||||||
|
.highlight .no { color: #008080 } /* Name.Constant */
|
||||||
|
.highlight .ni { color: #800080 } /* Name.Entity */
|
||||||
|
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
|
||||||
|
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
|
||||||
|
.highlight .nn { color: #555555 } /* Name.Namespace */
|
||||||
|
.highlight .nt { color: #000080 } /* Name.Tag */
|
||||||
|
.highlight .nv { color: #008080 } /* Name.Variable */
|
||||||
|
.highlight .ow { font-weight: bold } /* Operator.Word */
|
||||||
|
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
|
||||||
|
.highlight .mf { color: #009999 } /* Literal.Number.Float */
|
||||||
|
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
|
||||||
|
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
|
||||||
|
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
|
||||||
|
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
|
||||||
|
.highlight .sc { color: #d14 } /* Literal.String.Char */
|
||||||
|
.highlight .sd { color: #d14 } /* Literal.String.Doc */
|
||||||
|
.highlight .s2 { color: #d14 } /* Literal.String.Double */
|
||||||
|
.highlight .se { color: #d14 } /* Literal.String.Escape */
|
||||||
|
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
|
||||||
|
.highlight .si { color: #d14 } /* Literal.String.Interpol */
|
||||||
|
.highlight .sx { color: #d14 } /* Literal.String.Other */
|
||||||
|
.highlight .sr { color: #009926 } /* Literal.String.Regex */
|
||||||
|
.highlight .s1 { color: #d14 } /* Literal.String.Single */
|
||||||
|
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
|
||||||
|
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
|
||||||
|
.highlight .vc { color: #008080 } /* Name.Variable.Class */
|
||||||
|
.highlight .vg { color: #008080 } /* Name.Variable.Global */
|
||||||
|
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
|
||||||
|
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
|
||||||
180
blog.bryanroessler.com/css/staticman.css
Normal file
@@ -0,0 +1,180 @@
|
|||||||
|
/* ==========================================================================
|
||||||
|
Forms
|
||||||
|
========================================================================== */
|
||||||
|
.staticman-comments form {
|
||||||
|
margin: 0 0 5px 0;
|
||||||
|
padding: 1em;
|
||||||
|
background-color: #f2f3f3;
|
||||||
|
}
|
||||||
|
.staticman-comments form p {
|
||||||
|
margin-bottom: 2.5px;
|
||||||
|
}
|
||||||
|
.staticman-comments form br {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.staticman-comments label, .staticman-comments input, .staticman-comments button, .staticman-comments textarea {
|
||||||
|
vertical-align: baseline;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.staticman-comments input, .staticman-comments button, .staticman-comments textarea {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.staticman-comments label {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 0.25em;
|
||||||
|
color: #494e52;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.staticman-comments label small {
|
||||||
|
font-size: 0.75em;
|
||||||
|
}
|
||||||
|
.staticman-comments label input, .staticman-comments label textarea {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.staticman-comments input, .staticman-comments textarea {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0.25em;
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
color: #494e52;
|
||||||
|
background-color: #fff;
|
||||||
|
border: #f2f3f3;
|
||||||
|
border-radius: 4px;
|
||||||
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.125);
|
||||||
|
}
|
||||||
|
.staticman-comments .input-mini {
|
||||||
|
width: 60px;
|
||||||
|
}
|
||||||
|
.staticman-comments .input-small {
|
||||||
|
width: 90px;
|
||||||
|
}
|
||||||
|
.staticman-comments input[type="button"], .staticman-comments input[type="reset"], .staticman-comments input[type="submit"] {
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
cursor: pointer;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
.staticman-comments textarea {
|
||||||
|
resize: vertical;
|
||||||
|
height: auto;
|
||||||
|
overflow: auto;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
.staticman-comments input[type="hidden"] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.staticman-comments .form {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Focus & active state
|
||||||
|
========================================================================== */
|
||||||
|
.staticman-comments input:focus, .staticman-comments textarea:focus {
|
||||||
|
border-color: #7a8288;
|
||||||
|
outline: 0;
|
||||||
|
outline: thin dotted \9;
|
||||||
|
box-shadow: inset 0 1px 3px rgba(73, 78, 82, 0.06), 0 0 5px rgba(122, 130, 136, 0.7);
|
||||||
|
}
|
||||||
|
.staticman-comments input[type="file"]:focus, .staticman-comments input[type="radio"]:focus, .staticman-comments input[type="checkbox"]:focus:focus {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Help text
|
||||||
|
========================================================================== */
|
||||||
|
.staticman-comments .help-block {
|
||||||
|
color: #898c8e;
|
||||||
|
}
|
||||||
|
.staticman-comments .help-block {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
line-height: 1em;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
.form-group
|
||||||
|
========================================================================== */
|
||||||
|
.staticman-comments .form-group {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
padding: 0;
|
||||||
|
border-width: 0;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Comments
|
||||||
|
========================================================================== */
|
||||||
|
.staticman-comments .page__comments {
|
||||||
|
float: left;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
width: 100%;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.staticman-comments .page__comments-title {
|
||||||
|
margin-top: 2rem;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
padding-top: 2rem;
|
||||||
|
border-top: 1px solid #f2f3f3;
|
||||||
|
}
|
||||||
|
.staticman-comments .page__comments-form {
|
||||||
|
-webkit-transition: all 0.2s ease-in-out;
|
||||||
|
transition: all 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
.staticman-comments .page__comments-form.disabled input, .staticman-comments .page__comments-form.disabled button, .staticman-comments .page__comments-form.disabled textarea, .staticman-comments .page__comments-form.disabled label {
|
||||||
|
pointer-events: none;
|
||||||
|
cursor: not-allowed;
|
||||||
|
filter: alpha(opacity=65);
|
||||||
|
box-shadow: none;
|
||||||
|
opacity: 0.65;
|
||||||
|
}
|
||||||
|
.staticman-comments .comment {
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
.staticman-comments .comment:not(:last-child) {
|
||||||
|
border-bottom: 1px solid #f2f3f3;
|
||||||
|
}
|
||||||
|
.staticman-comments .comment__avatar-wrapper {
|
||||||
|
float: left;
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
}
|
||||||
|
.staticman-comments .comment__avatar {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
.staticman-comments .comment__content-wrapper {
|
||||||
|
width: calc(100% - 60px);
|
||||||
|
}
|
||||||
|
.staticman-comments .comment__author {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.staticman-comments .comment__author a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.staticman-comments .comment__date {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.staticman-comments .comment__date a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
/* ==========================================================================
|
||||||
|
PRINT STYLES
|
||||||
|
========================================================================== */
|
||||||
|
.staticman-comments @media print {
|
||||||
|
/*
|
||||||
|
Hide the following elements on print
|
||||||
|
========================================================================== */
|
||||||
|
.staticman-comments [hidden] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.staticman-comments .masthead, .staticman-comments .toc, .staticman-comments .page__share, .staticman-comments .page__related, .staticman-comments .pagination, .staticman-comments .ads, .staticman-comments .page__footer, .staticman-comments .page__comments-form, .staticman-comments .author__avatar, .staticman-comments .author__content, .staticman-comments .author__urls-wrapper, .staticman-comments .nav__list, .staticman-comments .sidebar, .staticman-comments .adsbygoogle {
|
||||||
|
display: none !important;
|
||||||
|
height: 1px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Post pagination navigation links
|
||||||
|
========================================================================== */
|
||||||
|
.staticman-comments .page__comments + .staticman-comments .pagination {
|
||||||
|
margin-top: 2em;
|
||||||
|
padding-top: 2em;
|
||||||
|
border-top: 1px solid #f2f3f3;
|
||||||
|
}
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<!-- You can safely delete this file! -->
|
|
||||||
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Beautiful Jekyll</title>
|
|
||||||
<script>
|
|
||||||
window.location = "https://beautifuljekyll.com";
|
|
||||||
</script>
|
|
||||||
<noscript>
|
|
||||||
<a href="https://beautifuljekyll.com">Click here to go to the Beautiful Jekyll website</a>
|
|
||||||
</noscript>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<script>
|
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
||||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
||||||
ga('create', 'UA-59820529-1', 'auto');
|
|
||||||
ga('send', 'pageview');
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -4,12 +4,8 @@ layout: null
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
{% if site.title %}
|
|
||||||
<title>{{ site.title | xml_escape }}</title>
|
<title>{{ site.title | xml_escape }}</title>
|
||||||
{% endif %}
|
|
||||||
{% if site.description %}
|
|
||||||
<description>{{ site.description | xml_escape }}</description>
|
<description>{{ site.description | xml_escape }}</description>
|
||||||
{% endif %}
|
|
||||||
<link>{{ '' | absolute_url }}</link>
|
<link>{{ '' | absolute_url }}</link>
|
||||||
<atom:link href="{{ 'feed.xml' | absolute_url }}" rel="self" type="application/rss+xml" />
|
<atom:link href="{{ 'feed.xml' | absolute_url }}" rel="self" type="application/rss+xml" />
|
||||||
{% for post in site.posts limit:20 %}
|
{% for post in site.posts limit:20 %}
|
||||||
|
|||||||
BIN
blog.bryanroessler.com/img/404-southpark.jpg
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
blog.bryanroessler.com/img/avatar-icon.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
blog.bryanroessler.com/img/bgimage.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 785 KiB After Width: | Height: | Size: 785 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
BIN
blog.bryanroessler.com/img/me_square_sepia_small.jpg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
blog.bryanroessler.com/img/path.jpg
Normal file
|
After Width: | Height: | Size: 262 KiB |
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: page
|
layout: home
|
||||||
title:
|
title:
|
||||||
subtitle:
|
subtitle: Bryan Roessler's Blog
|
||||||
use-site-title: false
|
use-site-title: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
2306
blog.bryanroessler.com/js/bootstrap.js
vendored
Normal file
7
blog.bryanroessler.com/js/bootstrap.min.js
vendored
Normal file
4
blog.bryanroessler.com/js/jquery-1.11.2.min.js
vendored
Normal file
140
blog.bryanroessler.com/js/main.js
Normal file
@@ -0,0 +1,140 @@
|
|||||||
|
// Dean Attali / Beautiful Jekyll 2016
|
||||||
|
|
||||||
|
var main = {
|
||||||
|
|
||||||
|
bigImgEl : null,
|
||||||
|
numImgs : null,
|
||||||
|
|
||||||
|
init : function() {
|
||||||
|
// Shorten the navbar after scrolling a little bit down
|
||||||
|
$(window).scroll(function() {
|
||||||
|
if ($(".navbar").offset().top > 50) {
|
||||||
|
$(".navbar").addClass("top-nav-short");
|
||||||
|
$(".navbar-custom .avatar-container").fadeOut(500);
|
||||||
|
} else {
|
||||||
|
$(".navbar").removeClass("top-nav-short");
|
||||||
|
$(".navbar-custom .avatar-container").fadeIn(500);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// On mobile, hide the avatar when expanding the navbar menu
|
||||||
|
$('#main-navbar').on('show.bs.collapse', function () {
|
||||||
|
$(".navbar").addClass("top-nav-expanded");
|
||||||
|
});
|
||||||
|
$('#main-navbar').on('hidden.bs.collapse', function () {
|
||||||
|
$(".navbar").removeClass("top-nav-expanded");
|
||||||
|
});
|
||||||
|
|
||||||
|
// On mobile, when clicking on a multi-level navbar menu, show the child links
|
||||||
|
$('#main-navbar').on("click", ".navlinks-parent", function(e) {
|
||||||
|
var target = e.target;
|
||||||
|
$.each($(".navlinks-parent"), function(key, value) {
|
||||||
|
if (value == target) {
|
||||||
|
$(value).parent().toggleClass("show-children");
|
||||||
|
} else {
|
||||||
|
$(value).parent().removeClass("show-children");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// Ensure nested navbar menus are not longer than the menu header
|
||||||
|
var menus = $(".navlinks-container");
|
||||||
|
if (menus.length > 0) {
|
||||||
|
var navbar = $("#main-navbar ul");
|
||||||
|
var fakeMenuHtml = "<li class='fake-menu' style='display:none;'><a></a></li>";
|
||||||
|
navbar.append(fakeMenuHtml);
|
||||||
|
var fakeMenu = $(".fake-menu");
|
||||||
|
|
||||||
|
$.each(menus, function(i) {
|
||||||
|
var parent = $(menus[i]).find(".navlinks-parent");
|
||||||
|
var children = $(menus[i]).find(".navlinks-children a");
|
||||||
|
var words = [];
|
||||||
|
$.each(children, function(idx, el) { words = words.concat($(el).text().trim().split(/\s+/)); });
|
||||||
|
var maxwidth = 0;
|
||||||
|
$.each(words, function(id, word) {
|
||||||
|
fakeMenu.html("<a>" + word + "</a>");
|
||||||
|
var width = fakeMenu.width();
|
||||||
|
if (width > maxwidth) {
|
||||||
|
maxwidth = width;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$(menus[i]).css('min-width', maxwidth + 'px')
|
||||||
|
});
|
||||||
|
|
||||||
|
fakeMenu.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
// show the big header image
|
||||||
|
main.initImgs();
|
||||||
|
},
|
||||||
|
|
||||||
|
initImgs : function() {
|
||||||
|
// If the page was large images to randomly select from, choose an image
|
||||||
|
if ($("#header-big-imgs").length > 0) {
|
||||||
|
main.bigImgEl = $("#header-big-imgs");
|
||||||
|
main.numImgs = main.bigImgEl.attr("data-num-img");
|
||||||
|
|
||||||
|
// 2fc73a3a967e97599c9763d05e564189
|
||||||
|
// set an initial image
|
||||||
|
var imgInfo = main.getImgInfo();
|
||||||
|
var src = imgInfo.src;
|
||||||
|
var desc = imgInfo.desc;
|
||||||
|
main.setImg(src, desc);
|
||||||
|
|
||||||
|
// For better UX, prefetch the next image so that it will already be loaded when we want to show it
|
||||||
|
var getNextImg = function() {
|
||||||
|
var imgInfo = main.getImgInfo();
|
||||||
|
var src = imgInfo.src;
|
||||||
|
var desc = imgInfo.desc;
|
||||||
|
|
||||||
|
var prefetchImg = new Image();
|
||||||
|
prefetchImg.src = src;
|
||||||
|
// if I want to do something once the image is ready: `prefetchImg.onload = function(){}`
|
||||||
|
|
||||||
|
setTimeout(function(){
|
||||||
|
var img = $("<div></div>").addClass("big-img-transition").css("background-image", 'url(' + src + ')');
|
||||||
|
$(".intro-header.big-img").prepend(img);
|
||||||
|
setTimeout(function(){ img.css("opacity", "1"); }, 50);
|
||||||
|
|
||||||
|
// after the animation of fading in the new image is done, prefetch the next one
|
||||||
|
//img.one("transitioned webkitTransitionEnd oTransitionEnd MSTransitionEnd", function(){
|
||||||
|
setTimeout(function() {
|
||||||
|
main.setImg(src, desc);
|
||||||
|
img.remove();
|
||||||
|
getNextImg();
|
||||||
|
}, 1000);
|
||||||
|
//});
|
||||||
|
}, 6000);
|
||||||
|
};
|
||||||
|
|
||||||
|
// If there are multiple images, cycle through them
|
||||||
|
if (main.numImgs > 1) {
|
||||||
|
getNextImg();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
getImgInfo : function() {
|
||||||
|
var randNum = Math.floor((Math.random() * main.numImgs) + 1);
|
||||||
|
var src = main.bigImgEl.attr("data-img-src-" + randNum);
|
||||||
|
var desc = main.bigImgEl.attr("data-img-desc-" + randNum);
|
||||||
|
|
||||||
|
return {
|
||||||
|
src : src,
|
||||||
|
desc : desc
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
setImg : function(src, desc) {
|
||||||
|
$(".intro-header.big-img").css("background-image", 'url(' + src + ')');
|
||||||
|
if (typeof desc !== typeof undefined && desc !== false) {
|
||||||
|
$(".img-desc").text(desc).show();
|
||||||
|
} else {
|
||||||
|
$(".img-desc").hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// 2fc73a3a967e97599c9763d05e564189
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', main.init);
|
||||||
54
blog.bryanroessler.com/js/staticman.js
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
---
|
||||||
|
layout: null
|
||||||
|
---
|
||||||
|
|
||||||
|
(function ($) {
|
||||||
|
var $comments = $('.js-comments');
|
||||||
|
|
||||||
|
$('#new_comment').submit(function () {
|
||||||
|
var form = this;
|
||||||
|
|
||||||
|
$(form).addClass('disabled');
|
||||||
|
|
||||||
|
{% assign sm = site.staticman -%}
|
||||||
|
var endpoint = '{{ sm.endpoint | default: "https://staticman3.herokuapp.com/v3/entry/github/" }}';
|
||||||
|
var repository = '{{ sm.repository }}';
|
||||||
|
var branch = '{{ sm.branch }}';
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: $(this).attr('method'),
|
||||||
|
url: endpoint + repository + '/' + branch + '/comments',
|
||||||
|
data: $(this).serialize(),
|
||||||
|
contentType: 'application/x-www-form-urlencoded',
|
||||||
|
success: function (data) {
|
||||||
|
$('#comment-form-submit').addClass('hidden');
|
||||||
|
$('#comment-form-submitted').removeClass('hidden');
|
||||||
|
$('.page__comments-form .js-notice').removeClass('notice--danger');
|
||||||
|
$('.page__comments-form .js-notice').addClass('notice--success');
|
||||||
|
showAlert('success');
|
||||||
|
},
|
||||||
|
error: function (err) {
|
||||||
|
console.log(err);
|
||||||
|
$('#comment-form-submitted').addClass('hidden');
|
||||||
|
$('#comment-form-submit').removeClass('hidden');
|
||||||
|
$('.page__comments-form .js-notice').removeClass('notice--success');
|
||||||
|
$('.page__comments-form .js-notice').addClass('notice--danger');
|
||||||
|
showAlert('failure');
|
||||||
|
$(form).removeClass('disabled');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
function showAlert(message) {
|
||||||
|
$('.page__comments-form .js-notice').removeClass('hidden');
|
||||||
|
if (message == 'success') {
|
||||||
|
$('.page__comments-form .js-notice-text-success').removeClass('hidden');
|
||||||
|
$('.page__comments-form .js-notice-text-failure').addClass('hidden');
|
||||||
|
} else {
|
||||||
|
$('.page__comments-form .js-notice-text-success').addClass('hidden');
|
||||||
|
$('.page__comments-form .js-notice-text-failure').removeClass('hidden');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})(jQuery);
|
||||||
@@ -18,7 +18,7 @@ comments:
|
|||||||
#
|
#
|
||||||
# When allowedOrigins is defined, only requests sent from one of the domains
|
# When allowedOrigins is defined, only requests sent from one of the domains
|
||||||
# listed will be accepted. The origin is sent as part as the `options` object
|
# listed will be accepted. The origin is sent as part as the `options` object
|
||||||
# (e.g. <input name="options[origin]" value="https://yourdomain.com/post1")
|
# (e.g. <input name="options[origin]" value="http://yourdomain.com/post1")
|
||||||
# allowedOrigins: ["https://example.com"]
|
# allowedOrigins: ["https://example.com"]
|
||||||
|
|
||||||
# (*) REQUIRED
|
# (*) REQUIRED
|
||||||
@@ -67,7 +67,7 @@ comments:
|
|||||||
|
|
||||||
# Notification settings. When enabled, users can choose to receive notifications
|
# Notification settings. When enabled, users can choose to receive notifications
|
||||||
# via email when someone adds a reply or a new comment. This requires an account
|
# via email when someone adds a reply or a new comment. This requires an account
|
||||||
# with Mailgun, which you can get for free at https://mailgun.com.
|
# with Mailgun, which you can get for free at http://mailgun.com.
|
||||||
# notifications:
|
# notifications:
|
||||||
# Enable notifications
|
# Enable notifications
|
||||||
# enabled: true
|
# enabled: true
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ title: 'Tag Index'
|
|||||||
<div class="post-list">
|
<div class="post-list">
|
||||||
{%- for post in site.tags[tag] -%}
|
{%- for post in site.tags[tag] -%}
|
||||||
<div class="tag-entry">
|
<div class="tag-entry">
|
||||||
<a href="{{ post.url | relative_url }}">{{- post.title -}}</a>
|
<a href="{{ post.url | relative_url }}">{{- post.title | strip_html -}}</a>
|
||||||
<div class="entry-date">
|
<div class="entry-date">
|
||||||
<time datetime="{{- post.date | date_to_xmlschema -}}">{{- post.date | date: date_format -}}</time>
|
<time datetime="{{- post.date | date_to_xmlschema -}}">{{- post.date | date: date_format -}}</time>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
7
cv.bryanroessler.com/.dockerignore
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
.git
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
_site
|
||||||
|
.sass-cache
|
||||||
|
.DS_Store
|
||||||
|
_vendor
|
||||||
11
cv.bryanroessler.com/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM ruby:2.7
|
||||||
|
|
||||||
|
WORKDIR /home/app
|
||||||
|
|
||||||
|
COPY Gemfile* ./
|
||||||
|
|
||||||
|
RUN bundle install
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
CMD [ "bundle", "exec", "jekyll", "serve" ]
|
||||||
@@ -2,3 +2,5 @@ source "https://rubygems.org"
|
|||||||
|
|
||||||
gem 'github-pages'
|
gem 'github-pages'
|
||||||
gem 'rake'
|
gem 'rake'
|
||||||
|
gem 'webrick'
|
||||||
|
|
||||||
|
|||||||
@@ -1,126 +1,159 @@
|
|||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
activesupport (6.0.3.2)
|
activesupport (8.0.0)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
base64
|
||||||
i18n (>= 0.7, < 2)
|
benchmark (>= 0.3)
|
||||||
minitest (~> 5.1)
|
bigdecimal
|
||||||
tzinfo (~> 1.1)
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
||||||
zeitwerk (~> 2.2, >= 2.2.2)
|
connection_pool (>= 2.2.5)
|
||||||
addressable (2.7.0)
|
drb
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
i18n (>= 1.6, < 2)
|
||||||
|
logger (>= 1.4.2)
|
||||||
|
minitest (>= 5.1)
|
||||||
|
securerandom (>= 0.3)
|
||||||
|
tzinfo (~> 2.0, >= 2.0.5)
|
||||||
|
uri (>= 0.13.1)
|
||||||
|
addressable (2.8.7)
|
||||||
|
public_suffix (>= 2.0.2, < 7.0)
|
||||||
|
base64 (0.2.0)
|
||||||
|
benchmark (0.4.0)
|
||||||
|
bigdecimal (3.1.8)
|
||||||
coffee-script (2.4.1)
|
coffee-script (2.4.1)
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.11.1)
|
coffee-script-source (1.12.2)
|
||||||
colorator (1.1.0)
|
colorator (1.1.0)
|
||||||
commonmarker (0.17.13)
|
commonmarker (0.23.11)
|
||||||
ruby-enum (~> 0.5)
|
concurrent-ruby (1.3.4)
|
||||||
concurrent-ruby (1.1.6)
|
connection_pool (2.4.1)
|
||||||
dnsruby (1.61.3)
|
csv (3.3.0)
|
||||||
addressable (~> 2.5)
|
dnsruby (1.72.3)
|
||||||
em-websocket (0.5.1)
|
base64 (~> 0.2.0)
|
||||||
|
simpleidn (~> 0.2.1)
|
||||||
|
drb (2.2.1)
|
||||||
|
em-websocket (0.5.3)
|
||||||
eventmachine (>= 0.12.9)
|
eventmachine (>= 0.12.9)
|
||||||
http_parser.rb (~> 0.6.0)
|
http_parser.rb (~> 0)
|
||||||
ethon (0.12.0)
|
ethon (0.16.0)
|
||||||
ffi (>= 1.3.0)
|
ffi (>= 1.15.0)
|
||||||
eventmachine (1.2.7)
|
eventmachine (1.2.7)
|
||||||
execjs (2.7.0)
|
execjs (2.10.0)
|
||||||
faraday (1.0.1)
|
faraday (2.12.1)
|
||||||
multipart-post (>= 1.2, < 3)
|
faraday-net_http (>= 2.0, < 3.5)
|
||||||
ffi (1.13.1)
|
json
|
||||||
|
logger
|
||||||
|
faraday-net_http (3.4.0)
|
||||||
|
net-http (>= 0.5.0)
|
||||||
|
ffi (1.17.0-aarch64-linux-gnu)
|
||||||
|
ffi (1.17.0-aarch64-linux-musl)
|
||||||
|
ffi (1.17.0-arm-linux-gnu)
|
||||||
|
ffi (1.17.0-arm-linux-musl)
|
||||||
|
ffi (1.17.0-arm64-darwin)
|
||||||
|
ffi (1.17.0-x86-linux-gnu)
|
||||||
|
ffi (1.17.0-x86-linux-musl)
|
||||||
|
ffi (1.17.0-x86_64-darwin)
|
||||||
|
ffi (1.17.0-x86_64-linux-gnu)
|
||||||
|
ffi (1.17.0-x86_64-linux-musl)
|
||||||
forwardable-extended (2.6.0)
|
forwardable-extended (2.6.0)
|
||||||
gemoji (3.0.1)
|
gemoji (4.1.0)
|
||||||
github-pages (206)
|
github-pages (232)
|
||||||
github-pages-health-check (= 1.16.1)
|
github-pages-health-check (= 1.18.2)
|
||||||
jekyll (= 3.8.7)
|
jekyll (= 3.10.0)
|
||||||
jekyll-avatar (= 0.7.0)
|
jekyll-avatar (= 0.8.0)
|
||||||
jekyll-coffeescript (= 1.1.1)
|
jekyll-coffeescript (= 1.2.2)
|
||||||
jekyll-commonmark-ghpages (= 0.1.6)
|
jekyll-commonmark-ghpages (= 0.5.1)
|
||||||
jekyll-default-layout (= 0.1.4)
|
jekyll-default-layout (= 0.1.5)
|
||||||
jekyll-feed (= 0.13.0)
|
jekyll-feed (= 0.17.0)
|
||||||
jekyll-gist (= 1.5.0)
|
jekyll-gist (= 1.5.0)
|
||||||
jekyll-github-metadata (= 2.13.0)
|
jekyll-github-metadata (= 2.16.1)
|
||||||
jekyll-mentions (= 1.5.1)
|
jekyll-include-cache (= 0.2.1)
|
||||||
|
jekyll-mentions (= 1.6.0)
|
||||||
jekyll-optional-front-matter (= 0.3.2)
|
jekyll-optional-front-matter (= 0.3.2)
|
||||||
jekyll-paginate (= 1.1.0)
|
jekyll-paginate (= 1.1.0)
|
||||||
jekyll-readme-index (= 0.3.0)
|
jekyll-readme-index (= 0.3.0)
|
||||||
jekyll-redirect-from (= 0.15.0)
|
jekyll-redirect-from (= 0.16.0)
|
||||||
jekyll-relative-links (= 0.6.1)
|
jekyll-relative-links (= 0.6.1)
|
||||||
jekyll-remote-theme (= 0.4.1)
|
jekyll-remote-theme (= 0.4.3)
|
||||||
jekyll-sass-converter (= 1.5.2)
|
jekyll-sass-converter (= 1.5.2)
|
||||||
jekyll-seo-tag (= 2.6.1)
|
jekyll-seo-tag (= 2.8.0)
|
||||||
jekyll-sitemap (= 1.4.0)
|
jekyll-sitemap (= 1.4.0)
|
||||||
jekyll-swiss (= 1.0.0)
|
jekyll-swiss (= 1.0.0)
|
||||||
jekyll-theme-architect (= 0.1.1)
|
jekyll-theme-architect (= 0.2.0)
|
||||||
jekyll-theme-cayman (= 0.1.1)
|
jekyll-theme-cayman (= 0.2.0)
|
||||||
jekyll-theme-dinky (= 0.1.1)
|
jekyll-theme-dinky (= 0.2.0)
|
||||||
jekyll-theme-hacker (= 0.1.1)
|
jekyll-theme-hacker (= 0.2.0)
|
||||||
jekyll-theme-leap-day (= 0.1.1)
|
jekyll-theme-leap-day (= 0.2.0)
|
||||||
jekyll-theme-merlot (= 0.1.1)
|
jekyll-theme-merlot (= 0.2.0)
|
||||||
jekyll-theme-midnight (= 0.1.1)
|
jekyll-theme-midnight (= 0.2.0)
|
||||||
jekyll-theme-minimal (= 0.1.1)
|
jekyll-theme-minimal (= 0.2.0)
|
||||||
jekyll-theme-modernist (= 0.1.1)
|
jekyll-theme-modernist (= 0.2.0)
|
||||||
jekyll-theme-primer (= 0.5.4)
|
jekyll-theme-primer (= 0.6.0)
|
||||||
jekyll-theme-slate (= 0.1.1)
|
jekyll-theme-slate (= 0.2.0)
|
||||||
jekyll-theme-tactile (= 0.1.1)
|
jekyll-theme-tactile (= 0.2.0)
|
||||||
jekyll-theme-time-machine (= 0.1.1)
|
jekyll-theme-time-machine (= 0.2.0)
|
||||||
jekyll-titles-from-headings (= 0.5.3)
|
jekyll-titles-from-headings (= 0.5.3)
|
||||||
jemoji (= 0.11.1)
|
jemoji (= 0.13.0)
|
||||||
kramdown (= 1.17.0)
|
kramdown (= 2.4.0)
|
||||||
liquid (= 4.0.3)
|
kramdown-parser-gfm (= 1.1.0)
|
||||||
|
liquid (= 4.0.4)
|
||||||
mercenary (~> 0.3)
|
mercenary (~> 0.3)
|
||||||
minima (= 2.5.1)
|
minima (= 2.5.1)
|
||||||
nokogiri (>= 1.10.4, < 2.0)
|
nokogiri (>= 1.16.2, < 2.0)
|
||||||
rouge (= 3.19.0)
|
rouge (= 3.30.0)
|
||||||
terminal-table (~> 1.4)
|
terminal-table (~> 1.4)
|
||||||
github-pages-health-check (1.16.1)
|
webrick (~> 1.8)
|
||||||
|
github-pages-health-check (1.18.2)
|
||||||
addressable (~> 2.3)
|
addressable (~> 2.3)
|
||||||
dnsruby (~> 1.60)
|
dnsruby (~> 1.60)
|
||||||
octokit (~> 4.0)
|
octokit (>= 4, < 8)
|
||||||
public_suffix (~> 3.0)
|
public_suffix (>= 3.0, < 6.0)
|
||||||
typhoeus (~> 1.3)
|
typhoeus (~> 1.3)
|
||||||
html-pipeline (2.13.0)
|
html-pipeline (2.14.3)
|
||||||
activesupport (>= 2)
|
activesupport (>= 2)
|
||||||
nokogiri (>= 1.4)
|
nokogiri (>= 1.4)
|
||||||
http_parser.rb (0.6.0)
|
http_parser.rb (0.8.0)
|
||||||
i18n (0.9.5)
|
i18n (1.14.6)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
jekyll (3.8.7)
|
jekyll (3.10.0)
|
||||||
addressable (~> 2.4)
|
addressable (~> 2.4)
|
||||||
colorator (~> 1.0)
|
colorator (~> 1.0)
|
||||||
|
csv (~> 3.0)
|
||||||
em-websocket (~> 0.5)
|
em-websocket (~> 0.5)
|
||||||
i18n (~> 0.7)
|
i18n (>= 0.7, < 2)
|
||||||
jekyll-sass-converter (~> 1.0)
|
jekyll-sass-converter (~> 1.0)
|
||||||
jekyll-watch (~> 2.0)
|
jekyll-watch (~> 2.0)
|
||||||
kramdown (~> 1.14)
|
kramdown (>= 1.17, < 3)
|
||||||
liquid (~> 4.0)
|
liquid (~> 4.0)
|
||||||
mercenary (~> 0.3.3)
|
mercenary (~> 0.3.3)
|
||||||
pathutil (~> 0.9)
|
pathutil (~> 0.9)
|
||||||
rouge (>= 1.7, < 4)
|
rouge (>= 1.7, < 4)
|
||||||
safe_yaml (~> 1.0)
|
safe_yaml (~> 1.0)
|
||||||
jekyll-avatar (0.7.0)
|
webrick (>= 1.0)
|
||||||
|
jekyll-avatar (0.8.0)
|
||||||
jekyll (>= 3.0, < 5.0)
|
jekyll (>= 3.0, < 5.0)
|
||||||
jekyll-coffeescript (1.1.1)
|
jekyll-coffeescript (1.2.2)
|
||||||
coffee-script (~> 2.2)
|
coffee-script (~> 2.2)
|
||||||
coffee-script-source (~> 1.11.1)
|
coffee-script-source (~> 1.12)
|
||||||
jekyll-commonmark (1.3.1)
|
jekyll-commonmark (1.4.0)
|
||||||
commonmarker (~> 0.14)
|
commonmarker (~> 0.22)
|
||||||
jekyll (>= 3.7, < 5.0)
|
jekyll-commonmark-ghpages (0.5.1)
|
||||||
jekyll-commonmark-ghpages (0.1.6)
|
commonmarker (>= 0.23.7, < 1.1.0)
|
||||||
commonmarker (~> 0.17.6)
|
jekyll (>= 3.9, < 4.0)
|
||||||
jekyll-commonmark (~> 1.2)
|
jekyll-commonmark (~> 1.4.0)
|
||||||
rouge (>= 2.0, < 4.0)
|
rouge (>= 2.0, < 5.0)
|
||||||
jekyll-default-layout (0.1.4)
|
jekyll-default-layout (0.1.5)
|
||||||
jekyll (~> 3.0)
|
jekyll (>= 3.0, < 5.0)
|
||||||
jekyll-feed (0.13.0)
|
jekyll-feed (0.17.0)
|
||||||
jekyll (>= 3.7, < 5.0)
|
jekyll (>= 3.7, < 5.0)
|
||||||
jekyll-gist (1.5.0)
|
jekyll-gist (1.5.0)
|
||||||
octokit (~> 4.2)
|
octokit (~> 4.2)
|
||||||
jekyll-github-metadata (2.13.0)
|
jekyll-github-metadata (2.16.1)
|
||||||
jekyll (>= 3.4, < 5.0)
|
jekyll (>= 3.4, < 5.0)
|
||||||
octokit (~> 4.0, != 4.4.0)
|
octokit (>= 4, < 7, != 4.4.0)
|
||||||
jekyll-mentions (1.5.1)
|
jekyll-include-cache (0.2.1)
|
||||||
|
jekyll (>= 3.7, < 5.0)
|
||||||
|
jekyll-mentions (1.6.0)
|
||||||
html-pipeline (~> 2.3)
|
html-pipeline (~> 2.3)
|
||||||
jekyll (>= 3.7, < 5.0)
|
jekyll (>= 3.7, < 5.0)
|
||||||
jekyll-optional-front-matter (0.3.2)
|
jekyll-optional-front-matter (0.3.2)
|
||||||
@@ -128,123 +161,154 @@ GEM
|
|||||||
jekyll-paginate (1.1.0)
|
jekyll-paginate (1.1.0)
|
||||||
jekyll-readme-index (0.3.0)
|
jekyll-readme-index (0.3.0)
|
||||||
jekyll (>= 3.0, < 5.0)
|
jekyll (>= 3.0, < 5.0)
|
||||||
jekyll-redirect-from (0.15.0)
|
jekyll-redirect-from (0.16.0)
|
||||||
jekyll (>= 3.3, < 5.0)
|
jekyll (>= 3.3, < 5.0)
|
||||||
jekyll-relative-links (0.6.1)
|
jekyll-relative-links (0.6.1)
|
||||||
jekyll (>= 3.3, < 5.0)
|
jekyll (>= 3.3, < 5.0)
|
||||||
jekyll-remote-theme (0.4.1)
|
jekyll-remote-theme (0.4.3)
|
||||||
addressable (~> 2.0)
|
addressable (~> 2.0)
|
||||||
jekyll (>= 3.5, < 5.0)
|
jekyll (>= 3.5, < 5.0)
|
||||||
rubyzip (>= 1.3.0)
|
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
|
||||||
|
rubyzip (>= 1.3.0, < 3.0)
|
||||||
jekyll-sass-converter (1.5.2)
|
jekyll-sass-converter (1.5.2)
|
||||||
sass (~> 3.4)
|
sass (~> 3.4)
|
||||||
jekyll-seo-tag (2.6.1)
|
jekyll-seo-tag (2.8.0)
|
||||||
jekyll (>= 3.3, < 5.0)
|
jekyll (>= 3.8, < 5.0)
|
||||||
jekyll-sitemap (1.4.0)
|
jekyll-sitemap (1.4.0)
|
||||||
jekyll (>= 3.7, < 5.0)
|
jekyll (>= 3.7, < 5.0)
|
||||||
jekyll-swiss (1.0.0)
|
jekyll-swiss (1.0.0)
|
||||||
jekyll-theme-architect (0.1.1)
|
jekyll-theme-architect (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-cayman (0.1.1)
|
jekyll-theme-cayman (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-dinky (0.1.1)
|
jekyll-theme-dinky (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-hacker (0.1.1)
|
jekyll-theme-hacker (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-leap-day (0.1.1)
|
jekyll-theme-leap-day (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-merlot (0.1.1)
|
jekyll-theme-merlot (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-midnight (0.1.1)
|
jekyll-theme-midnight (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-minimal (0.1.1)
|
jekyll-theme-minimal (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-modernist (0.1.1)
|
jekyll-theme-modernist (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-primer (0.5.4)
|
jekyll-theme-primer (0.6.0)
|
||||||
jekyll (> 3.5, < 5.0)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-github-metadata (~> 2.9)
|
jekyll-github-metadata (~> 2.9)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-slate (0.1.1)
|
jekyll-theme-slate (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-tactile (0.1.1)
|
jekyll-theme-tactile (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-theme-time-machine (0.1.1)
|
jekyll-theme-time-machine (0.2.0)
|
||||||
jekyll (~> 3.5)
|
jekyll (> 3.5, < 5.0)
|
||||||
jekyll-seo-tag (~> 2.0)
|
jekyll-seo-tag (~> 2.0)
|
||||||
jekyll-titles-from-headings (0.5.3)
|
jekyll-titles-from-headings (0.5.3)
|
||||||
jekyll (>= 3.3, < 5.0)
|
jekyll (>= 3.3, < 5.0)
|
||||||
jekyll-watch (2.2.1)
|
jekyll-watch (2.2.1)
|
||||||
listen (~> 3.0)
|
listen (~> 3.0)
|
||||||
jemoji (0.11.1)
|
jemoji (0.13.0)
|
||||||
gemoji (~> 3.0)
|
gemoji (>= 3, < 5)
|
||||||
html-pipeline (~> 2.2)
|
html-pipeline (~> 2.2)
|
||||||
jekyll (>= 3.0, < 5.0)
|
jekyll (>= 3.0, < 5.0)
|
||||||
kramdown (1.17.0)
|
json (2.9.0)
|
||||||
liquid (4.0.3)
|
kramdown (2.4.0)
|
||||||
listen (3.2.1)
|
rexml
|
||||||
|
kramdown-parser-gfm (1.1.0)
|
||||||
|
kramdown (~> 2.0)
|
||||||
|
liquid (4.0.4)
|
||||||
|
listen (3.9.0)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
|
logger (1.6.2)
|
||||||
mercenary (0.3.6)
|
mercenary (0.3.6)
|
||||||
mini_portile2 (2.4.0)
|
|
||||||
minima (2.5.1)
|
minima (2.5.1)
|
||||||
jekyll (>= 3.5, < 5.0)
|
jekyll (>= 3.5, < 5.0)
|
||||||
jekyll-feed (~> 0.9)
|
jekyll-feed (~> 0.9)
|
||||||
jekyll-seo-tag (~> 2.1)
|
jekyll-seo-tag (~> 2.1)
|
||||||
minitest (5.14.1)
|
minitest (5.25.4)
|
||||||
multipart-post (2.1.1)
|
net-http (0.6.0)
|
||||||
nokogiri (1.10.10)
|
uri
|
||||||
mini_portile2 (~> 2.4.0)
|
nokogiri (1.16.8-aarch64-linux)
|
||||||
octokit (4.18.0)
|
racc (~> 1.4)
|
||||||
faraday (>= 0.9)
|
nokogiri (1.16.8-arm-linux)
|
||||||
sawyer (~> 0.8.0, >= 0.5.3)
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.16.8-arm64-darwin)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.16.8-x86-linux)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.16.8-x86_64-darwin)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.16.8-x86_64-linux)
|
||||||
|
racc (~> 1.4)
|
||||||
|
octokit (4.25.1)
|
||||||
|
faraday (>= 1, < 3)
|
||||||
|
sawyer (~> 0.9)
|
||||||
pathutil (0.16.2)
|
pathutil (0.16.2)
|
||||||
forwardable-extended (~> 2.6)
|
forwardable-extended (~> 2.6)
|
||||||
public_suffix (3.1.1)
|
public_suffix (5.1.1)
|
||||||
rake (13.0.1)
|
racc (1.8.1)
|
||||||
rb-fsevent (0.10.4)
|
rake (13.2.1)
|
||||||
rb-inotify (0.10.1)
|
rb-fsevent (0.11.2)
|
||||||
|
rb-inotify (0.11.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
rouge (3.19.0)
|
rexml (3.3.9)
|
||||||
ruby-enum (0.8.0)
|
rouge (3.30.0)
|
||||||
i18n
|
rubyzip (2.3.2)
|
||||||
rubyzip (2.3.0)
|
|
||||||
safe_yaml (1.0.5)
|
safe_yaml (1.0.5)
|
||||||
sass (3.7.4)
|
sass (3.7.4)
|
||||||
sass-listen (~> 4.0.0)
|
sass-listen (~> 4.0.0)
|
||||||
sass-listen (4.0.0)
|
sass-listen (4.0.0)
|
||||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
rb-inotify (~> 0.9, >= 0.9.7)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
sawyer (0.8.2)
|
sawyer (0.9.2)
|
||||||
addressable (>= 2.3.5)
|
addressable (>= 2.3.5)
|
||||||
faraday (> 0.8, < 2.0)
|
faraday (>= 0.17.3, < 3)
|
||||||
|
securerandom (0.4.0)
|
||||||
|
simpleidn (0.2.3)
|
||||||
terminal-table (1.8.0)
|
terminal-table (1.8.0)
|
||||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||||
thread_safe (0.3.6)
|
typhoeus (1.4.1)
|
||||||
typhoeus (1.4.0)
|
|
||||||
ethon (>= 0.9.0)
|
ethon (>= 0.9.0)
|
||||||
tzinfo (1.2.7)
|
tzinfo (2.0.6)
|
||||||
thread_safe (~> 0.1)
|
concurrent-ruby (~> 1.0)
|
||||||
unicode-display_width (1.7.0)
|
unicode-display_width (1.8.0)
|
||||||
zeitwerk (2.4.0)
|
uri (1.0.2)
|
||||||
|
webrick (1.9.1)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
aarch64-linux
|
||||||
|
aarch64-linux-gnu
|
||||||
|
aarch64-linux-musl
|
||||||
|
arm-linux
|
||||||
|
arm-linux-gnu
|
||||||
|
arm-linux-musl
|
||||||
|
arm64-darwin
|
||||||
|
x86-linux
|
||||||
|
x86-linux-gnu
|
||||||
|
x86-linux-musl
|
||||||
|
x86_64-darwin
|
||||||
|
x86_64-linux-gnu
|
||||||
|
x86_64-linux-musl
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
github-pages
|
github-pages
|
||||||
rake
|
rake
|
||||||
|
webrick
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.0.2
|
2.5.22
|
||||||
|
|||||||
@@ -15,6 +15,13 @@ To test locally, run the following in your terminal:
|
|||||||
2. `bundle exec jekyll serve`
|
2. `bundle exec jekyll serve`
|
||||||
3. Open your browser to `localhost:4000`
|
3. Open your browser to `localhost:4000`
|
||||||
|
|
||||||
|
### Running locally with Docker
|
||||||
|
|
||||||
|
To test locally with docker, run the following in your terminal after installing docker into your system:
|
||||||
|
|
||||||
|
1. `docker image build -t resume-template .`
|
||||||
|
2. `docker run --rm --name resume-template -v "$PWD":/home/app --network host resume-template`
|
||||||
|
|
||||||
### Customizing
|
### Customizing
|
||||||
|
|
||||||
First you'll want to fork the repo to your own account. Then clone it locally and customize, or use the GitHub web editor to customize.
|
First you'll want to fork the repo to your own account. Then clone it locally and customize, or use the GitHub web editor to customize.
|
||||||
@@ -56,4 +63,4 @@ If you spot a bug, or want to improve the code, or even make the dummy content b
|
|||||||
|
|
||||||
The code and styles are licensed under the MIT license. [See project license.](LICENSE) Obviously you should not use the content of this demo repo in your own resume. :wink:
|
The code and styles are licensed under the MIT license. [See project license.](LICENSE) Obviously you should not use the content of this demo repo in your own resume. :wink:
|
||||||
|
|
||||||
Disclaimer: Use of Homer J. Simpson image and name used under [Fair Use](https://en.wikipedia.org/wiki/Fair_use) for educational purposes. Project license does not apply to use of this material.
|
Disclaimer: Use of Lisa M. Simpson image and name used under [Fair Use](https://en.wikipedia.org/wiki/Fair_use) for educational purposes. Project license does not apply to use of this material.
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ sass:
|
|||||||
# Resume settings
|
# Resume settings
|
||||||
resume_avatar: "true"
|
resume_avatar: "true"
|
||||||
resume_name: "Bryan C. Roessler"
|
resume_name: "Bryan C. Roessler"
|
||||||
resume_title: "Software developer and biologist"
|
resume_title: "Software Developer"
|
||||||
|
|
||||||
# used for the contact button in _layouts/resume.html
|
# used for the contact button in _layouts/resume.html
|
||||||
resume_contact_email: "bryanroessler@gmail.com"
|
resume_contact_email: "bryanroessler@gmail.com"
|
||||||
@@ -25,7 +25,9 @@ resume_header_contact_info: "St. Petersburg, FL • bryanroessler@gmail.com"
|
|||||||
display_header_contact_info: "true"
|
display_header_contact_info: "true"
|
||||||
|
|
||||||
resume_header_intro: >
|
resume_header_intro: >
|
||||||
<p>I am a computational biologist by training and a programmer by trade. I try to identify important problems and write software to solve them. I am seeking a part or full-time telework opportunities in bioinformatics, molecular dynamics, cloud admin, linux sysadmin, or software development.</p>
|
<p>I am a full-stack software developer with a background in high-performance computing and molecular dynamics.
|
||||||
|
I excel at breaking complex problems into simple, solvable solutions. In my free time I enjoy contributing
|
||||||
|
to a variety of open source projects within the Linux ecosystem.</p>
|
||||||
|
|
||||||
# use "yes" to display the email contact button,
|
# use "yes" to display the email contact button,
|
||||||
# "no" to display an "I'm not looking for work" message,
|
# "no" to display an "I'm not looking for work" message,
|
||||||
|
|||||||
@@ -1,31 +1,12 @@
|
|||||||
# Jobs
|
# Jobs
|
||||||
- company: BRSoftware
|
- company: BRSoftware
|
||||||
position: Insubordinate
|
position: Lead Software Developer and Consultant
|
||||||
duration: Jan 2018 — Present
|
duration: Jan 2018 — Present
|
||||||
summary: >
|
summary: >
|
||||||
I have completed the following projects and goals: <ul class="resume-item-list">
|
I create full-stack software solutions for clients in a variety of programming languages.
|
||||||
<li>Created and deployed a version-controlled web journaling platform</li>
|
|
||||||
<li>Created and released a container-based development environment for building and deploying software (build-wrapper)</li>
|
|
||||||
<li>Created and released a containerized installation script and repository for JRiver Media Center (install_MC_fedora)</li>
|
|
||||||
<li>Learned php, sql, ruby, css, and html5 programming languages in addition to existing python, bash, tcl, and R knowledge</li>
|
|
||||||
<li>Contributed to open-source projects including ulauncher, fedora, podman, acme-dns, and openwrt</li>
|
|
||||||
<li>DIY renovated a home in the beautiful state of Florida</li></ul>
|
|
||||||
|
|
||||||
I am currently working on the following projects: <ul class="resume-item-list">
|
|
||||||
<li>namd-python, a python wrapper for the NAMD molecular dynamics suite</li>
|
|
||||||
<li>oci-md, a k8s solution for cloud-based scientific software and job control</li>
|
|
||||||
<li>reso-wp, a RESO real estate API plugin for Wordpress</li>
|
|
||||||
<li>flre-wp, a web-based real estate IDX solution</li></ul>
|
|
||||||
|
|
||||||
- company: University of Alabama at Birmingham
|
- company: University of Alabama at Birmingham
|
||||||
position: Graduate Research Assistant
|
position: Graduate Research Assistant
|
||||||
duration: Aug 2010 — Jan 2018
|
duration: Aug 2010 — Jan 2018
|
||||||
summary: >
|
summary: >
|
||||||
My doctoral thesis focused on the use of computational molecular dynamics to understand the impact of mutations and empirical structural determination methods on the function and dynamics of multidrug resistance (specifically, CFTR) and sortase proteins.
|
My doctoral thesis utilized computational molecular dynamics to study the effects of mutations on the structure and function of multidrug resistance proteins.
|
||||||
|
|
||||||
- company: U.S. Census Bureau
|
|
||||||
position: Crew Leader
|
|
||||||
duration: Jan 2010 — May 2010
|
|
||||||
summary: >
|
|
||||||
Supervised a team of enumerators to ensure assigned tasks were completed properly.
|
|
||||||
Monitored and evaluated performance for adjustments and improvements.
|
|
||||||
|
|||||||