Tutorial 11: Themes
S: Mr. Yoda-Yoda
P: Default Post Author
L: MyPost Author
HOME
== END MYPOST
Tutorial 11: Themes
SWITCHING THEMES IS NOT RECOMMENDED UNTIL FULLY UNDERSTAND THE POTENTIAL PROBLEMS!
Minima is not a native GitHub Page theme. It will cause a lot of headaches! See also starting https://youtu.be/NoRS2D-cyko?t=282 for more details.
Themes
-
Find a theme at https://rubygems.org/search?query=jekyll-theme
-
Preview a theme. Example: jekyll-theme-hacker
- Switch theme in the _config.yml file:
theme: jekyll-theme-hacker
- Modify Gemfile file:
source "https://rubygems.org" gem "tzinfo-data" gem "jekyll", "~> 3.8.5" # gem "minima", "~> 2.0" gem "jekyll-theme-hacker" gem "github-pages", group: :jekyll_plugins # If you have any plugins, put them here! group :jekyll_plugins do gem "jekyll-feed", "~> 0.6" end
- Execute:
bundle install
- Grep:
grep layout: *.md *.html */*.md */*.html
-
Change all layouts to “default”
- Next
ABC
- Example file _config.yml:
title: Trying Giraffe Academy
description: >-
(V016 20190714) This is just following the Giraffe Academy tutorial by Mide Dane.
author: Mr. Y. Yoda
baseurl: ""
url: ""
email: site@ma.il
twitter_username: twitter
github_username: webjekyll
# Build settings
markdown: kramdown
theme: minima
github: [metadata]
plugins:
- jekyll-feed
defaults:
-
scope:
path: ""
type: "posts"
values:
layout: "post"
# exclude:
# - Gemfile
# - Gemfile.lock
# - node_modules
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/