55 Commits
3.0.0 ... 4.1.0

Author SHA1 Message Date
dafbc28377 bump version to 4.1.0 2020-08-08 17:45:40 +00:00
82c60effed update FAQ 2020-08-08 13:19:20 -04:00
5490b4841d Adds og:site_name support (#699) 2020-08-08 02:18:14 -04:00
332a3adaa2 fix documentation for latest features 2020-08-08 06:09:00 +00:00
ac04e14954 Adds configuration for text-color (#694) 2020-08-07 23:07:45 -04:00
8c0156c1af Adds support for meta keywords (#691) 2020-08-07 23:06:10 -04:00
ed31f79fb6 Adds support for meta theme-color (#692) 2020-08-07 22:13:54 -04:00
c4a397509c Adds the missing changelog entries from some recent PRs (#698) 2020-08-07 22:12:03 -04:00
c5f49a65ad Update CHANGELOG.md 2020-08-07 21:22:56 -04:00
6163756baa Adds kramdown-parser-gfm dependency (#697) 2020-08-07 21:18:08 -04:00
741f7378bd Adds configuration for additional site css (#695) 2020-08-07 21:10:02 -04:00
3021233850 Adds page configuration for description (#690) 2020-08-07 21:03:44 -04:00
6e2442157f Update README.md (#696)
Fixes a typo
2020-08-07 17:55:23 -04:00
585129f2f3 fix typo (#686) 2020-07-30 03:36:04 -04:00
9128b55257 Update README.md 2020-07-27 00:27:47 -04:00
c627df96ff update cover image 2020-07-20 03:47:05 -04:00
bfc6dcdd0a Update README.md 2020-07-17 03:22:43 -04:00
fccc38afb3 Update README.md 2020-07-17 03:22:31 -04:00
8e3b90791b readme word change 2020-07-16 17:03:10 -04:00
11b9f23b5b add link to cover photo 2020-07-16 13:50:45 -04:00
278dc5efab add cover photo to readme 2020-07-16 13:49:52 -04:00
dfadb533bb remove CI badge from README, it's noise 2020-07-13 01:25:25 -04:00
e6f909cfc9 release gem version 4.0.1 to hotfix staticman UI 2020-07-13 01:20:23 -04:00
40fc1d99a7 Update CHANGELOG.md 2020-07-13 01:19:16 -04:00
58835f4098 update config to be more clear about staticman params 2020-07-13 01:12:03 -04:00
68a0e505bf Fix staticman UI to work with bootstrap 4; fixes #679 (#681) 2020-07-13 01:09:27 -04:00
70717c9a6a fix jQuery-3.4.1 missing error after enabling Staticman (#680) 2020-07-12 23:36:53 -04:00
6fd49ce421 Update README.md 2020-07-12 04:25:21 -04:00
5fbaacb893 change order of badges in readme 2020-07-12 04:16:56 -04:00
f2b6f5eb8c release gem version 4.0.0 2020-07-12 07:31:45 +00:00
07dcb69406 Update CHANGELOG.md 2020-07-12 03:09:17 -04:00
c509fe77a3 clarify changelog 2020-07-12 03:06:35 -04:00
5bec4cfec8 don't use twitter's large summary card when the image is the website's avatar 2020-07-12 03:06:26 -04:00
c5b7a95133 Update README.md 2020-07-12 01:43:20 -04:00
f23fe9c418 fix jquery version in staticman (#675) 2020-07-12 01:18:39 -04:00
941f01fb02 Update CHANGELOG.md 2020-07-07 01:30:59 -04:00
f09523f16e Add orcid and google scholar (#670) 2020-07-07 01:29:55 -04:00
3250ea5f74 Update CHANGELOG.md 2020-07-07 01:25:57 -04:00
b2b6922a8f if share-img not provided, use cover-img or thumbnail. Also make sure all images work with both relative and absolute paths 2020-07-07 05:14:01 +00:00
88464eb569 cover image will automatically be used as a thumbnail unless a thumbnail is explicitly provided. thumbnail can also be disabled 2020-07-05 07:31:33 +00:00
70f7345a29 replace 'image' YAML param with 'thumbnail-img' and don't use the thumbnail as the page avatar 2020-07-05 05:18:31 +00:00
43809d04ae make post images in feed smaller in smaller screens 2020-07-05 03:53:40 +00:00
23322c281f Add support for Twitter's 'summary_large_image' (#668) 2020-06-30 15:06:03 -04:00
45ef2fc8c0 Use Open Graph type 'article' for blog posts (#669) 2020-06-28 15:53:25 -04:00
3ecedf0684 Update _config.yml 2020-06-11 23:52:15 -04:00
930fb01aeb improved documentation for round-avatar: true (#658) 2020-06-11 23:51:45 -04:00
2b4261a875 Update CHANGELOG.md 2020-06-11 22:56:58 -04:00
b9c5bb97ba Add social share: VK (#657) 2020-06-11 22:53:39 -04:00
727c7cee3f Update CHANGELOG.md 2020-06-07 19:20:12 -04:00
fb0569f433 Adding mastodon social network link (#651) 2020-06-07 19:17:44 -04:00
fca85dd235 Fix CI (#644) 2020-05-24 11:27:43 -04:00
a449a08be4 readme: stress that you have to click "rename" in github settings 2020-05-23 16:47:24 -04:00
3881cf0be6 remove CI badge 2020-05-18 16:58:41 -04:00
39a8658154 Update issue_template.md 2020-05-17 12:04:07 -04:00
39c4316ee2 fix issue where a menu item with a dropdown as the last menu item did not have proper margin 2020-05-15 04:42:30 +00:00
18 changed files with 267 additions and 104 deletions

View File

@ -1,3 +1 @@
Thank you for submitting an issue!
Please only submit bug reports or feature suggestions. Please do not submit support requests and general help questions in this forum.
Please only submit feature suggestions or bug reports if you believe something is broken. Please do not submit support requests and general help questions.

View File

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

View File

@ -1,17 +1,45 @@
## v3.0.0 (Date: 2020-05-07)
## v4.1.0 2020-08-08
- Add Open Graph `site_name` field
- Add `text-col `config setting for main text color (#694)
- Add `keywords` config setting to set the meta keywords on all pages (for SEO purposes) (#691)
- Add `mobile-theme-col` config setting to allow a mobile theme colour (#692)
- Add `site-css` config setting in the config file to provide CSS files that are used on all pages in the site (#695)
- Add YAML option `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
- Add social network links: Mastodon (#646), Google Scholar, ORCID (#670)
- Add 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)
- Make 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** 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** 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.
- Add accessibility features where possible.
- Made the theme completely responsive by rewriting all CSS to use 'rem' instead of 'px'.
- Rewrite and simplify some JavaScript code to use CSS or Bootstrap alternatives that weren't available in 2015.
- Remove most of the sample posts so that users only have two sample posts to learn from.
- Improvements to the README instructions.
- **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** 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
- Add accessibility features where possible
- Made the theme completely responsive by rewriting all CSS to use 'rem' instead of 'px'
- Rewrite and simplify some JavaScript code to use CSS or Bootstrap alternatives that weren't available in 2015
- Remove most of the sample posts so that users only have two sample posts to learn from
- Improvements to the README instructions
## v2.3.0 (2020-04-29)
## v2.3.0 2020-04-29
- Add YAML option `footer-extra` for including custom content in the footer
- Fix issue: linking to a specific part of a page resulted in scrolling too far (#69)
@ -19,14 +47,14 @@
- Add social network link: Calendly
- 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
- Add social network link: Telegram (#625) (thanks @mashed-potatoes)
- Moved the demo site to an independent URL: https://beautifuljekyll.com
- Major documentation overhaul and cleanup of old files
- Fix a few bugs from the remote_theme migration
## v2.0.0 (2020-04-26)
## v2.0.0 2020-04-26
- Beautiful-Jekyll v2.0.0 available as an official Ruby gem
- Beautifull-Jekyll now supports the `remote_theme` config (#339) (thanks @gpotter2 and @skalee)
@ -111,3 +139,4 @@
... Many small changes because the site was in its infancy
**2015-03-12** Beautiful Jekyll version 0.0000001 is released!

View File

@ -1,21 +1,24 @@
[![](https://i.imgur.com/zNBkzj1.png)](https://xscode.com/daattali/beautiful-jekyll)
# Beautiful Jekyll
![Beautiful Jekyll CI](https://github.com/daattali/beautiful-jekyll/workflows/Beautiful%20Jekyll%20CI/badge.svg)
[![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)
[![Gem Version](https://badge.fury.io/rb/beautiful-jekyll-theme.svg)](https://badge.fury.io/rb/beautiful-jekyll-theme)
> *Copyright 2020 [Dean Attali](https://deanattali.com)*
> *Created by [Dean Attali](https://deanattali.com)* · [Demo](https://beautifuljekyll.com/)
**Beautiful Jekyll** is a ready-to-use template to help you create a beautiful website quickly. Perfect for personal sites, blogs, or simple project websites. [Check out a demo](https://beautifuljekyll.com) of what you'll get after just two minutes. You can also look at [my personal website](https://deanattali.com) to see it in use, or see examples of websites other people created using this theme [below](#showcased-users-success-stories).
**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.**
**If you enjoy this theme, please consider [supporting 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>
&nbsp;&nbsp;
<a style="display: inline-block;" href="https://paypal.me/daattali">
<img height="40" src="https://camo.githubusercontent.com/0e9e5cac101f7093336b4589c380ab5dcfdcbab0/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74776f6c66736f6e2f70617970616c2d6769746875622d627574746f6e40312e302e302f646973742f627574746f6e2e737667" />
</a>
</p>
## Table of contents
@ -120,7 +123,7 @@ If you don't include YAML then your file will not use this template.
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 paramaters
## Main parameters
These are the basic YAML parameters that you are most likely to use on most pages.
@ -129,7 +132,7 @@ Parameter | Description
title | Page or blog post 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]`
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).
cover-img | Include a large full-width image at the top of the page. You can either provide the path to a single image (eg. `"/path/to/img"`) , or a list of images to cycle through (eg. `["/path/img1", "/path/img2"]`). If you want to add a caption to an image, then the image should be provided as `{"/path/to/img" : "Caption of image"}`.
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`.
## Less commonly used parameters
@ -140,13 +143,14 @@ Parameter | Description
----------- | -----------
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`.
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.
thumbnail-img | For blog posts, if you want to add a thumbnail that'll show up next to the post's excerpt in the feed, use `thumbnail-img: /path/to/image`. If no thumbnail is provided, then `cover-img` will be used as the thumbnail. You can use `thumbnail-img: ""` to disable a thumbnail.
share-img | The image to use when sharing the page to social media. If not provided, then `cover-img` or `thumbnail-img` will be used.
social-share | By default, every blog post has buttons to share the page on social media. If you want to turn this feature off, use `social-share: false`.
nav-short | By default, the navigation bar gets shorter after scrolling down the page. If you want the navigation bar to always be short on a certain page, use `nav-short: true`
gh-repo   | If you want to show GitHub buttons at the top of a post, this sets the GitHub repo name (eg. `daattali/beautiful-jekyll`). You must also use the `gh-badge` parameter to specify what buttons to show.
gh-badge | Select which GitHub buttons to display. Available options are: [star, watch, fork, follow]. You must also use the `gh-repo` parameter to specify the GitHub repo.
layout | What type of page this is (default is `post` for blog posts and `page` for other pages). See _Page types_ section below for more information.
description | A brief description of the page (used in search engines and when the page is shared).
## Advanced parameters
@ -172,7 +176,7 @@ ext-css | List of external CSS files to include in the page. External CSS f
# Showcased users (success stories!)
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.
Beautiful Jekyll has been used in tens of thousands of websites since 2015. Here is a sample of some websites that use Beautiful Jekyll. If you'd like to showcase yourself and join this list, any level of [sponsorship](https://github.com/sponsors/daattali) will grant you that perk!
## Project/company websites
@ -213,33 +217,39 @@ If you need any help, I suggest heading over to the [Jekyll support forum](https
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.
### What if I don't want the website to be `https://<yourusername>.github.io`?
**If you really wany my personal help, please visit https://xscode.com/daattali/beautiful-jekyll to hire my services.**
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`.
- ### How do I add a favicon to my site?
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"!).
Easy! Just place a valid `favicon.ico` in the root directory of your project. And then wait! It can take a while to update.
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 ...?
### How do I change the number of posts per page OR the colour of the navigation bar OR the image in the navigation bar OR ...?
Beautiful Jekyll is built to be very customizable, and as such, many questions about "how do I change ..." can be answered by looking at the `_config.yml` file. The configuration file has many adjustable parameters to customize your site.
Beautiful Jekyll is built to be very customizable, and as such, many questions about "how do I change ..." can be answered by looking at the `_config.yml` file. The configuration file has many adjustable parameters to customize your site.
- ### What if I want to use a custom domain for my site?
### How do I add a favicon to my site?
GitHub lets you have your website for free using their `github.io` domain. If you want your own domain (such as `https://myname.com`), it's easy and will cost about $10-$15 per year. First you need to buy a domain name (I recommend [Namecheap](https://namecheap.pxf.io/daattali)) and then follow the [instructions GitHub provides](https://docs.github.com/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-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.
- ### What if I want a free domain, but not `https://<yourusername>.github.io`?
### How do I move the blog to another page instead of having it on the home page?
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`.
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/"`).
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"!).
### What size do you recommend using for the `cover-img` photos?
Now your website will be at `https://<yourusername>.github.io\MyAwesomeProject`.
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 move the blog to another page instead of having it on the home page?
### How do I use MathJax equations in my posts?
The default style of Beautiful Jekyll is to feature the blog feed on the front page. For some 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/"`).
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.
- ### 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 math 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
@ -256,3 +266,4 @@ I'd also like to thank [Dr. Jekyll's Themes](https://drjekyllthemes.github.io/),
# 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

@ -24,7 +24,7 @@ navbar-links:
# Remove this parameter if you don't want an image in the navbar
avatar: "/assets/img/avatar-icon.png"
# By default, the image is cut into a circle. You can disable this behaviour here.
# By default, the image is cut into a circle. You can disable this behaviour by setting 'round-avatar: false'
round-avatar: true
# If you want to have an image logo in the top-left corner instead of the title text,
@ -57,6 +57,9 @@ social-network-links:
# yelp: yourname
# telegram: yourname
# calendly: yourname
# mastodon: instance.url/@username
# ORCID: your ORCID ID
# google-scholar: your google scholar
# --- General options --- #
@ -65,6 +68,7 @@ share-links-active:
twitter: true
facebook: true
linkedin: true
vk: false
# How to display the link to your website in the footer
# Remove this if you don't want a link in the footer
@ -76,14 +80,18 @@ link-tags: true
# Excerpt Word Length - Truncates the excerpt to the specified number of words on the index page
excerpt_length: 50
# The keywords to associate with your website, for SEO purposes
#keywords: "my,list,of,keywords"
# --- Colours / background image --- #
# Personalize the colors in your website. Colour values can be any valid CSS colour
# Personalize the colours in your website. Colour values can be any valid CSS colour
navbar-col: "#F5F5F5"
navbar-text-col: "#404040"
navbar-border-col: "#EAEAEA"
page-col: "#FFFFFF"
text-col: "#404040"
link-col: "#008AFF"
hover-col: "#0085A1"
footer-col: "#F5F5F5"
@ -97,6 +105,13 @@ footer-link-col: "#404040"
#footer-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.
#mobile-theme-col: "#0085A1"
# For any extra customization, you can include additional CSS files in every page on your site
#site-css:
# - "/assets/css/custom-styles.css"
# --- Web Statistics Section --- #
# Fill in your Google Analytics gtag.js ID to track your website using gtag
@ -136,14 +151,14 @@ footer-link-col: "#404040"
# To use Staticman comments, first invite `staticmanlab` as a collaborator to your repository and
# accept the invitation by going to `https://staticman3.herokuapp.com/v3/connect/github/<username>/<repo-name>`.
# Then uncomment the following section and fill in "repository", "branch", and "endpoint".
# Then uncomment the following section and fill in "repository" and "branch".
# If you want to use reCaptcha for staticman (optional for spam protection), then fill
# in the "siteKey" and "secret" parameters below and also in `staticman.yml`.
# See more details at https://staticman.net/
#staticman:
# 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`
# endpoint : # URL of your own deployment, with a trailing slash (will fallback to a public GitLab instance) eg. https://<your-api>/v3/entry/github/
# endpoint : # (optional) URL of your own deployment, with a trailing slash eg. https://<your-api>/v3/entry/github/ (will fallback to a public GitLab instance)
# reCaptcha:
# siteKey : # Use your own site key, you need to apply for one on Google
# secret : # ENCRYPT your password by going to https://staticman3.herokuapp.com/v3/encrypt/<your-site-secret>
@ -208,3 +223,4 @@ plugins:
# Beautiful Jekyll / Dean Attali
# 2fc73a3a967e97599c9763d05e564189

View File

@ -3,15 +3,25 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{% if page.use-site-title %}{{ site.title }} {{ site.title-separator | default: '-' }} {{ site.description }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
{% if site.author %}
<meta name="author" content="{{ site.author }}">
{% endif %}
{% if page.subtitle %}
{% if page.description %}
<meta name="description" content="{{ page.description }}">
{% elsif page.subtitle %}
<meta name="description" content="{{ page.subtitle }}">
{% endif %}
{% if site.mobile-theme-col %}
<meta name="theme-color" content="{{ site.mobile-theme-col }}">
{% endif %}
{% if site.keywords %}
<meta name="keywords" content="{{ site.keywords }}">
{% endif %}
<link rel="alternate" type="application/rss+xml" title="{{ site.title | default: 'Untitled' }} {{ site.title-separator | default: '-' }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}">
{% include gtag.html %}
@ -42,11 +52,21 @@
{% endfor %}
{% endif %}
{% if site.site-css %}
{% for css in site.site-css %}
<link rel="stylesheet" href="{{ css | relative_url }}">
{% endfor %}
{% endif %}
<!-- Facebook OpenGraph tags -->
{% if site.fb_app_id %}
<meta property="fb:app_id" content="{{ site.fb_app_id }}">
{% endif %}
{% if site.title %}
<meta property="og:site_name" content="{{ site.title }}">
{% endif %}
{% if page.meta-title %}
<meta property="og:title" content="{{ page.meta-title }}">
{% elsif page.title %}
@ -55,7 +75,7 @@
<meta property="og:title" content="{{ site.title }}">
{% endif %}
{% if page.meta-description %}
{% if page.meta-description %}
<meta property="og:description" content="{{ page.meta-description }}">
{% elsif page.subtitle %}
<meta property="og:description" content="{{ page.subtitle }}">
@ -64,7 +84,13 @@
{% endif %}
{% 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 }}">
{% else %}
<meta property="og:type" content="website">
{% endif %}
{% if page.id %}
<meta property="og:url" content="{{ page.url | absolute_url }}">
@ -74,15 +100,34 @@
<link rel="canonical" href="{{ page.url | absolute_url | strip_index }}">
{% endif %}
{% if page.share-img %}
<meta property="og:image" content="{{ page.share-img }}">
{% elsif site.avatar %}
<meta property="og:image" content="{{ site.avatar | absolute_url }}">
{%- capture shareimg -%}
{% if page.share-img %}
{{ page.share-img }}
{% elsif page.cover-img %}
{% if page.cover-img.first %}
{{ page.cover-img[0].first.first }}
{% else %}
{{ page.cover-img }}
{% endif %}
{% elsif page.thumbnail-img %}
{{ page.thumbnail-img }}
{% elsif site.avatar %}
{{ site.avatar }}
{% endif %}
{% endcapture %}
{% assign shareimg=shareimg | strip %}
{% if shareimg != "" %}
<meta property="og:image" content="{{ shareimg | absolute_url }}">
{% endif %}
<!-- Twitter summary cards -->
{% if shareimg != "" and shareimg != site.avatar %}
<meta name="twitter:card" content="summary_large_image">
{% else %}
<meta name="twitter:card" content="summary">
{% endif %}
<meta name="twitter:site" content="@{{ site.social-network-links.twitter }}">
<meta name="twitter:creator" content="@{{ site.social-network-links.twitter }}">
@ -102,10 +147,8 @@
<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 }}">
{% if shareimg != "" %}
<meta name="twitter:image" content="{{ shareimg | absolute_url }}">
{% endif %}
{% if site.matomo %}

View File

@ -10,10 +10,10 @@
{% assign imgnum = forloop.index %}
{% for imginfo in bigimg %}
{% if imginfo[0] %}
data-img-src-{{ imgnum }}="{{ imginfo[0] | relative_url }}"
data-img-src-{{ imgnum }}="{{ imginfo[0] | absolute_url }}"
data-img-desc-{{ imgnum }}="{{ imginfo[1] }}"
{% else %}
data-img-src-{{ imgnum }}="{{ imginfo | relative_url }}"
data-img-src-{{ imgnum }}="{{ imginfo | absolute_url }}"
{% endif %}
{% endfor %}
{% endfor %}

View File

@ -33,15 +33,7 @@
</ul>
</div>
{% if page.image and (layout.show-avatar or page.show-avatar) %}
<div class="avatar-container">
<div class="avatar-img-border">
<a href="{{ '' | absolute_url }}">
<img 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) %}
{% if site.avatar and (layout.show-avatar or page.show-avatar) %}
<div class="avatar-container">
<div class="avatar-img-border">
<a href="{{ '' | absolute_url }}">

View File

@ -228,4 +228,40 @@
</li>
{%- 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 -%}
</ul>

View File

@ -34,6 +34,14 @@
</a>
{% endif %}
{% if site.share-links-active.vk %}
<a href="https://vk.com/share.php?url={{ page.url | absolute_url | url_encode }}"
class="btn btn-social-icon btn-vk" title="Share on VK">
<span class="fab fa-fw fa-vk" aria-hidden="true"></span>
<span class="sr-only">VK</span>
</a>
{% endif %}
</section>
{% 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>
<input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
</div>
<div class="form-group hidden" style="display: none;">
<div class="form-group d-none" style="display: none;">
<input type="hidden" name="options[origin]" value="{{ page.url | absolute_url }}">
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
<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 %}
</div>
<!-- Start comment form alert messaging -->
<p class="hidden js-notice">
<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 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 class="d-none js-notice alert">
<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-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>
</p>
<!-- End comment form alert messaging -->
{% if site.staticman.reCaptcha.siteKey %}
@ -59,8 +59,8 @@
</div>
{% endif %}
<div class="form-group">
<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--large hidden" disabled>{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}</button>
<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-submitted" tabindex="5" class="btn btn-primary btn-lg d-none" disabled>{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}</button>
</div>
</form>
</div>
@ -75,7 +75,7 @@
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
<script>
if (typeof jQuery == 'undefined') {
document.write('<script src="{{ "/assets/js/jquery-1.11.2.min.js" | relative_url }}"></scr' + 'ipt>');
document.write('<script src="{{ "/assets/js/jquery-3.4.1.min.js" | relative_url }}"></scr' + 'ipt>');
}
</script>
<script src="{{ "/assets/js/staticman.js" | relative_url }}"></script>

View File

@ -9,7 +9,7 @@ layout: page
<div class="posts-list">
{% for post in posts %}
<article class="post-preview">
<a href="{{ post.url | relative_url }}">
<a href="{{ post.url | absolute_url }}">
<h2 class="post-title">{{ post.title }}</h2>
{% if post.subtitle %}
@ -25,10 +25,23 @@ layout: page
</p>
<div class="post-entry-container">
{% if post.image %}
{%- 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 thumbnail != "" %}
<div class="post-image">
<a href="{{ post.url | relative_url }}">
<img src="{{ post.image | relative_url }}">
<a href="{{ post.url | absolute_url }}">
<img src="{{ thumbnail | absolute_url }}">
</a>
</div>
{% endif %}
@ -37,7 +50,7 @@ layout: page
{{ 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>
<a href="{{ post.url | absolute_url }}" class="post-read-more">[Read&nbsp;More]</a>
{% endif %}
</div>
</div>
@ -47,7 +60,7 @@ layout: page
Tags:
{% if site.link-tags %}
{% for tag in post.tags %}
<a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a>
<a href="{{ '/tags' | absolute_url }}#{{- tag -}}">{{- tag -}}</a>
{% endfor %}
{% else %}
{{ post.tags | join: ", " }}
@ -63,12 +76,12 @@ layout: page
<ul class="pagination main-pager">
{% if paginator.previous_page %}
<li class="page-item previous">
<a class="page-link" href="{{ paginator.previous_page_path | relative_url }}">&larr; Newer Posts</a>
<a class="page-link" href="{{ paginator.previous_page_path | absolute_url }}">&larr; Newer Posts</a>
</li>
{% endif %}
{% if paginator.next_page %}
<li class="page-item next">
<a class="page-link" href="{{ paginator.next_page_path | relative_url }}">Older Posts &rarr;</a>
<a class="page-link" href="{{ paginator.next_page_path | absolute_url }}">Older Posts &rarr;</a>
</li>
{% endif %}
</ul>

View File

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

View File

@ -13,7 +13,7 @@ html {
body {
font-family: 'Lora', 'Times New Roman', serif;
font-size: 1.125rem;
color: #404040;
color: {{ site.text-col | default: "#404040" }};
position: relative;
background-color: {{ site.page-col | default: "#FFFFFF" }};
{% if site.page-img %}
@ -242,7 +242,8 @@ img {
padding-left: 0.9375rem;
padding-right: 0.9375rem;
}
.navbar-expand-md .navbar-nav .nav-item:last-child .nav-link {
.navbar-expand-md .navbar-nav .nav-item:not(.dropdown):last-child .nav-link {
padding-right: 0;
}
}
@ -446,7 +447,7 @@ footer .footer-custom-content {
.post-preview a {
text-decoration: none;
color: #404040;
color: {{ site.text-col | default: "#404040" }};
}
.post-preview a:focus,
@ -483,6 +484,7 @@ footer .footer-custom-content {
}
.post-image {
float: right;
margin-left: 0.625rem;
height: 12rem;
width: 12rem;
margin-top: -2.1875rem;
@ -538,6 +540,14 @@ footer .footer-custom-content {
}
}
@media (max-width: 767px) {
.post-image, .post-image img {
margin-top: 0;
height: 9rem;
width: 9rem;
}
}
@media (max-width: 500px) {
.post-image, .post-image img {
height: 6.25rem;
@ -548,7 +558,8 @@ footer .footer-custom-content {
width: 100%;
text-align: center;
margin-top: 0;
float: left;
margin-left: 0;
float: none;
}
}
/* --- Post and page headers --- */
@ -750,7 +761,7 @@ footer .footer-custom-content {
padding: 0.625rem 0.3125rem;
background-color: #FFF;
border-radius: 0;
color: #404040;
color: {{ site.text-col | default: "#404040" }};
}
@media (min-width: 768px) {
.pagination .page-item .page-link {

BIN
assets/img/thumb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 KiB

2
assets/js/jquery-3.4.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -21,18 +21,18 @@ layout: null
data: $(this).serialize(),
contentType: 'application/x-www-form-urlencoded',
success: function (data) {
$('#comment-form-submit').addClass('hidden');
$('#comment-form-submitted').removeClass('hidden');
$('.page__comments-form .js-notice').removeClass('notice--danger');
$('.page__comments-form .js-notice').addClass('notice--success');
$('#comment-form-submit').addClass('d-none');
$('#comment-form-submitted').removeClass('d-none');
$('.page__comments-form .js-notice').removeClass('alert-danger');
$('.page__comments-form .js-notice').addClass('alert-success');
showAlert('success');
},
error: function (err) {
console.log(err);
$('#comment-form-submitted').addClass('hidden');
$('#comment-form-submit').removeClass('hidden');
$('.page__comments-form .js-notice').removeClass('notice--success');
$('.page__comments-form .js-notice').addClass('notice--danger');
$('#comment-form-submitted').addClass('d-none');
$('#comment-form-submit').removeClass('d-none');
$('.page__comments-form .js-notice').removeClass('alert-success');
$('.page__comments-form .js-notice').addClass('alert-danger');
showAlert('failure');
$(form).removeClass('disabled');
}
@ -42,13 +42,13 @@ layout: null
});
function showAlert(message) {
$('.page__comments-form .js-notice').removeClass('hidden');
$('.page__comments-form .js-notice').removeClass('d-none');
if (message == 'success') {
$('.page__comments-form .js-notice-text-success').removeClass('hidden');
$('.page__comments-form .js-notice-text-failure').addClass('hidden');
$('.page__comments-form .js-notice-text-success').removeClass('d-none');
$('.page__comments-form .js-notice-text-failure').addClass('d-none');
} else {
$('.page__comments-form .js-notice-text-success').addClass('hidden');
$('.page__comments-form .js-notice-text-failure').removeClass('hidden');
$('.page__comments-form .js-notice-text-success').addClass('d-none');
$('.page__comments-form .js-notice-text-failure').removeClass('d-none');
}
}
})(jQuery);

View File

@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = "beautiful-jekyll-theme"
spec.version = "3.0.0"
spec.version = "4.1.0"
spec.authors = ["Dean Attali"]
spec.email = ["daattali@gmail.com"]
@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
spec.homepage = "https://beautifuljekyll.com"
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|_layouts|_includes|LICENSE|README|feed|404|_data|tags|stfaticman)}i) }
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|_layouts|_includes|LICENSE|README|feed|404|_data|tags|staticman)}i) }
spec.metadata = {
"changelog_uri" => "https://github.com/daattali/beautiful-jekyll/blob/master/CHANGELOG.md",
@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "jekyll", "~> 3.8"
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4"
spec.add_runtime_dependency "kramdown-parser-gfm", "~> 1.1"
spec.add_development_dependency "bundler", ">= 1.16"
spec.add_development_dependency "rake", "~> 12.0"