Compare commits

..

No commits in common. "master" and "3.0.0" have entirely different histories.

130 changed files with 537 additions and 1355 deletions

3
.gitattributes vendored
View File

@ -46,6 +46,3 @@ Dockerfile text eol=lf
*.mp3 binary *.mp3 binary
*.ogg binary *.ogg binary
*.flv binary *.flv binary
*.svg binary
*.woff binary
*.woff2 binary

1
.github/FUNDING.yml vendored
View File

@ -1,4 +1,3 @@
# These are supported funding model platforms # These are supported funding model platforms
github: daattali github: daattali
patreon: DeanAttali

View File

@ -1,3 +1,3 @@
Please only submit feature suggestions or bug reports if you believe something is broken. Thank you for submitting an issue!
If you need help, or if you enjoy Beautiful Jekyll and want to support it, please upgrade to one of our plans: https://beautifuljekyll.com/plans/ Please only submit bug reports or feature suggestions. Please do not submit support requests and general help questions in this forum.

View File

@ -8,8 +8,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build the site in the jekyll/builder container - name: Build the site in the jekyll/builder container
run: | run: |
export JEKYLL_VERSION=3.8
docker run \ docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \ -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
-e PAGES_REPO_NWO=${{ github.repository }} \ -e PAGES_REPO_NWO=${{ github.repository }} \
jekyll/builder:$JEKYLL_VERSION /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future" jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"

View File

@ -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 }}" alt="Not found" /> <img src="{{ 'assets/img/404-southpark.jpg' | relative_url }}" />
</div> </div>

View File

@ -1,7 +0,0 @@
## 📅 21-08-08
- 📌 Merge upstream changes to commit `30a757d
`
## 📅 v5.0.0 (2020-11-21)
- Initial version of this SA edition implemented. It's based on `beautiful-jekyll 5.0.0` -> commit `8b41236`.

View File

