Here be a sample post with a custom background image. To utilize this “feature” just add the following YAML to a post’s front matter.
image:background:filename.png
This little bit of YAML makes the assumption that your background image asset is in the /images folder. If you place it somewhere else or are hotlinking from the web, just include the full http(s):// URL. Either way you should have a background image that is tiled.
If you want to set a background image for the entire site just add background: filename.png to your _config.yml and BOOM — background images on every page!
Syntax highlighting is a feature that displays source code, in different colors and fonts according to the category of terms. This feature facilitates writing in a structured language such as a programming language or a markup language as both structures and syntax errors are visually distinct. Highlighting does not affect the meaning of the text itself; it is intended only for human readers.1
GFM Code Blocks
GitHub Flavored Markdown fenced code blocks are supported. To modify styling and highlight colors edit /_sass/syntax.scss.
moduleJekyllclassTagIndex<Pagedefinitialize(site,base,dir,tag)@site=site@base=base@dir=dir@name='index.html'self.process(@name)self.read_yaml(File.join(base,'_layouts'),'tag_index.html')self.data['tag']=tagtag_title_prefix=site.config['tag_title_prefix']||'Tagged: 'tag_title_suffix=site.config['tag_title_suffix']||'–'self.data['title']="#{tag_title_prefix}#{tag}"self.data['description']="An archive of posts tagged #{tag}."endendend
Code Blocks in Lists
Indentation matters. Be sure the indent of the code block aligns with the first non-space character after the list item marker (e.g., 1.). Usually this will mean indenting 3 spaces instead of 4.
Do step 1.
Now do this:
defprint_hi(name)puts"Hi, #{name}"endprint_hi('Tom')#=> prints 'Hi, Tom' to STDOUT.
This theme supports link posts, made famous by John Gruber. To use, just add link: http://url-you-want-linked to the post’s YAML front matter and you’re done.