This is a blog template for a static site generator named Jekyll based on a Ghost template named Decent.
Demo Blog: GitHub generated site
Active Blog: jwillmer.de
- To generate/host the blog you need to install Jekyll.
- For the plugins (github-pages) you need to install Bundler:
gem install bundler
- Open a command prompt and install the plugins (github-pages):
bundle install
- On Windows you will propably get an exception. To solve it you can read How to install Jekyll and pages-gem on Windows (x64) or you remove the plugins by deleting the
Gemfile
and delete allgems:
from the_config.yml
- Open a command prompt and install the plugins (github-pages):
- To build the static site you can use the generated site folder that Jekyll creates when you use
jekyll serve
or you can build it explicitly withjekyll build
. - If you like to use GitHub to host your blog you can fork this project and publish the code to
gh-pages
. GitHub has jekyll included and will generate the site for you.
Blogposts can be written in Markdown.
- The folder for blog content is
_posts
- For author details you need to modify ´_data/authors.yml`
- For site properties (like the name) you need to modify
_config.yml
- For the about page you need to modify the
about.md
in_pages
After modifying *.yml
files you need to restart jekyll to take effect.
Following (additional) features are supported in the header (YAML Front Matter) of each post:
---
title: Example #Page/post title
author: jwillmer #Page/post author
cover: /assets/mountain.jpg #Optional: Posibillity to change cover on a post/page
redirect_from: /foo #Optional: Secondary url that will redirect to this page if GitHub-pages gem is installed!
visible: false #Optional: Hide page from listing in the menu.
weight: 5 #Optional: Influence sorting of pages in the menu
menutitle: Offline #Optional: Use a secondary name in the menu (for page) or in the post list (for posts)
tags: hallo welt #Will be displayed as tags in posts and as keywords in the header
keywords hallo welt #Will only be used if no tags are defined or if it is a page (Don't use tags on pages!)
---
The features described in this section are specific for this template. All other language features can be found in the kramdown documentation.
Keep in mind that paralax effect will not be captured if you like to print the page.
<div class="bg-scroll" style="background-image: url('{{ site.github.url }}/media/img/mountain1.jpg')"></div>
<figure>
![]({{ site.github.url }}/media/img/chen.jpg)
<figcaption>This is figcaption. A beautiful picture.</figcaption>
</figure>
![]({{ site.github.url }}/media/img/untitled-9.gif#right)
![]({{ site.github.url }}/media/img/untitled-9.gif#left)
Allignment with caption
<figure class="left">
![]({{ site.github.url }}/media/img/chen.jpg)
<figcaption>hello world!</figcaption>
</figure>
<div class="large">
![]({{ site.github.url }}/media/img/DSC01093.JPG)
</div>
With caption
<figure class="large">
![]({{ site.github.url }}/media/img/DSC01135-1.jpg)
<figcaption>wow so handsome</figcaption>
</figure>
<div class="album">
![]({{ site.github.url }}/media/img/Screenshot_2016-04-09-19-16-28.png)
![]({{ site.github.url }}/media/img/Screenshot_2016-04-02-00-48-25.png)
![]({{ site.github.url }}/media/img/Screenshot_2016-04-01-12-03-36.png)
![]({{ site.github.url }}/media/img/Screenshot_2016-04-01-12-01-33.png)
![]({{ site.github.url }}/media/img/Screenshot_2016-03-24-12-13-58.png)
![]({{ site.github.url }}/media/img/Screenshot_2016-03-17-22-50-05.png)
</div>
With caption
<div class="album">
<figure>
![]({{ site.github.url }}/media/img/wiebe.jpg)
<figcaption>wow so handsome</figcaption>
</figure>
<figure>
![]({{ site.github.url }}/media/img/day.jpg)
<figcaption>wow so handsome</figcaption>
</figure>
</div>
With language highlighting
```html
<script>
var decentThemeConfig = {
ga: 'YOUR TRACK ID'
};
</script>
```
With language highlighting, line numbers and line highlighting
<pre data-line="5" class="line-numbers language-javascript"><code>
Array.prototype.uniq = function () {
var map = {};
return this.filter(function (item) {
if (map[item]) {
return false;
} else {
map[item] = true;
return true;
}
});
};
</code></pre>
> Our destiny offers not the cup of despair, but the chalice of opportunity. So let us seize it, not in fear, but in gladness.
>
> <cite>——R.M. Nixon</cite>
<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=http://img.labnol.org/di/PowerPoint.ppt' frameborder='0'></iframe>
The theme is released under The MIT License (MIT).
The MIT License (MIT)
Copyright (c) 2016 Jens Willmer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.