nordgedanken-github-io

git clone git://archive.git.mtrnord.blog/Nordgedanken/nordgedanken-github-io.git
Log | Files | Refs | README | LICENSE

commit 35ecc1e6f452c37c612464af8b8e9abfc8778d43
parent bf13c0dddb1a446f4cf6e00ffc50f9a99aade5b0
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 28 Apr 2018 15:33:42 +0200

use posts layout

Diffstat:
M_includes/header.html | 1+
M_layouts/blog.html | 30+++++++++++++-----------------
A_layouts/clean.html | 8++++++++
Ablog.md | 3+++
4 files changed, 25 insertions(+), 17 deletions(-)

diff --git a/_includes/header.html b/_includes/header.html @@ -13,6 +13,7 @@ <div class="header-links"> <a class="link" href="#about" data-scroll>About Me</a> <a class="link" href="#projects" data-scroll>Projects</a> + <a class="link" href="{{ "/blog" | absolute_url }}">Blog</a> </div> </div> <a class="down" href="#about" data-scroll><i class="icon fa fa-chevron-down" aria-hidden="true"></i></a> diff --git a/_layouts/blog.html b/_layouts/blog.html @@ -1,17 +1,13 @@ -<!DOCTYPE html> -<html lang="en"> - {% include head.html %} - <body> - {% include header.html %} - <section id="blog"> - <ul> - {% for post in site.posts %} - <li> - <a href="{{ post.url }}">{{ post.title }}</a> - </li> - {% endfor %} - </ul> - </section> - {{ content }} - {% include footer.html %} - </body> +--- +layout: clean +--- + +<section id="blog"> + <ul> + {% for post in site.posts %} + <li> + <a href="{{ post.url }}">{{ post.title }}</a> + </li> + {% endfor %} + </ul> +</section> diff --git a/_layouts/clean.html b/_layouts/clean.html @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<html lang="en"> + {% include head.html %} + <body> + {% include header.html %} + {{ content }} + {% include footer.html %} + </body> diff --git a/blog.md b/blog.md @@ -0,0 +1,3 @@ +--- +layout: blog +---