22 Commits
4.0.1 ... 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
6 changed files with 79 additions and 29 deletions

View File

@ -1,3 +1,12 @@
## 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
@ -130,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,14 +1,15 @@
[![](https://i.imgur.com/zNBkzj1.png)](https://xscode.com/daattali/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)
[![Gem Version](https://badge.fury.io/rb/beautiful-jekyll-theme.svg)](https://badge.fury.io/rb/beautiful-jekyll-theme)
[![Beautiful Jekyll CI](https://github.com/daattali/beautiful-jekyll/workflows/Beautiful%20Jekyll%20CI/badge.svg)](https://github.com/daattali/beautiful-jekyll/actions?query=branch%3Amaster+event%3Apush+workflow%3A%22Beautiful+Jekyll+CI%22)
> *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 [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://github.com/sponsors/daattali">
@ -122,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.
@ -149,6 +150,7 @@ nav-short | By default, the navigation bar gets shorter after scrolling down t
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
@ -174,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
@ -217,33 +219,37 @@ Beautiful Jekyll is actively used by thousands of people with wildly varying deg
**If you really wany my personal help, please visit https://xscode.com/daattali/beautiful-jekyll to hire my services.**
### What if I don't want the website to be `https://<yourusername>.github.io`?
- ### How do I add a favicon to my site?
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`.
Easy! Just place a valid `favicon.ico` in the root directory of your project. And then wait! It can take a while to update.
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"!).
- ### 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 ...?
Now your website will be at `https://<yourusername>.github.io\MyAwesomeProject`.
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 change the number of posts per page OR the colour of the navigation bar OR the image in the navigation bar OR ...?
- ### What if I want to use a custom domain for my 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.
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).
### How do I add a favicon to my site?
- ### What if I want a free domain, but not `https://<yourusername>.github.io`?
Easy! Just place a valid `favicon.ico` in the root directory of your project. And then wait! It can take a while to update.
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 move the blog to another page instead of having it on the home page?
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"!).
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/"`).
Now your website will be at `https://<yourusername>.github.io\MyAwesomeProject`.
### What size do you recommend using for the `cover-img` photos?
- ### How do I move the blog to another page instead of having it on the home page?
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.
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/"`).
### How do I use MathJax equations in my posts?
- ### What size do you recommend using for the `cover-img` photos?
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.
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
@ -260,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

@ -80,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"
@ -101,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
@ -212,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 }}">

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 %}
@ -447,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,
@ -761,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 {

View File

@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = "beautiful-jekyll-theme"
spec.version = "4.0.1"
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"