Here’s where I’m dumping all the how-to customization info. Instead of having lots of code in quotes, I’m going to expect you to examine this page’s code on my GitHub.
Mention where to find the right files (i.e. about, 404, categories)
Put all your own details into _config.yml
GitHub Pages builds your site, so if there’s an error, it will say what it is when you click on a file’s history and hover over the ✗ red error mark.
Hydeout introduced an easy way to customize the biggest layout changes, by modifying /assets/css/main.scss
If you want to use a code indent block with a list, make sure the first character of the code block is aligned with the first text characters AFTER the list numbers.
- For example
-
Here you need exactly 3 spaces
--- # Use a comment to ensure Jekyll reads the file to be transformed into CSS later # only main files contain this front matter, not partials. --- $sidebar-bg-color: #E5BB00; $link-color: #ac4142; $layout-reverse: true; $sidebar-sticky: false; @import "hydeout";
- You can specify which language rouge syntax highlights right after the opening of a block quote’s first 3 back-ticks. Preserve the comment at the beginning. I left the links with the default ‘alternate’ colour, but picked my own custom ‘gold’ sidebar-bg-colour, and enabled layout-reverse.
adding Disqus is SUPER easy, simply register your site and make an account on Disqus.com , get your shortname, and put it into your _config.yml
file
disqus:
shortname: your-short-name
To make pages show up in the sidebar, add sidebar_link: true to their front matter.
This post has a manual excerpt <!--fla-->
set after the second paragraph. The following YAML Front Matter has also be applied:
excerpt: “put custom text in here to over-ride default generated excerpts” excerpt_separator: “”
This post has been updated and should show a modified date if last_modified_at
is used in the layout.
last_modified_at: 2017-03-09T13:01:27-05:00
Plugins like jekyll-sitemap use this field to add a <lastmod>
tag your sitemap.xml
.
This post tests YouTube video embeds. <div class="embed-responsive embed-responsive-16by9"> <iframe width="640" height="360" src="https://www.youtube-nocookie.com/embed/K2r4ujFeuqk?controls=1&list=PLqLno2B-jEzbqT7hPT2R7Th-RQfeM9b99" allowfullscreen></iframe> </div>
This post tests Twitter Embeds. <blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">@HolyRapQuotes "if God's gon' take me as I am, I guess I already got on my church clothes." - @lecrae</p>— ♥Nthabiseng♥™ (@Its_PortraitII) November 4, 2012</blockquote>
advanced content
Header1 | Header2 | Header3 |
---|---|---|
cell1 | cell2 | cell3 |
cell4 | cell5 | cell6 |
cell1 | cell2 | cell3 |
cell4 | cell5 | cell6 |
Foot1 | Foot2 | Foot3 |
italicize text
keyboard text, which is usually styled like the <code>
element.
line-height: 1.2; and here's a line of some really, really, really, really long text, just to see how the PRE element handles it and to find out how it overflows;
bold text H2O E = MC2
Create an endnote with this code:
1<
GitHub Gist embeds can also be used:
<script src="https://gist.github.com/mmistakes/77c68fbb07731a456805a7b473f47841.js"></script>
Which outputs as:
Lil Changelog: Changed the _layouts/category.html and layouts/about.md setup, for links to come before tabs, so that my big pictures don’t obscure everything and come-in at the bottom
Comments