commit ec2a9a4befcc34c9a5088362066647ec6ba0f3ef
parent 9d66092895e10e72e9ea79c6ef1537e64c9d810f
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 28 Apr 2018 18:36:10 +0200
add categories and a demo post
Diffstat:
4 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/_layouts/blog.html b/_layouts/blog.html
@@ -8,6 +8,7 @@ layout: clean
{% for post in site.posts %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
+ {{ post.excerpt }}
</li>
{% endfor %}
</ul>
diff --git a/_layouts/category.html b/_layouts/category.html
@@ -0,0 +1,9 @@
+---
+layout: clean
+---
+
+{% for post in site.categories[page.category] %}
+ <a href="{{ post.url | absolute_url }}">
+ {{ post.title }}
+ </a>
+{% endfor %}
+\ No newline at end of file
diff --git a/_posts/2018-04-28-Test.md b/_posts/2018-04-28-Test.md
@@ -0,0 +1,10 @@
+---
+layout: post
+title: "Welcome to Jekyll!"
+date: 2015-11-17 16:16:01 -0600
+categories: jekyll update
+---
+
+You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `bundle exec jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
+
+To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
+\ No newline at end of file
diff --git a/category/main.html b/category/main.html
@@ -0,0 +1,5 @@
+---
+layout: category
+title: Main
+category: main
+---
+\ No newline at end of file