@ -1,119 +1,30 @@
## Unreleased version ## v3.0.0 (Date: 2020-05-07)
- Added `post_search` config setting that creates a Search button in the navbar (older websites need to set `post_search: true` to enable this feature) (#770)
- 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
- 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 issue where image thumbnails on the feed page were always forced into a square rather than maintaining a proper image aspect ratio
- Added support for Patreon, Medium, and Itch.io in the social network links in the footer (#783, #788)
- Fixed bug where special characters in the title led to broken share tags (#744)
- Updated staticman from using v2 (public servers) to v3 (private servers) due to the public servers becoming obsolete (#775)
- Added support for Cloudflare Analytics (#797)
- Added Reddit in share options of posts (#815)
## 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
## v4.0.0 (2020-07-12)
- **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
- 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
- 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
- Added social network links: Mastodon (#646), Google Scholar, ORCID (#670)
- Added support for sharing pages on new social network: VK (#657)
- 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)
- Made post images in the feed page smaller on smaller devices
- Fixed jQuery version in staticman (#671)
## 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.
- Added accessibility features where possible - Add 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'.
- Rewrote and simplified some JavaScript code to use CSS or Bootstrap alternatives that weren't available in 2015 - Rewrite and simplify some JavaScript code to use CSS or Bootstrap alternatives that weren't available in 2015.
- Removed most of the sample posts so that users only have two sample posts to learn from - Remove 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)
- Added YAML parameter `footer-extra` for including custom content in the footer - Add YAML option `footer-extra` for including custom content in the footer
- Fixed issue: linking to a specific part of a page resulted in scrolling too far (#69) - Fix issue: linking to a specific part of a page resulted in scrolling too far (#69)
- Added YAML parameter `nav-short` to have navbar permanently collapsed - Add YAML option `nav-short` to have navbar permanently collapsed
- Added social network link: Calendly - Add social network link: Calendly
- Fixed bug where RSS link in footer was showing even when turned off - Fix bug where RSS link in footer was showing even when turned off
## v2.2.0 (2020-04-27) ## v2.2.0 (2020-04-27)
- Added social network link: Telegram (#625) (thanks @mashed-potatoes) - Add 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
- Fixed a few bugs from the remote_theme migration - Fix a few bugs from the remote_theme migration
## v2.0.0 (2020-04-26) ## v2.0.0 (2020-04-26)
@ -200,4 +111,3 @@ One of the major changes in this version is that a lot of time was spent on reth
... 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!

209
README.md
View File

@ -1,64 +1,53 @@
# About Beautiful SA Jekyll
> This repository reflects Deans Jekyll template [Beautiful Jekyll](https://beautifuljekyll.com/plans/) as `Standalone` version. This means it contains external CDN resources like bootstrap, jQuery or Font-Awesome. The intension is to help users
with the hosting in [GDPR](https://gdpr.eu/) affected countries.
[![](https://i.imgur.com/zNBkzj1.png)](https://beautifuljekyll.com/plans/)
# Beautiful Jekyll # Beautiful Jekyll
[![xscode](https://img.shields.io/badge/Available%20on-xs%3Acode-blue?style=?style=plastic&logo=appveyor&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF////////VXz1bAAAAAJ0Uk5T/wDltzBKAAAAlUlEQVR42uzXSwqAMAwE0Mn9L+3Ggtgkk35QwcnSJo9S+yGwM9DCooCbgn4YrJ4CIPUcQF7/XSBbx2TEz4sAZ2q1RAECBAiYBlCtvwN+KiYAlG7UDGj59MViT9hOwEqAhYCtAsUZvL6I6W8c2wcbd+LIWSCHSTeSAAECngN4xxIDSK9f4B9t377Wd7H5Nt7/Xz8eAgwAvesLRjYYPuUAAAAASUVORK5CYII=)](https://xscode.com/daattali/beautiful-jekyll) ![Beautiful Jekyll CI](https://github.com/daattali/beautiful-jekyll/workflows/Beautiful%20Jekyll%20CI/badge.svg)
[![Gem Version](https://badge.fury.io/rb/beautiful-jekyll-theme.svg)](https://badge.fury.io/rb/beautiful-jekyll-theme) [![Gem Version](https://badge.fury.io/rb/beautiful-jekyll-theme.svg)](https://badge.fury.io/rb/beautiful-jekyll-theme)
> By [Dean Attali](https://deanattali.com) &middot; [Demo](https://beautifuljekyll.com/) > *Copyright 2020 [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) or [my consulting website](https://attalitech.com) to see it in use, or see [examples of websites](http://beautifuljekyll.com/examples) other people created using this theme. **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).
**If you enjoy Beautiful Jekyll, please consider [supporting me](https://github.com/sponsors/daattali) for over 5 years of development (and to unlock rewards!) ❤** **If you enjoy this theme, please consider [supporting me](http://paypal.me/daattali) or [sponsoring me](https://github.com/sponsors/daattali) for developing and maintaining it for over 5 years.**
<p align="center">
<a style="display: inline-block;" href="https://paypal.me/daattali">
<img height="40" src="https://camo.githubusercontent.com/0e9e5cac101f7093336b4589c380ab5dcfdcbab0/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74776f6c66736f6e2f70617970616c2d6769746875622d627574746f6e40312e302e302f646973742f627574746f6e2e737667" />
</a>&nbsp;&nbsp;
<a style="display: inline-block;" href="https://github.com/sponsors/daattali">
<img height="40" src="https://i.imgur.com/034B8vq.png" />
</a>
</p>
## Table of contents ## Table of contents
- [Features](#features) - [Features](#features)
- [Sponsors 🏆](#sponsors)
- [**Build your website in 3 steps**](#build-your-website-in-3-steps) - [**Build your website in 3 steps**](#build-your-website-in-3-steps)
- [Plans](#plans)
- [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) - [Customizing parameters for each page](#customizing-parameters-for-each-page)
- [Supported parameters](#supported-parameters) - [Supported parameters](#supported-parameters)
- [Featured users (success stories!)](#featured-users-success-stories) - [Showcased users (success stories!)](#showcased-users-success-stories)
- [FAQ and support](#faq-and-support) - [FAQ and support](#faq-and-support)
- [Credits and contributions](#credits) - [Credits and contributions](#credits)
# Features # Features
__Check out [*What's New?*](https://beautifuljekyll.com/updates/) to see the latest features.__
- **SIMPLE**: The primary goal of Beautiful Jekyll is to allow literally *anyone* to create a website in a few minutes. - **SIMPLE**: The primary goal of Beautiful Jekyll is to allow literally *anyone* to create a website in a few minutes.
- **Modern**: Uses the latest best practices and technologies to achieve nearly perfect scores on Google Chrome's Audit. - **Modern**: Uses the latest best practices and technologies to achieve nearly perfect scores on Google Chrome's Audit.
- **Mobile-first**: Designed to look great on both large-screen and small-screen (mobile) devices. - **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. - **Highly customizable**: Many personalization settings such as changing the background colour/image, adding a logo.
- **Flexible usage**: Use Beautiful Jekyll directly on GitHub or via a Ruby gem - choose the best [development method](#build-your-website-in-3-steps) for you. - **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 50,000+ users enjoying this theme since 2015. - **Battle-tested**: By using Beautiful Jekyll, you'll be joining tens of thousands of users who used this theme since 2015.
- **SEO and social media support**: Customize how your site looks on Google and when shared on social media. - **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). - **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).
- **Tags**: Any blog post can be tagged with keywords, and an index page is automatically generated. - **Share blog posts on social media**: By default, all blog posts have buttons to allow people to share on Twitter/Facebook/LinkedIn.
- **Analytics**: Easily integrate Google Analytics, or other analytics platforms, to track visits to your website. - **Tags**: Any blog post can be tagged with keywords, and an index page showing all the tags is automatically generated.
- **Search**: Let users easily find any page using a Search button in the navigation bar. - **Tracking analytics**: Easily integrate Google Analytics, or other analytics platforms, to track visits to your website.
- **Photos support**: Any page can have a full-width cover photo and thumbnail. - **Photos support**: Any page can have a cover photo around its title, and any blog post can have an associated image.
- **RSS**: An RSS feed is automatically created, so you can even host a podcast easily with Beautiful Jekyll. - **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.
<h2 id="sponsors">Sponsors 🏆</h2>
Developing and maintaining Beautiful Jekyll takes a lot of time and effort - thank you to anyone who helps fund this effort!
- [Matt Artist](https://mja00.dev/)
- [\_hyp3ri0n](https://hyperiongray.com)
[Become a sponsor for Beautiful Jekyll and unlock special rewards\!](https://github.com/sponsors/daattali/sponsorships?tier_id=39856)
# 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!), the easy route is recommended. 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. 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!) ## The easy way (recommended!)
@ -74,51 +63,45 @@ Fork this project by clicking the __*Fork*__ button at the top right corner of t
### 2. Rename the project to `<yourusername>.github.io` ### 2. Rename the project to `<yourusername>.github.io`
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](https://beautifuljekyll.com/faq/#custom-domain) if you want to use a different project name). If after a few minutes your website is still not ready, try making any edit to any file, just to force GitHub to re-build your site. 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 there are 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 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.
Note that in the video above only one setting in the `_config.yml` file is edited. **You should actually go through the rest of the settings as well. Don't be lazy, go through all the settings!**
### 4. Congratulations! You have a website! ### 4. Congratulations! You have a website!
After you save your changes to the `_config.yml` 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. Your website will be initialized with several sample blog posts and a couple other pages.
Note that this was the easy way to *create* your website, but it does come at a cost: when Beautiful Jekyll gains new features in the future, *updating* your website to include all the latest features is cumbersome. See the [FAQ](https://beautifuljekyll.com/faq/#updating) for help with upgrading in the future. 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 :)**
## The hard way (using ruby gems) ## The hard way (using ruby gems)
If you followed the easy method above, then you already have your site and you can skip this section! If you want to use Beautiful Jekyll as a ruby gem instead, follow the [advanced installation instructions](https://beautifuljekyll.com/getstarted/#install-steps-hard). This is harder to set up initially, but it makes it super easy to keep your site up to date with Beautiful Jekyll when more features are added in the future. 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).
# Plans
Beautiful Jekyll is, and always will be, free. But if you want to remove the Beautiful Jekyll ad from your website, use a Dark Mode skin, unlock other special rewards, or simply support the development efforts, [check out the different plans](https://beautifuljekyll.com/plans).
# Add your own content # 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. It's much easier to write markdown than HTML, so that's the recommended approach ([here's a great tutorial](https://markdowntutorial.com/) if you need to learn markdown in 5 minutes). 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.
To see an example of a markdown file, click on any file that ends in `.md`, for example [`aboutme.md`](./aboutme.md). On that 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! 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!
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. 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.
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`. 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`.
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. 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 # 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**: **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:
``` ```
--- ---
--- ---
``` ```
This is where you'll be able to give each page some extra parameters (such as a title, a subtitle, an image, etc - [below is a list of all parameters](#supported-parameters)). Add any parameters you want between these two dashed lines, for example: 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:
``` ```
--- ---
@ -127,17 +110,17 @@ subtitle: Here you'll find all the ways to get in touch with me
--- ---
``` ```
If you don't want to use any parameters on a page, you still need to use the two dashed lines. If you don't, then your file will be shown as-is without the Beautiful Jekyll template.
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`](https://raw.githubusercontent.com/daattali/beautiful-jekyll/master/aboutme.md) as an example.
**Important takeaway: ALWAYS add the YAML front matter, which is two lines of 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 this template.
# Supported parameters # Supported parameters
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 site-wide settings. 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.
## Main parameters ## Main paramaters
These are the basic YAML parameters that you are most likely to use on most pages. These are the basic YAML parameters that you are most likely to use on most pages.
@ -146,19 +129,8 @@ 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, analysis, 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 you must use the list notation (use `[]` even if you have only one image), and each image should be provided as `"/path/to/img" : "Caption of image"`. cover-img | 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).
thumbnail-img | For blog posts, if you want to add a thumbnail that will show up 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. 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 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`.
## Parameters for SEO and social media sharing
These parameters let you control what information shows up when a page is shown in a search engine (such as Google) or gets shared on social media (such as Twitter/Facebook).
Parameter | Description
----------- | -----------
share-title | A title for the page. If not provided, then `title` will be used, and if that's missing then the site title (from `_config.yml`) is used.
share-description | A brief description of the page. If not provided, then `subtitle` will be used, and if that's missing then an excerpt from the page content is used.
share-img | The image to show. If not provided, then `cover-img` or `thumbnail-img` will be used if one of them is provided.
## Less commonly used parameters ## Less commonly used parameters
@ -168,12 +140,13 @@ Parameter | Description
----------- | ----------- ----------- | -----------
readtime | If you want a post to show how many minutes it will take to read it, use `readtime: true`. 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`. 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`.
image | If you want to add an image to your blog post that will show up next to the post's excerpt on the feed and in the post page 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.
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`. 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` 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-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. 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.
last-updated | If you want to show that a blog post was updated after it was originally released, you can specify an "Updated on" date. 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.
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 ## Advanced parameters
@ -181,12 +154,9 @@ These are advanced parameters that are only useful for people who need very fine
Parameter | Description Parameter | Description
----------- | ----------- ----------- | -----------
footer-extra | If you want to include extra content below the social media icons 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`). Accepts a single file or a list of files. 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`)
before-content | Similar to `footer-extra`, but used for including HTML before the main content of the page (below the title).
after-content | Similar to `footer-extra`, but used for including HTML after the main content of the page (above the footer).
head-extra | Similar to `footer-extra`, but used if you have any HTML code that needs to be included in the `<head>` tag of the page.
language | HTML language code to be set on the page's &lt;html&gt; element. language | HTML language code to be set on the page's &lt;html&gt; element.
full-width | By default, page content is constrained to a standard width. Use `full-width: true` to allow the content to span the entire width of the window. 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`) 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
@ -200,28 +170,89 @@ ext-css | List of external CSS files to include in the page. External CSS f
- **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. - **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! - 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!
# Featured users (success stories!) # Showcased users (success stories!)
Visit the [Official website](http://beautifuljekyll.com/examples) to see sample websites using Beautiful Jekyll. 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'd like to showcase yourself and join this list, [upgrading to the Individual plan](https://github.com/sponsors/daattali/sponsorships?&tier_id=7362) will give you that publicity plus some other rewards! ## Project/company websites
| Website | Description |
| :------ |:----------- |
| [repidemicsconsortium.org/](https://www.repidemicsconsortium.org/) | R Epidemics Consortium |
| [vaccineimpact.org](https://www.vaccineimpact.org/) | Vaccine Impact Modelling Consortium |
| [derekogle.com/fishR](http://derekogle.com/fishR/) | Using R for Fisheries Analyses |
| [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 |
| [blabel.github.io](http://blabel.github.io) | Library for canonicalising blank node labels in RDF graphs |
| [reactionic.github.io](http://reactionic.github.io) | Create iOS and Android apps with React and Ionic |
| [ja2-stracciatella.github.io](http://ja2-stracciatella.github.io) | Jagged Alliance 2 Stracciatella |
| [ddocent.com](http://ddocent.com/) | RADSeq Bioinformatics and Beyond |
| [guitarlessons.org](https://www.guitarlessons.org/) | Free online guitar lessons for all |
| [terremotocentroitalia.info](https://www.terremotocentroitalia.info/) | Information about the 2016 Italy earthquake |
## Personal websites
| Website | Who | What |
| :------ |:--- | :--- |
| [deanattali.com](https://deanattali.com) | Dean Attali | Creator of Beautiful Jekyll |
| [ouzor.github.io](http://ouzor.github.io) | Juuso Parkkinen | Data scientist |
| [derekogle.com](http://derekogle.com/) | Derek Ogle | Professor of Mathematical Sciences and Natural Resources |
| [melyanna.github.io](http://melyanna.github.io/) | Melyanna | Shows off her nice art |
| [chauff.github.io](http://chauff.github.io/) | Claudia Hauff | Professor at Delft University of Technology |
| [kootenpv.github.io](http://kootenpv.github.io/) | Pascal van Kooten | Data analytics |
| [sjackman.ca](http://sjackman.ca) | Shaun Jackman | PhD candidate in bioinformatics |
| [anudit.in](http://www.anudit.in/) | Anudit Verma | Engineering student |
| [sharepointoscar.github.io](http://sharepointoscar.github.io) | Oscar Medina | Independent Hacker |
| [ocram85.com](https://ocram85.com) | Marco Blessing | A personal blog about PowerShell and automation |
| [khanna.cc](https://khanna.cc/) | Harry Khanna | Law and software |
# FAQ and support # FAQ and support
Visit the [official FAQ page](https://beautifuljekyll.com/faq) for answers to commonly asked questions. If you need any help, I suggest heading over to the [Jekyll support forum](https://talk.jekyllrb.com/).
Beautiful Jekyll is used by 50,000+ people with wildly varying degrees of web skills, so it's impossible to answer all the questions that may arise. For any question that's not specifically related to Beautiful Jekyll and is more about Jekyll or web development in general, the answer can often be found on Google, in the [Jekyll documentation](https://jekyllrb.com/), or on 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.
To receive support, select one of the [different plans](https://beautifuljekyll.com/plans) Beautiful Jekyll offers. You can also use the [Discussions](https://github.com/daattali/beautiful-jekyll/discussions) area to try to get help from the community. ### 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.
### 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.
### 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/"`).
### What size do you recommend using for the `cover-img` 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.
### 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.
# Contributions # Contributions
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. 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!
You can also contribute by becoming an [official sponsor](https://github.com/sponsors/daattali/sponsorships?tier_id=39856) to help keep Beautiful Jekyll well-maintained. You can also contribute by becoming an [official sponsor](https://github.com/sponsors/daattali) to help keep beautiful-jekyll well-maintained.
# 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'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.
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
- 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.

View File

@ -1,12 +1,10 @@
# Welcome to Beautiful Jekyll! # --- Basic options --- #
# 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.
# --- Required options --- #
# Name of website # Name of website
title: My Website title: My website
# Short description of your site
description: A virtual proof that I'm awesome
# Your name to show in the footer # Your name to show in the footer
author: Some Person author: Some Person
@ -26,32 +24,32 @@ navbar-links:
# Remove this parameter if you don't want an image in the navbar # Remove this parameter if you don't want an image in the navbar
avatar: "/assets/img/avatar-icon.png" avatar: "/assets/img/avatar-icon.png"
# 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 here.
round-avatar: true round-avatar: true
# If you want to have an image logo in the top-left corner instead of having the title of the website, # If you want to have an image logo in the top-left corner instead of the title text,
# then specify the following parameter # then specify the following parameter
#title-img: /path/to/image #title-img: /path/to/image
# --- Footer social media links --- # # --- Footer options --- #
# 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.
# 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".
social-network-links: social-network-links:
email: "someone@example.com" email: "someone@example.com"
facebook: deanattali facebook: deanattali
github: daattali github: daattali
twitter: daattali twitter: daattali
patreon: DeanAttali rss: true
youtube: c/daattali
# medium: yourname
# reddit: yourname # reddit: yourname
# linkedin: daattali # linkedin: daattali
# xing: yourname # xing: yourname
# stackoverflow: "3943160/daattali" # stackoverflow: "3943160/daattali"
# snapchat: deanat78 # snapchat: deanat78
# instagram: deanat78 # instagram: deanat78
# youtube: user/deanat78
# spotify: yourname # spotify: yourname
# telephone: +14159998888 # telephone: +14159998888
# steam: deanat78 # steam: deanat78
@ -59,13 +57,6 @@ social-network-links:
# yelp: yourname # yelp: yourname
# telegram: yourname # telegram: yourname
# calendly: yourname # calendly: yourname
# mastodon: instance.url/@username
# ORCID: your ORCID ID
# google-scholar: your google scholar
# If you want to show a link to an RSS in the footer, add the site description here.
# If you don't want to show an RSS link, remove the following line.
rss-description: This website is a virtual proof that I'm awesome
# --- General options --- # # --- General options --- #
@ -74,71 +65,46 @@ share-links-active:
twitter: true twitter: true
facebook: true facebook: true
linkedin: true linkedin: true
vk: false
# How to display the link to your website in the footer # How to display the link to your 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: "MyWebsite.com" url-pretty: "MyWebsite.com"
# Excerpt word length - Truncate the excerpt of each post on the feed page to the specified number of words # Create a "tags" index page and make tags on each post clickable
link-tags: true
# Excerpt Word Length - Truncates the excerpt to the specified number of words on the index page
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
# The keywords to associate with your website, for SEO purposes
#keywords: "my,list,of,keywords"
# --- Colours / background image --- # # --- Colours / background image --- #
# Personalize the colours in your website. Colour values can be any valid CSS colour # Personalize the colors in your website. Colour values can be any valid CSS colour
navbar-col: "#EAEAEA" navbar-col: "#F5F5F5"
navbar-text-col: "#404040" navbar-text-col: "#404040"
navbar-border-col: "#DDDDDD" 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: "#EAEAEA" footer-col: "#F5F5F5"
footer-text-col: "#777777" footer-text-col: "#777777"
footer-link-col: "#404040" footer-link-col: "#404040"
# Alternatively, the navbar, footer, and page background can be set to an image # Alternatively, the navbar, footer, and page background can be set to use background images
# 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"
# Suggest a colour for mobile browsers to use as the browser's theme. This is only supported by a few mobile browsers. # --- Web Statistics Section --- #
#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 gtag.js ID to track your website using gtag # Fill in your Google Analytics gtag.js ID to track your website using gtag
#gtag: "" #gtag: ""
# Fill in your Google Analytics ID to track your website using Google Analytics # Fill in your Google Analytics ID to track your website using GA
#google_analytics: "" #google_analytics: ""
# Fill in your Cloudflare Analytics beacon token to track your website using Cloudflare Analytics
#cloudflare_analytics: ""
# Google Tag Manager ID # Google Tag Manager ID
#gtm: "" #gtm: ""
@ -168,32 +134,37 @@ footer-link-col: "#404040"
# 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, uncomment the following section. You may leave the reCaptcha # To use Staticman comments, first invite `staticmanlab` as a collaborator to your repository and
# section commented if you aren't using reCaptcha for spam protection. # accept the invitation by going to `https://staticman3.herokuapp.com/v3/connect/github/<username>/<repo-name>`.
# Using Staticman requires advanced knowledge, please consult # Then uncomment the following section and fill in "repository", "branch", and "endpoint".
# https://github.com/eduardoboucas/staticman/ and https://staticman.net/ for further # If you want to use reCaptcha for staticman (optional for spam protection), then fill
# instructions. For any support with staticman please direct questions to staticman and # in the "siteKey" and "secret" parameters below and also in `staticman.yml`.
# not to BeautifulJekyll. # See more details at https://staticman.net/
#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 : # URL of your deployment, with a trailing slash eg. "https://<your-api>/v3/entry/github/" # endpoint : # URL of your own deployment, with a trailing slash (will fallback to a public GitLab instance) eg. https://<your-api>/v3/entry/github/
# reCaptcha: # (optional, set these parameters in `staticman.yml` as well) # reCaptcha:
# siteKey : # You need to apply for a site key on Google # siteKey : # Use your own site key, you need to apply for one on Google
# secret : # Encrypt your password by going to https://<your-own-api>/v3/encrypt/<your-site-secret> # secret : # ENCRYPT your password by going to https://staticman3.herokuapp.com/v3/encrypt/<your-site-secret>
# --- 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"
# 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/Toronto" timezone: "America/Vancouver"
markdown: kramdown markdown: kramdown
highlighter: rouge highlighter: rouge
permalink: /:year-:month-:day-:title/ permalink: /:year-:month-:day-:title/
@ -212,11 +183,13 @@ defaults:
layout: "post" layout: "post"
comments: true # add comments to all blog posts comments: true # add comments to all blog posts
social-share: true # add social media sharing buttons to all blog posts social-share: true # add social media sharing buttons to all blog posts
readtime: false # add estimated reading time on all blog posts
- -
scope: scope:
path: "" # any file that's not a post will be a "page" layout by default path: "" # all files
values: values:
layout: "page" layout: "page"
show-avatar: true
# Exclude these files from production site # Exclude these files from production site
exclude: exclude:
@ -235,4 +208,3 @@ plugins:
# Beautiful Jekyll / Dean Attali # Beautiful Jekyll / Dean Attali
# 2fc73a3a967e97599c9763d05e564189 # 2fc73a3a967e97599c9763d05e564189

View File

@ -487,7 +487,7 @@ pa: &DEFAULT_PA
comment_success_msg : "ਤੁਹਾਡੀਆਂ ਟਿੱਪਣੀਆਂ ਲਈ ਧੰਨਵਾਦ! ਇਹ ਮਨਜ਼ੂਰੀ ਮਿਲਣ ਦੇ ਬਾਅਦ ਸਾਈਟ 'ਤੇ ਦਿਖਾਇਆ ਜਾਵੇਗਾ।" comment_success_msg : "ਤੁਹਾਡੀਆਂ ਟਿੱਪਣੀਆਂ ਲਈ ਧੰਨਵਾਦ! ਇਹ ਮਨਜ਼ੂਰੀ ਮਿਲਣ ਦੇ ਬਾਅਦ ਸਾਈਟ 'ਤੇ ਦਿਖਾਇਆ ਜਾਵੇਗਾ।"
comment_error_msg : "ਮੁਆਫ ਕਰਨਾ, ਤੁਹਾਡੀ ਅਧੀਨਗੀ ਵਿੱਚ ਕੋਈ ਗਲਤੀ ਹੋਈ ਸੀ ਕਿਰਪਾ ਕਰਕੇ ਯਕੀਨੀ ਬਣਾਓ ਕਿ ਸਾਰੇ ਲੋੜੀਂਦੇ ਖੇਤਰ ਪੂਰੇ ਹੋ ਗਏ ਹਨ ਅਤੇ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।" comment_error_msg : "ਮੁਆਫ ਕਰਨਾ, ਤੁਹਾਡੀ ਅਧੀਨਗੀ ਵਿੱਚ ਕੋਈ ਗਲਤੀ ਹੋਈ ਸੀ ਕਿਰਪਾ ਕਰਕੇ ਯਕੀਨੀ ਬਣਾਓ ਕਿ ਸਾਰੇ ਲੋੜੀਂਦੇ ਖੇਤਰ ਪੂਰੇ ਹੋ ਗਏ ਹਨ ਅਤੇ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।"
pa-IN: pa-IN:
<<: *DEFAULT_PA <<: *DEFAULT_PA
# Another locale # Another locale
# -------------- # --------------

View File

@ -1,8 +0,0 @@
{% 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 %}

View File

@ -1,6 +1,6 @@
{% 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 %} {% endif %}

View File

@ -19,12 +19,6 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if site.site-js %}
{% for js in site.site-js %}
<script src="{{ js | relative_url }}"></script>
{% endfor %}
{% endif %}
{% if page.ext-js %} {% if page.ext-js %}
{% for js in page.ext-js %} {% for js in page.ext-js %}
{% include ext-js.html js=js %} {% include ext-js.html js=js %}

View File

@ -5,9 +5,7 @@
{% include social-networks-links.html %} {% include social-networks-links.html %}
{% if page.footer-extra %} {% if page.footer-extra %}
<div class="footer-custom-content"> <div class="footer-custom-content">
{% for file in page.footer-extra %} {% include {{ page.footer-extra }} %}
{% include {{ file }} %}
{% endfor %}
</div> </div>
{% endif %} {% endif %}
<p class="copyright text-muted"> <p class="copyright text-muted">
@ -19,9 +17,7 @@
{% if site.url-pretty %} {% if site.url-pretty %}
&nbsp;&bull;&nbsp; &nbsp;&bull;&nbsp;
<span class="author-site"> <a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
<a href="{% if site.url-canonical %}{{ site.url-canonical }}{% else %}{{ '' | absolute_url }}{% endif %}">{{ site.url-pretty }}</a>
</span>
{% endif %} {% endif %}
{% if site.matomo %} {% if site.matomo %}
@ -31,10 +27,11 @@
{% endif %} {% endif %}
{% endif%} {% endif%}
</p> </p>
{% unless site.remove-ads %}<p class="theme-by text-muted"> <!-- Please don't remove this, keep my open source work credited :) -->
Powered by <p class="theme-by text-muted">
<a href="https://beautifuljekyll.com">Beautiful Jekyll</a> Theme by
</p>{% endunless %} <a href="https://beautifuljekyll.com">beautiful-jekyll</a>
</p>
</div> </div>
</div> </div>
</div> </div>

View File

@ -2,49 +2,21 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% capture title %} <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 page.share-title -%}
{{ page.share-title | strip_html | xml_escape }}
{%- elsif page.title -%}
{{ page.title | strip_html | xml_escape }}
{%- else -%}
{{ site.title | strip_html | xml_escape }}
{%- endif -%}
{% endcapture %}
{% capture description %}
{%- if page.share-description -%}
{{ page.share-description | strip_html | xml_escape }}
{%- elsif page.subtitle -%}
{{ page.subtitle | strip_html | xml_escape }}
{%- else -%}
{%- assign excerpt_length = site.excerpt_length | default: 50 -%}
{{ page.content | strip_html | xml_escape | truncatewords: excerpt_length | strip }}
{%- endif -%}
{% endcapture %}
<title>{{ title }}</title>
{% if site.author %} {% if site.author %}
<meta name="author" content="{{ site.author }}"> <meta name="author" content="{{ site.author }}">
{% endif %} {% endif %}
<meta name="description" content="{{ description }}"> {% if page.subtitle %}
<meta name="description" content="{{ page.subtitle }}">
{% if site.mobile-theme-col %}
<meta name="theme-color" content="{{ site.mobile-theme-col }}">
{% endif %} {% endif %}
{% if site.keywords %} <link rel="alternate" type="application/rss+xml" title="{{ site.title | default: 'Untitled' }} {{ site.title-separator | default: '-' }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}">
<meta name="keywords" content="{{ site.keywords }}">
{% endif %}
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}">
{% include gtag.html %} {% include gtag.html %}
{% include gtm_head.html %} {% include gtm_head.html %}
{% include google_analytics.html %} {% include google_analytics.html %}
{% include cloudflare_analytics.html %}
{% if layout.common-ext-css %} {% if layout.common-ext-css %}
{% for css in layout.common-ext-css %} {% for css in layout.common-ext-css %}
@ -58,93 +30,91 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if site.site-css %}
{% for css in site.site-css %}
<link rel="stylesheet" href="{{ css | relative_url }}">
{% endfor %}
{% endif %}
{% if page.ext-css %} {% if page.ext-css %}
{% for css in page.ext-css %} {% for css in page.ext-css %}
{% include ext-css.html css=css %} {% include ext-css.html css=css %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% 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 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 site.title %} {% if page.meta-title %}
<meta property="og:site_name" content="{{ site.title }}"> <meta property="og:title" content="{{ page.meta-title }}">
{% elsif page.title %}
<meta property="og:title" content="{{ page.title }}">
{% elsif site.title %}
<meta property="og:title" content="{{ site.title }}">
{% endif %} {% endif %}
{%- capture img -%} {% if page.meta-description %}
{%- if page.share-img -%} <meta property="og:description" content="{{ page.meta-description }}">
{{ page.share-img }} {% elsif page.subtitle %}
{%- elsif page.cover-img -%} <meta property="og:description" content="{{ page.subtitle }}">
{%- if page.cover-img.first -%} {% else %}
{{ page.cover-img[0].first.first }} <meta property="og:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
{%- else -%}
{{ page.cover-img }}
{%- endif -%}
{%- elsif page.thumbnail-img -%}
{{ page.thumbnail-img }}
{%- elsif site.avatar -%}
{{ site.avatar }}
{% endif %}
{%- endcapture -%}
{%- assign img=img | strip -%}
<meta property="og:title" content="{{ title }}">
<meta property="og:description" content="{{ description }}">
{% if img != "" %}
<meta property="og:image" content="{{ img | absolute_url }}">
{% endif %} {% endif %}
<meta property="og:type" content="website">
{% if page.id %} {% if page.id %}
<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 }}">
<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:type" content="website">
<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 %}
{% if img != "" and img != site.avatar %} {% if page.share-img %}
<meta name="twitter:card" content="summary_large_image"> <meta property="og:image" content="{{ page.share-img }}">
{% else %} {% elsif site.avatar %}
<meta name="twitter:card" content="summary"> <meta property="og:image" content="{{ site.avatar | absolute_url }}">
{% endif %} {% endif %}
<!-- Twitter summary cards -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@{{ site.social-network-links.twitter }}"> <meta name="twitter:site" content="@{{ site.social-network-links.twitter }}">
<meta name="twitter:creator" content="@{{ site.social-network-links.twitter }}"> <meta name="twitter:creator" content="@{{ site.social-network-links.twitter }}">
<meta property="twitter:title" content="{{ title }}"> {% if page.meta-title %}
<meta property="twitter:description" content="{{ description }}"> <meta name="twitter:title" content="{{ page.meta-title }}">
{% elsif page.title %}
{% if img != "" %} <meta name="twitter:title" content="{{ page.title }}">
<meta name="twitter:image" content="{{ img | absolute_url }}"> {% else %}
<meta name="twitter:title" content="{{ site.title }}">
{% endif %} {% endif %}
{% if page.meta-description %}
<meta name="twitter:description" content="{{ page.meta-description }}">
{% elsif page.subtitle %}
<meta name="twitter:description" content="{{ page.subtitle }}">
{% else %}
<meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
{% endif %}
{% if page.share-img %}
<meta name="twitter:image" content="{{ page.share-img }}">
{% elsif site.avatar %}
<meta name="twitter:image" content="{{ site.avatar | absolute_url }}">
{% endif %}
{% if site.matomo %}
{% include matomo.html %} {% include matomo.html %}
{% endif %}
{% if page.comments and site.staticman.repository and site.staticman.branch %} {% if page.comments and site.staticman.repository and site.staticman.branch %}
<!-- Staticman -->
<link rel="stylesheet" href="{{ "/assets/css/staticman.css" | relative_url }}"> <link rel="stylesheet" href="{{ "/assets/css/staticman.css" | relative_url }}">
{% endif %} {% endif %}
{% if page.head-extra %}
{% for file in page.head-extra %}
{% include {{ file }} %}
{% endfor %}
{% endif %}
</head> </head>

View File

@ -10,10 +10,10 @@
{% assign imgnum = forloop.index %} {% assign imgnum = forloop.index %}
{% for imginfo in bigimg %} {% for imginfo in bigimg %}
{% if imginfo[0] %} {% if imginfo[0] %}
data-img-src-{{ imgnum }}="{{ imginfo[0] | absolute_url }}" data-img-src-{{ imgnum }}="{{ imginfo[0] | relative_url }}"
data-img-desc-{{ imgnum }}="{{ imginfo[1] }}" data-img-desc-{{ imgnum }}="{{ imginfo[1] }}"
{% else %} {% else %}
data-img-src-{{ imgnum }}="{{ imginfo | absolute_url }}" data-img-src-{{ imgnum }}="{{ imginfo | relative_url }}"
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
@ -28,27 +28,21 @@
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1"> <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-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: date_format }}</span>
{% if page.last-updated %} {% if page.readtime %}
<span class="post-meta"> {% include readtime.html %}
<span class="d-none d-md-inline middot">&middot;</span>
Last updated {{ page.last-updated | date: date_format }}
</span>
{% endif %}
{% if page.readtime %}
{% include readtime.html %}
{% endif %}
{% endif %} {% endif %}
{% endif %}
</div> </div>
</div> </div>
</div> </div>
@ -62,27 +56,21 @@
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1"> <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-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: date_format }}</span>
{% if page.last-updated %} {% if page.readtime %}
<span class="post-meta"> {% include readtime.html %}
<span class="d-none d-md-inline middot">&middot;</span>
Last updated {{ page.last-updated | date: date_format }}
</span>
{% endif %}
{% if page.readtime %}
{% include readtime.html %}
{% endif %}
{% endif %} {% endif %}
{% endif %}
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,7 +1,7 @@
<nav class="navbar navbar-expand-xl navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% else %}top-nav-regular{% endif %}"> <nav class="navbar navbar-expand-md navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% endif %}">
{%- if site.title-img -%} {%- if site.title-img -%}
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img | relative_url}}"/></a> <a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img }}"/></a>
{%- elsif site.title -%} {%- elsif site.title -%}
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a> <a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
{%- endif -%} {%- endif -%}
@ -30,33 +30,25 @@
</li> </li>
{%- endif -%} {%- endif -%}
{%- endfor -%} {%- endfor -%}
{% if site.post_search %}
<li class="nav-item">
<a class="nav-link" id="nav-search-link" href="#" title="Search">
<span id="nav-search-icon" class="fa fa-search"></span>
<span id="nav-search-text">Search</span>
</a>
</li>
{%- endif -%}
</ul> </ul>
</div> </div>
{% if site.navbar-extra %} {% if page.image and (layout.show-avatar or page.show-avatar) %}
{% for file in site.navbar-extra %}
{% include {{ file }} %}
{% endfor %}
{% endif %}
{% if site.avatar and page.show-avatar != false %}
<div class="avatar-container"> <div class="avatar-container">
<div class="avatar-img-border"> <div class="avatar-img-border">
<a href="{{ '' | absolute_url }}"> <a href="{{ '' | absolute_url }}">
<img alt="Navigation bar avatar" class="avatar-img" src="{{ site.avatar | relative_url }}" /> <img alt="Navbar avatar" 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 alt="Navbar avatar" class="avatar-img" src="{{ site.avatar | relative_url }}" />
</a> </a>
</div> </div>
</div> </div>
{% endif %} {% endif %}
</nav> </nav>
{% include search.html %}

View File

@ -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="post-meta"><span class="d-none d-md-inline middot">&middot;</span> {{ yesReadTime }}</span> <span class="reader-time post-meta"><span class="d-none d-md-inline middot">&middot;</span> {{ yesReadTime }}</span>
{% elsif number < 1 %} {% elsif number < 1 %}
{% assign minReadTime = '&lt; 1 minute read' %} {% assign minReadTime = '&lt; 1 minute read' %}
<span class="post-meta"><span class="d-none d-md-inline middot">&middot;</span> {{ minReadTime }}</span> <span class="reader-time post-meta"><span class="d-none d-md-inline middot">&middot;</span> {{ minReadTime }}</span>
{% else %} {% else %}
{% assign nilReadTime = number | replace:'0',' ' %} {% assign nilReadTime = number | replace:'0',' ' %}
{{ nilReadTime }} {{ nilReadTime }}

View File

@ -1,39 +0,0 @@
{% 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>
var searchjson = '[ \
{% for post in site.posts %} \
{ \
"title" : "{% if post.title != "" %}{{ post.title | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \
"category" : "{{ post.tags | join: \', \' }}", \
"url" : "{{ site.baseurl }}{{ post.url }}", \
"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 | 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 %} \
]';
searchjson = JSON.parse(searchjson);
var sjs = SimpleJekyllSearch({
searchInput: document.getElementById('nav-search-input'),
resultsContainer: document.getElementById('search-results-container'),
json: searchjson
});
</script>
</div>
{% endif %}

View File

@ -1,6 +1,6 @@
<ul class="list-inline text-center footer-links"> <ul class="list-inline text-center footer-links">
{%- if site.rss-description -%} {%- if site.social-network-links.rss -%}
<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">
@ -59,7 +59,7 @@
</a> </a>
</li> </li>
{%- endif -%} {%- endif -%}
{%- if site.social-network-links.github -%} {%- if site.social-network-links.github -%}
<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://github.com/{{ site.social-network-links.github }}" title="GitHub">
@ -228,76 +228,4 @@
</li> </li>
{%- endif -%} {%- endif -%}
{%- if site.social-network-links.mastodon -%}
<li class="list-inline-item">
<a href="https://{{ site.social-network-links.mastodon }}" title="Mastodon">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-mastodon fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Mastodon</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.ORCID -%}
<li class="list-inline-item">
<a href="https://orcid.org/{{ site.social-network-links.ORCID }}" title="ORCID">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-orcid fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">ORCID</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.google-scholar -%}
<li class="list-inline-item">
<a href="https://scholar.google.com/{{ site.social-network-links.google-scholar }}" title="Google Scholar">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fa fa-graduation-cap fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Google Scholar</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.patreon -%}
<li class="list-inline-item">
<a href="https://patreon.com/{{ site.social-network-links.patreon }}" 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 site.social-network-links.medium -%}
<li class="list-inline-item">
<a href="https://medium.com/@{{ site.social-network-links.medium }}" 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 site.social-network-links.itchio -%}
<li class="list-inline-item">
<a href="https://{{ site.social-network-links.itchio }}.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>
</li>
{%- endif -%}
</ul> </ul>

View File

@ -34,22 +34,6 @@
</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 %}
{% if site.share-links-active.reddit %}
<a href="https://www.reddit.com/submit?url={{ page.url | absolute_url | url_encode }}"
class="btn btn-social-icon btn-reddit" title="Share on Reddit">
<span class="fab fa-fw fa-reddit" aria-hidden="true"></span>
<span class="sr-only">Reddit</span>
</a>
{% endif %}
</section> </section>
{% endif %} {% endif %}

View File

@ -39,7 +39,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 +48,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 +59,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,7 +75,7 @@
<!-- 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="https://code.jquery.com/jquery-3.5.1.slim.min.js"></scr' + 'ipt>'); document.write('<script src="{{ "/assets/js/jquery-1.11.2.min.js" | relative_url }}"></scr' + 'ipt>');
} }
</script> </script>
<script src="{{ "/assets/js/staticman.js" | relative_url }}"></script> <script src="{{ "/assets/js/staticman.js" | relative_url }}"></script>

View File

@ -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>

View File

@ -1,45 +1,40 @@
--- ---
common-css: common-css:
- "/assets/css/fonts.css"
- "/assets/css/bootstrap.min.css"
- "/assets/css/fontawesome5121/all.min.css"
- "/assets/css/bootstrap-social.css" - "/assets/css/bootstrap-social.css"
- "/assets/css/beautifuljekyll.css" - "/assets/css/main.css"
common-ext-css: common-ext-css:
#- href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
# sri: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" sri: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
#- "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" - "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css"
#- "https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" - "https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic"
#- "https://fonts.googleapis.com/css?family=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: common-ext-js:
#- href: "https://code.jquery.com/jquery-3.5.1.slim.min.js" - href: "https://code.jquery.com/jquery-3.4.1.min.js"
# sri: "sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs=" sri: "sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
#- href: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" - href: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
# sri: "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" sri: "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
#- href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
# sri: "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" sri: "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
common-js: common-js:
- "/assets/js/jquery-3.5.1.slim.min.js" - "/assets/js/main.js"
- "/assets/js/bootstrap.bundle.min.js"
- "/assets/js/beautifuljekyll.js"
--- ---
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ page.language | default: site.language | default: 'en' }}"> <html lang="{{ page.language | default: site.language | default: 'en' }}">
<!-- Beautiful Jekyll 5.0.0 | Copyright Dean Attali 2020 --> <!-- Beautiful Jekyll | MIT license | Copyright Dean Attali 2020 -->
{% include head.html %} {% include head.html %}
<body> <body>
{% include gtm_body.html %} {% include gtm_body.html %}
{% include nav.html %}
{% include nav.html %} {{ content }}
{{ content }} {% include footer.html %}
{% include footer.html %} {% include footer-scripts.html %}
{% include footer-scripts.html %} </body>
</body>
</html> </html>

View File

@ -4,22 +4,6 @@ layout: base
<div class="intro-header"></div> <div class="intro-header"></div>
<div role="main" class="{% if page.full-width %} container-fluid {% else %} container-md {% endif %}"> <div role="main" class="container-md">
{% if page.before-content %}
<div class="before-content">
{% for file in page.before-content %}
{% include {{ file }} %}
{% endfor %}
</div>
{% endif %}
{{ content }} {{ content }}
{% if page.after-content %}
<div class="after-content">
{% for file in page.after-content %}
{% include {{ file }} %}
{% endfor %}
</div>
{% endif %}
</div> </div>

View File

@ -9,32 +9,7 @@ layout: page
<div class="posts-list"> <div class="posts-list">
{% for post in posts %} {% for post in posts %}
<article class="post-preview"> <article class="post-preview">
<a href="{{ post.url | relative_url }}">
{%- capture thumbnail -%}
{% if post.thumbnail-img %}
{{ post.thumbnail-img }}
{% elsif post.cover-img %}
{% if post.cover-img.first %}
{{ post.cover-img[0].first.first }}
{% else %}
{{ post.cover-img }}
{% endif %}
{% else %}
{% endif %}
{% endcapture %}
{% assign thumbnail=thumbnail | strip %}
{% if site.feed_show_excerpt == false %}
{% if thumbnail != "" %}
<div class="post-image post-image-normal">
<a href="{{ post.url | absolute_url }}" aria-label="Thumbnail">
<img src="{{ thumbnail | absolute_url }}" alt="Post thumbnail">
</a>
</div>
{% endif %}
{% endif %}
<a href="{{ post.url | absolute_url }}">
<h2 class="post-title">{{ post.title }}</h2> <h2 class="post-title">{{ post.title }}</h2>
{% if post.subtitle %} {% if post.subtitle %}
@ -49,39 +24,34 @@ layout: page
Posted on {{ post.date | date: date_format }} Posted on {{ post.date | date: date_format }}
</p> </p>
{% if thumbnail != "" %} <div class="post-entry-container">
<div class="post-image post-image-small"> {% if post.image %}
<a href="{{ post.url | absolute_url }}" aria-label="Thumbnail"> <div class="post-image">
<img src="{{ thumbnail | absolute_url }}" alt="Post thumbnail"> <a href="{{ post.url | relative_url }}">
</a> <img src="{{ post.image | relative_url }}">
</div> </a>
{% endif %} </div>
{% 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">
{% assign excerpt_length = site.excerpt_length | default: 50 %}
{{ post.excerpt | strip_html | xml_escape | truncatewords: excerpt_length }}
{% assign excerpt_word_count = post.excerpt | number_of_words %}
{% if post.content != post.excerpt or excerpt_word_count > excerpt_length %}
<a href="{{ post.url | absolute_url }}" class="post-read-more">[Read&nbsp;More]</a>
{% endif %} {% endif %}
<div class="post-entry">
{% assign excerpt_length = site.excerpt_length | default: 50 %}
{{ post.excerpt | strip_html | xml_escape | truncatewords: excerpt_length }}
{% assign excerpt_word_count = post.excerpt | number_of_words %}
{% if post.content != post.excerpt or excerpt_word_count > excerpt_length %}
<a href="{{ post.url | relative_url }}" class="post-read-more">[Read&nbsp;More]</a>
{% endif %}
</div>
</div> </div>
{% endunless %}
{% if site.feed_show_tags != false and post.tags.size > 0 %} {% if post.tags.size > 0 %}
<div class="blog-tags"> <div class="blog-tags">
<span>Tags:</span> Tags:
{% if site.link-tags %}
{% for tag in post.tags %} {% for tag in post.tags %}
<a href="{{ '/tags' | absolute_url }}#{{- tag -}}">{{- tag -}}</a> <a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a>
{% endfor %} {% endfor %}
{% else %}
{{ post.tags | join: ", " }}
{% endif %}
</div> </div>
{% endif %} {% endif %}
@ -93,12 +63,12 @@ layout: page
<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 }}">&larr; Newer Posts</a> <a class="page-link" href="{{ paginator.previous_page_path | relative_url }}">&larr; Newer Posts</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 &rarr;</a> <a class="page-link" href="{{ paginator.next_page_path | relative_url }}">Older Posts &rarr;</a>
</li> </li>
{% endif %} {% endif %}
</ul> </ul>

View File

@ -1,12 +1,12 @@
--- ---
common-css: common-css:
- "/assets/css/beautifuljekyll-minimal.css" - "/assets/css/main-minimal.css"
common-ext-css: common-ext-css:
- href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
sri: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" sri: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
common-ext-js: common-ext-js:
- href: "https://code.jquery.com/jquery-3.5.1.slim.min.js" - href: "https://code.jquery.com/jquery-3.4.1.min.js"
sri: "sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs=" sri: "sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
- href: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" - href: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
sri: "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" sri: "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
- href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
@ -20,24 +20,8 @@ common-ext-js:
<body> <body>
<div role="main" class="{% if page.full-width %} container-fluid {% else %} container-md {% endif %} main-content"> <div role="main" class="container-md main-content">
{% if page.before-content %}
<div class="before-content">
{% for file in page.before-content %}
{% include {{ file }} %}
{% endfor %}
</div>
{% endif %}
{{ content }} {{ content }}
{% if page.after-content %}
<div class="after-content">
{% for file in page.after-content %}
{% include {{ file }} %}
{% endfor %}
</div>
{% endif %}
</div> </div>
{% include footer-minimal.html %} {% include footer-minimal.html %}

View File

@ -4,27 +4,10 @@ layout: base
{% include header.html type="page" %} {% include header.html type="page" %}
<div class="{% if page.full-width %} container-fluid {% else %} container-md {% endif %}" role="main"> <div class="container-md" role="main">
<div class="row"> <div class="row">
<div class="{% if page.full-width %} col {% else %} col-xl-8 offset-xl-2 col-lg-10 offset-lg-1 {% endif %}"> <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
{% if page.before-content %}
<div class="before-content">
{% for file in page.before-content %}
{% include {{ file }} %}
{% endfor %}
</div>
{% endif %}
{{ content }} {{ content }}
{% if page.after-content %}
<div class="after-content">
{% for file in page.after-content %}
{% include {{ file }} %}
{% endfor %}
</div>
{% endif %}
{% include comments.html %} {% include comments.html %}
</div> </div>
</div> </div>

View File

@ -4,9 +4,9 @@ layout: base
{% include header.html type="post" %} {% include header.html type="post" %}
<div class="{% if page.full-width %} container-fluid {% else %} container-md {% endif %}"> <div class="container-md">
<div class="row"> <div class="row">
<div class="{% if page.full-width %} col {% else %} col-xl-8 offset-xl-2 col-lg-10 offset-lg-1 {% endif %}"> <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
{% if page.gh-repo %} {% if page.gh-repo %}
{% assign gh_split = page.gh-repo | split:'/' %} {% assign gh_split = page.gh-repo | split:'/' %}
@ -31,32 +31,20 @@ layout: base
</div> </div>
{% endif %} {% endif %}
{% if page.before-content %}
<div class="before-content">
{% for file in page.before-content %}
{% include {{ file }} %}
{% endfor %}
</div>
{% endif %}
<article role="main" class="blog-post"> <article role="main" class="blog-post">
{{ content }} {{ content }}
</article> </article>
{% if page.tags.size > 0 %} {% if page.tags.size > 0 %}
<div class="blog-tags"> <div class="blog-tags">
<span>Tags:</span> Tags:
{% if site.link-tags %}
{% for tag in page.tags %} {% for tag in page.tags %}
<a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a> <a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a>
{% endfor %} {% endfor %}
</div> {% else %}
{% endif %} {{ page.tags | join: ", " }}
{% endif %}
{% if page.after-content %}
<div class="after-content">
{% for file in page.after-content %}
{% include {{ file }} %}
{% endfor %}
</div> </div>
{% endif %} {% endif %}

View File

@ -3,8 +3,6 @@ layout: post
title: Flake it till you make it title: Flake it till you make it
subtitle: Excerpt from Soulshaping by Jeff Brown subtitle: Excerpt from Soulshaping by Jeff Brown
cover-img: /assets/img/path.jpg cover-img: /assets/img/path.jpg
thumbnail-img: /assets/img/thumb.png
share-img: /assets/img/path.jpg
tags: [books, test] tags: [books, test]
--- ---

View File

@ -11,6 +11,6 @@ My name is Inigo Montoya. I have the following qualities:
What else do you need? What else do you need?
### My story ### 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](https://en.wikipedia.org/wiki/The_Princess_Bride_%28film%29) and it will answer **all** your questions.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,182 +0,0 @@
/* open-sans-300 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: url('../fonts/open-sans-v15-latin-300.eot'); /* IE9 Compat Modes */
src: local('Open Sans Light'), local('OpenSans-Light'),
url('../fonts/open-sans-v15-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v15-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v15-latin-300.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v15-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v15-latin-300.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-300italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 300;
src: url('../fonts/open-sans-v15-latin-300italic.eot'); /* IE9 Compat Modes */
src: local('Open Sans Light Italic'), local('OpenSans-LightItalic'),
url('../fonts/open-sans-v15-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v15-latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v15-latin-300italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v15-latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v15-latin-300italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-regular - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: url('../fonts/open-sans-v15-latin-regular.eot'); /* IE9 Compat Modes */
src: local('Open Sans Regular'), local('OpenSans-Regular'),
url('../fonts/open-sans-v15-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v15-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v15-latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v15-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v15-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 400;
src: url('../fonts/open-sans-v15-latin-italic.eot'); /* IE9 Compat Modes */
src: local('Open Sans Italic'), local('OpenSans-Italic'),
url('../fonts/open-sans-v15-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v15-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v15-latin-italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v15-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v15-latin-italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-600italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 600;
src: url('../fonts/open-sans-v15-latin-600italic.eot'); /* IE9 Compat Modes */
src: local('Open Sans SemiBold Italic'), local('OpenSans-SemiBoldItalic'),
url('../fonts/open-sans-v15-latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v15-latin-600italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v15-latin-600italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v15-latin-600italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v15-latin-600italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-600 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: url('../fonts/open-sans-v15-latin-600.eot'); /* IE9 Compat Modes */
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'),
url('../fonts/open-sans-v15-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v15-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v15-latin-600.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v15-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v15-latin-600.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-700 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: url('../fonts/open-sans-v15-latin-700.eot'); /* IE9 Compat Modes */
src: local('Open Sans Bold'), local('OpenSans-Bold'),
url('../fonts/open-sans-v15-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v15-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v15-latin-700.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v15-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v15-latin-700.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-700italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 700;
src: url('../fonts/open-sans-v15-latin-700italic.eot'); /* IE9 Compat Modes */
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'),
url('../fonts/open-sans-v15-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v15-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v15-latin-700italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v15-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v15-latin-700italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-800 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 800;
src: url('../fonts/open-sans-v15-latin-800.eot'); /* IE9 Compat Modes */
src: local('Open Sans ExtraBold'), local('OpenSans-ExtraBold'),
url('../fonts/open-sans-v15-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v15-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v15-latin-800.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v15-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v15-latin-800.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-800italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 800;
src: url('../fonts/open-sans-v15-latin-800italic.eot'); /* IE9 Compat Modes */
src: local('Open Sans ExtraBold Italic'), local('OpenSans-ExtraBoldItalic'),
url('../fonts/open-sans-v15-latin-800italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v15-latin-800italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v15-latin-800italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v15-latin-800italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v15-latin-800italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* lora-regular - latin */
@font-face {
font-family: 'Lora';
font-style: normal;
font-weight: 400;
src: url('../fonts/lora-v12-latin-regular.eot'); /* IE9 Compat Modes */
src: local('Lora Regular'), local('Lora-Regular'),
url('../fonts/lora-v12-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/lora-v12-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/lora-v12-latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/lora-v12-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/lora-v12-latin-regular.svg#Lora') format('svg'); /* Legacy iOS */
}
/* lora-italic - latin */
@font-face {
font-family: 'Lora';
font-style: italic;
font-weight: 400;
src: url('../fonts/lora-v12-latin-italic.eot'); /* IE9 Compat Modes */
src: local('Lora Italic'), local('Lora-Italic'),
url('../fonts/lora-v12-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/lora-v12-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/lora-v12-latin-italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/lora-v12-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/lora-v12-latin-italic.svg#Lora') format('svg'); /* Legacy iOS */
}
/* lora-700 - latin */
@font-face {
font-family: 'Lora';
font-style: normal;
font-weight: 700;
src: url('../fonts/lora-v12-latin-700.eot'); /* IE9 Compat Modes */
src: local('Lora Bold'), local('Lora-Bold'),
url('../fonts/lora-v12-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/lora-v12-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/lora-v12-latin-700.woff') format('woff'), /* Modern Browsers */
url('../fonts/lora-v12-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/lora-v12-latin-700.svg#Lora') format('svg'); /* Legacy iOS */
}
/* lora-700italic - latin */
@font-face {
font-family: 'Lora';
font-style: italic;
font-weight: 700;
src: url('../fonts/lora-v12-latin-700italic.eot'); /* IE9 Compat Modes */
src: local('Lora Bold Italic'), local('Lora-BoldItalic'),
url('../fonts/lora-v12-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/lora-v12-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/lora-v12-latin-700italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/lora-v12-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/lora-v12-latin-700italic.svg#Lora') format('svg'); /* Legacy iOS */
}

View File

@ -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;
} }

View File

@ -13,7 +13,7 @@ html {
body { body {
font-family: 'Lora', 'Times New Roman', serif; font-family: 'Lora', 'Times New Roman', serif;
font-size: 1.125rem; font-size: 1.125rem;
color: {{ site.text-col | default: "#404040" }}; color: #404040;
position: relative; position: relative;
background-color: {{ site.page-col | default: "#FFFFFF" }}; background-color: {{ site.page-col | default: "#FFFFFF" }};
{% if site.page-img %} {% if site.page-img %}
@ -42,9 +42,6 @@ h3 {
h4 { h4 {
font-size: 1.125rem; font-size: 1.125rem;
} }
h1, h2, h3, h4 {
margin-top: 1.25rem;
}
a { a {
color: {{ site.link-col | default: "#008AFF" }}; color: {{ site.link-col | default: "#008AFF" }};
} }
@ -68,33 +65,42 @@ hr.small {
} }
/* fix in-page anchors to not be behind fixed header */ /* fix in-page anchors to not be behind fixed header */
:target:before { :target:before {
content: ""; content: "";
display: block; display: block;
height: 3.125rem; /* navbar height */ height: 3.125rem; /* navbar height */
margin: -3.125rem 0 0; margin: -3.125rem 0 0;
} }
.main-content {
padding-top: 5rem;
}
@media (min-width: 768px) {
.main-content {
padding-top: 8.125rem;
}
}
.hideme { .hideme {
display: none; display: none;
} }
::-moz-selection { ::-moz-selection {
color: #fff; color: white;
text-shadow: none; text-shadow: none;
background-color: {{ site.hover-col | default: "#0085A1" }}; background-color: {{ site.hover-col | default: "#0085A1" }};
} }
::selection { ::selection {
color: #fff; color: white;
text-shadow: none; text-shadow: none;
background-color: {{ site.hover-col | default: "#0085A1" }}; background-color: {{ site.hover-col | default: "#0085A1" }};
} }
img::selection { img::selection {
color: #fff; color: white;
background: transparent; background: transparent;
} }
img::-moz-selection { img::-moz-selection {
color: #fff; color: white;
background: transparent; background: transparent;
} }
@ -102,13 +108,6 @@ img {
max-width: 100%; max-width: 100%;
} }
.linked-section {
padding-top: 3.75rem;
margin-top: -1.5625rem;
}
/* Comments */
.disqus-comments { .disqus-comments {
margin-top: 1.875rem; margin-top: 1.875rem;
} }
@ -119,19 +118,24 @@ img {
} }
} }
.linked-section {
padding-top: 3.75rem;
margin-top: -1.5625rem;
}
/* --- Navbar --- */ /* --- Navbar --- */
.navbar-custom { .navbar-custom {
background-color: {{ site.navbar-col | default: "#EAEAEA" }}; background-color: {{ site.navbar-col | default: "#F5F5F5" }};
border-bottom: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }}; border-bottom: 1px solid {{ site.navbar-border-col | default: "#EAEAEA" }};
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
{% if site.navbar-img %} {% if site.navbar-img %}
background-image: url({{ site.navbar-img | relative_url }}); background-image: url({{ site.navbar-img | relative_url }});
background-attachment: fixed; background-attachment: fixed;
{% endif %} {% endif %}
-webkit-transition: padding .5s ease-in-out; -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
-moz-transition: padding .5s ease-in-out; -moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
transition: padding .5s ease-in-out; transition: background .5s ease-in-out,padding .5s ease-in-out;
} }
.navbar-custom, .navbar-custom,
@ -173,18 +177,27 @@ img {
height: 2.5rem; height: 2.5rem;
} }
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus ,
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus,
.navbar-custom .navbar-nav .dropdown-item:hover,
.navbar-custom .navbar-nav .dropdown-item:focus {
color: {{ site.hover-col | default: "#0085A1" }};
}
.navbar-custom .navbar-nav .nav-item { .navbar-custom .navbar-nav .nav-item {
text-transform: uppercase; text-transform: uppercase;
font-size: 0.8125rem; font-size: 0.75rem;
letter-spacing: 0.0625rem; letter-spacing: 0.0625rem;
} }
.navbar-custom .navbar-nav .nav-link { .navbar-custom .navbar-nav .nav-link {
padding-top: 0; padding-top: 0;
padding-bottom: 0; padding-bottom: 0;
line-height: 1.25rem; line-height: 1.5;
padding-top: 0.9375rem; padding-top: 1rem;
padding-bottom: 0.9375rem; padding-bottom: 1rem;
} }
.navbar-custom .navbar-brand, .navbar-custom .navbar-brand,
@ -210,7 +223,7 @@ img {
border-width: 0.4em; border-width: 0.4em;
} }
@media (min-width: 1200px) { @media (min-width: 768px) {
.navbar-custom { .navbar-custom {
padding-top: 1.25rem; padding-top: 1.25rem;
padding-bottom: 1.25rem; padding-bottom: 1.25rem;
@ -225,17 +238,16 @@ img {
height: 3.125rem; height: 3.125rem;
} }
.navbar-expand-xl .navbar-nav .nav-link { .navbar-expand-md .navbar-nav .nav-link {
padding-left: 0.9375rem; padding-left: 0.9375rem;
padding-right: 0.9375rem; padding-right: 0.9375rem;
} }
.navbar-expand-md .navbar-nav .nav-item:last-child .nav-link {
.navbar-expand-xl .navbar-nav .nav-item:not(.dropdown):last-child .nav-link {
padding-right: 0; padding-right: 0;
} }
} }
@media (min-width: 1200px) { @media (min-width: 768px) {
.navbar-custom .nav-item.dropdown:hover { .navbar-custom .nav-item.dropdown:hover {
background: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.1);
} }
@ -257,28 +269,27 @@ img {
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item { .navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
white-space: normal; white-space: normal;
padding: 0.625rem; padding: 0.625rem;
background-color: {{ site.navbar-col | default: "#EAEAEA" }}; background-color: {{ site.navbar-col | default: "#F5F5F5" }};
text-decoration: none !important; text-decoration: none !important;
border-width: 0 1px 1px 1px; border-width: 0 1px 1px 1px;
font-weight: normal; font-weight: normal;
color: {{ site.navbar-text-col | default: "#404040" }};
} }
@media (min-width: 1200px) { @media (min-width: 768px) {
.navbar-custom .nav-item.dropdown .dropdown-menu { .navbar-custom .nav-item.dropdown .dropdown-menu {
text-align: center; text-align: center;
} }
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item { .navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
padding-left: 0.625rem; padding-left: 0.625rem;
border: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }}; border: 1px solid {{ site.navbar-border-col | default: "#EAEAEA" }};
border-width: 0 1px 1px; border-width: 0 1px 1px;
} }
} }
@media (max-width: 1199px) { @media (max-width: 767px) {
.navbar-custom .navbar-collapse { .navbar-custom .navbar-collapse {
border-top: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }}; border-top: 1px solid {{ site.navbar-border-col | default: "#EAEAEA" }};
margin: 0 -1rem; margin: 0 -1rem;
} }
@ -298,20 +309,12 @@ img {
padding-left: 2rem; padding-left: 2rem;
} }
} }
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus ,
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus,
.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:focus {
color: {{ site.hover-col | default: "#0085A1" }};
}
.navbar-custom .avatar-container { .navbar-custom .avatar-container {
position: absolute; position: absolute;
left: 50%; left: 50%;
width: 3.125rem; width: 3.125rem;
bottom: -1.5rem; margin-top: 1.75rem;
transition: opacity 0.5s ease-in-out; transition: opacity 0.5s ease-in-out;
-webkit-transition: opacity 0.5s ease-in-out; -webkit-transition: opacity 0.5s ease-in-out;
-moz-transition: opacity 0.5s ease-in-out; -moz-transition: opacity 0.5s ease-in-out;
@ -326,6 +329,7 @@ img {
.navbar-custom .avatar-container .avatar-img-border { .navbar-custom .avatar-container .avatar-img-border {
width: 100%; width: 100%;
display: inline-block;
margin-left: -50%; margin-left: -50%;
{% unless site.round-avatar == false %} {% unless site.round-avatar == false %}
border-radius: 50%; border-radius: 50%;
@ -346,13 +350,12 @@ img {
display: none; display: none;
} }
@media (min-width: 1200px) { @media (min-width: 768px) {
.navbar-custom.top-nav-regular .avatar-container { .navbar-custom .avatar-container {
width: 6.25rem; width: 6.25rem;
bottom: -1.9375rem;
} }
.navbar-custom.top-nav-regular .avatar-container .avatar-img-border { .navbar-custom .avatar-container .avatar-img-border {
width: 100%; width: 100%;
{% unless site.round-avatar == false %} {% unless site.round-avatar == false %}
box-shadow: 1px 1px 2px rgba(0, 0, 0, .8); box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
@ -361,7 +364,7 @@ img {
{% endunless %} {% endunless %}
} }
.navbar-custom.top-nav-regular .avatar-container .avatar-img { .navbar-custom .avatar-container .avatar-img {
width: 100%; width: 100%;
} }
} }
@ -373,7 +376,7 @@ footer {
border-top: 1px #EAEAEA solid; border-top: 1px #EAEAEA solid;
margin-top: 3.125rem; margin-top: 3.125rem;
font-size: 0.875rem; font-size: 0.875rem;
background-color: {{ site.footer-col | default: "#EAEAEA" }}; background-color: {{ site.footer-col | default: "#F5F5F5" }};
{% if site.footer-img %} {% if site.footer-img %}
background-image: url({{ site.footer-img | relative_url }}); background-image: url({{ site.footer-img | relative_url }});
background-attachment: fixed; background-attachment: fixed;
@ -424,12 +427,11 @@ footer .footer-custom-content {
} }
} }
/* --- Post preview (feed) --- */ /* --- Post preview --- */
.post-preview { .post-preview {
padding: 1.25rem 0; padding: 1.25rem 0;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
overflow: hidden;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
@ -444,8 +446,7 @@ footer .footer-custom-content {
.post-preview a { .post-preview a {
text-decoration: none; text-decoration: none;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #404040;
color: {{ site.text-col | default: "#404040" }};
} }
.post-preview a:focus, .post-preview a:focus,
@ -469,70 +470,32 @@ footer .footer-custom-content {
font-size: 1.125rem; font-size: 1.125rem;
font-style: italic; font-style: italic;
margin: 0 0 0.625rem; margin: 0 0 0.625rem;
font-family: 'Lora', 'Times New Roman', serif;
}
.post-heading .post-meta {
display: inline-block;
}
@media (max-width: 767px) {
.post-heading .post-meta {
display: block;
margin-bottom: 0;
}
}
.post-heading .post-meta .middot {
margin: 0 0.625rem;
} }
.post-preview .post-entry { .post-preview .post-entry {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.post-entry-container {
display: inline-block;
width: 100%; width: 100%;
} }
.post-preview .post-image { .post-entry {
width: 100%;
}
.post-image {
float: right; float: right;
margin-left: 0.625rem; height: 12rem;
width: 12rem;
margin-top: -2.1875rem;
filter: grayscale(90%);
}
.post-image:hover {
filter: grayscale(0%);
}
.post-image img {
border-radius: 6.25rem;
height: 12rem; height: 12rem;
width: 12rem; width: 12rem;
} }
.post-preview .post-image {
filter: grayscale(40%);
}
.post-preview .post-image:hover {
filter: grayscale(0%);
}
.post-preview .post-image img {
max-height: 100%;
max-width: 100%;
}
.post-preview .post-image-short {
margin-top: -2.1875rem;
}
@media (max-width: 767px) {
.post-preview .post-image {
height: 9rem;
width: 9rem;
}
.post-preview .post-image-short {
margin-top: 0;
}
}
.post-preview .post-image-small {
width: 100%;
height: 100%;
text-align: center;
display: none;
}
.post-preview .post-image-small img {
max-width: 6.25rem;
max-height: 6.25rem;
}
@media (max-width: 500px) {
.post-preview .post-image {
display: none;
}
.post-preview .post-image-small {
display: block;
}
}
.post-preview .post-read-more { .post-preview .post-read-more {
font-weight: 800; font-weight: 800;
} }
@ -547,28 +510,21 @@ footer .footer-custom-content {
.blog-tags { .blog-tags {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #999;
font-size: 0.9375rem; font-size: 0.9375rem;
margin: 1.875rem 0; margin-bottom: 1.875rem;
}
.blog-tags span {
color: {{ site.text-col | default: "#404040" }};
opacity: 0.8;
} }
.blog-tags a { .blog-tags a {
color: {{ site.text-col | default: "#404040" }}; color: {{ site.link-col | default: "#008AFF" }};
text-decoration: none; text-decoration: none;
padding: 0 0.3125rem; padding: 0 0.3125rem;
opacity: 0.8;
border: 1px solid transparent;
border-radius: 0.1875rem;
} }
.blog-tags a:hover { .blog-tags a:hover {
opacity: 1; border-radius: 2px;
color: {{ site.text-col | default: "#404040" }}; color: {{ site.hover-col | default: "#0085A1" }};
border-color: {{ site.text-col | default: "#404040" }}; background-color: #EEE;
} }
.post-preview .blog-tags { .post-preview .blog-tags {
@ -582,30 +538,19 @@ footer .footer-custom-content {
} }
} }
/* Tags page */ @media (max-width: 500px) {
.post-image, .post-image img {
height: 6.25rem;
width: 6.25rem;
}
.tag-btn { .post-image {
margin: 0.3125rem; width: 100%;
text-align: center;
margin-top: 0;
float: left;
}
} }
#full-tags-list {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
#full-tags-list .tag-entry {
margin: 0 0 0.9375rem 1.5625rem;
}
#full-tags-list .tag-entry a {
font-size: 1.25rem;
}
#full-tags-list .tag-entry .entry-date {
color: #808080;
font-style: italic;
font-size: 1rem;
}
/* --- Post and page headers --- */ /* --- Post and page headers --- */
.intro-header { .intro-header {
@ -621,12 +566,6 @@ footer .footer-custom-content {
margin-top: 3.1875rem; /* The small navbar is 50px tall + 1px border */ margin-top: 3.1875rem; /* The small navbar is 50px tall + 1px border */
margin-bottom: 2.1875rem; margin-bottom: 2.1875rem;
} }
nav.top-nav-short-permanent ~ header > .intro-header {
margin-top: 5rem;
}
nav.top-nav-short-permanent ~ header > .intro-header.big-img {
margin-top: 3.1875rem;
}
.intro-header.big-img .big-img-transition { .intro-header.big-img .big-img-transition {
position: absolute; position: absolute;
width: 100%; width: 100%;
@ -693,7 +632,7 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img {
bottom: 0; bottom: 0;
display: none; display: none;
} }
@media (min-width: 1200px) { @media (min-width: 768px) {
.intro-header { .intro-header {
margin-top: 8.125rem; margin-top: 8.125rem;
} }
@ -748,6 +687,17 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img {
} }
} }
.caption {
text-align: center;
font-size: 0.875rem;
padding: 0.625rem;
font-style: italic;
margin: 0;
display: block;
border-bottom-right-radius: 0.3125rem;
border-bottom-left-radius: 0.3125rem;
}
#header-gh-btns { #header-gh-btns {
margin-bottom: 0.9375rem; margin-bottom: 0.9375rem;
} }
@ -758,6 +708,18 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img {
} }
} }
.reader-time {
display: inline-block;
}
@media (max-width: 767px) {
.reader-time {
display: block;
}
}
.reader-time .middot {
margin: 0 0.625rem;
}
/* --- Pagination --- */ /* --- Pagination --- */
.pagination { .pagination {
@ -788,7 +750,7 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img {
padding: 0.625rem 0.3125rem; padding: 0.625rem 0.3125rem;
background-color: #FFF; background-color: #FFF;
border-radius: 0; border-radius: 0;
color: {{ site.text-col | default: "#404040" }}; color: #404040;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
.pagination .page-item .page-link { .pagination .page-item .page-link {
@ -840,22 +802,9 @@ table tr td :last-child {
/* --- Code blocks --- */ /* --- Code blocks --- */
code {
padding: 0.125rem 0.25rem;
color: #c7254e;
background-color: #f9f2f4;
border-radius: 0.25rem;
}
pre code {
padding: 0;
background-color: transparent;
border-radius: 0;
}
pre { pre {
font-size: 0.875rem; font-size: 1rem;
line-height: 1.5em; line-height: 1.5;
border-radius: 0.25rem; border-radius: 0.25rem;
padding: 0.59375rem; padding: 0.59375rem;
} }
@ -866,7 +815,7 @@ pre {
} }
.highlight > pre { .highlight > pre {
background-image: linear-gradient( background-image: linear-gradient(
rgba(0,0,0,0.03), rgba(0,0,0,0.03) 1.5em, rgba(0,0,0,0.02) 1.5em, rgba(0,0,0,0.02) 3em); 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-size: auto 3em;
background-position-y: 0.625rem; background-position-y: 0.625rem;
border: 1px solid rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.1);
@ -875,9 +824,7 @@ pre {
.highlight > pre:not([class~="highlight"]) { /* code block with line number */ .highlight > pre:not([class~="highlight"]) { /* code block with line number */
padding: 0; padding: 0;
} }
.highlight table, .highlight table, .highlight tr, .highlight td { /* to be removed after fixing table styles */
.highlight tr,
.highlight td { /* to be removed after fixing table styles */
border: none; border: none;
background: none; background: none;
padding: 0; padding: 0;
@ -900,28 +847,14 @@ pre {
background: none; background: none;
} }
/* Fix table border github gist snippets */
.gist, .gist-file table tr {
border: unset;
}
.gist, .gist-file table tr td {
border: unset;
}
/* --- Social media sharing section --- */ /* --- Social media sharing section --- */
#social-share-section { #social-share-section {
margin-bottom: 1.875rem; margin-bottom: 1.875rem;
margin-top: 1.875rem;
} }
/* --- Notification boxes --- */ /* --- Notification boxes --- */
.box-note, .box-note, .box-warning, .box-error, .box-success {
.box-warning,
.box-error,
.box-success {
padding: 0.9375rem 0.9375rem 0.9375rem 0.625rem; padding: 0.9375rem 0.9375rem 0.9375rem 0.625rem;
margin: 1.25rem 1.25rem 1.25rem 0.3125rem; margin: 1.25rem 1.25rem 1.25rem 0.3125rem;
border: 1px solid #eee; border: 1px solid #eee;
@ -949,148 +882,36 @@ pre {
border-left-color: #3CB371; border-left-color: #3CB371;
} }
/* --- Misc blog post styles --- */ /* Fix table border github gist snippets */
.blog-post :first-child { .gist, .gist-file table tr {
margin-top: 0; border: unset;
} }
.blog-post img { .gist, .gist-file table tr td {
max-width: 100%; border: unset;
} }
.blog-post .caption { /* Tags page */
text-align: center;
font-size: 0.875rem; .tag-btn {
padding: 0.625rem; margin: 0.3125rem;
}
#full-tags-list {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
#full-tags-list .tag-entry {
margin: 0 0 0.9375rem 1.5625rem;
}
#full-tags-list .tag-entry a {
font-size: 1.25rem;
}
#full-tags-list .tag-entry .entry-date {
color: #808080;
font-style: italic; font-style: italic;
color: #777; font-size: 1rem;
margin: 0;
display: block;
border-bottom-right-radius: 0.3125rem;
border-bottom-left-radius: 0.3125rem;
}
.blog-post hr {
max-width: 25%;
border-width: 0.25rem;
border-radius: 0.1875rem;
border-color: #808080;
}
.blog-post blockquote {
padding: 0.625rem 1.25rem;
margin: 0 0 1.25rem;
font-size: 1.1rem;
border-left: 0.3125rem solid #eee;
}
.blog-post blockquote p:last-child {
margin-bottom: 0;
}
.center {
display: block;
margin: 0 auto;
}
/* Search bar */
#beautifuljekyll-search-overlay {
display: none;
z-index: 999999;
position: fixed;
background: rgba(0,0,0,0.9);
left: 0;
right: 0;
top: 0;
bottom: 0;
text-align: center;
padding: 1rem;
}
#nav-search-exit {
position: absolute;
top: 1.5rem;
cursor: pointer;
right: 25%;
margin-right: 2rem;
color: #555;
font-size: 2rem;
line-height: 2rem;
font-weight: bold;
}
#nav-search-exit:hover {
color: #000;
}
#nav-search-input {
text-align: center;
background: #e7edee;
margin: auto;
display: block;
font-size: 2rem;
width: 50%;
transition: width 300ms ease;
color: #222;
border-radius: 5rem;
outline: none;
border: none;
padding: 0 3rem;
}
@media (max-width: 1199px) {
#nav-search-input {
width: 75%;
}
#nav-search-exit {
right: 12.5%;
}
}
@media (max-width: 767px) {
#nav-search-input {
width: 100%;
}
#nav-search-exit {
right: 0;
}
}
#nav-search-input:focus {
background: #f3f8fe;
box-shadow: 0px 0.15rem 1rem #e7f4ff;
outline: none;
}
#nav-search-input::placeholder {
color: #777;
}
#search-results-container {
list-style: none;
padding-left: unset;
margin-top: 1.5rem;
color: #fff;
font-size: 1.5rem;
max-height: calc(100vh - 6.5rem);
overflow-y: auto;
}
#search-results-container a {
color: #fff;
text-decoration: none;
}
#search-results-container a:hover {
color: #fff;
text-decoration: underline;
}
#nav-search-icon {
display: inline-block;
}
#nav-search-text {
display: none;
}
@media (max-width: 1199px) {
#nav-search-icon {
display: none;
}
#nav-search-text {
display: inline-block;
}
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 699 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 829 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Some files were not shown because too many files have changed in this diff Show More