From 25bdf0316d96992d4c764ac238c1761323783bee Mon Sep 17 00:00:00 2001 From: Trybnetic Date: Fri, 8 Sep 2017 13:11:26 +0200 Subject: [PATCH 1/3] abstracts to default.html --- _layouts/default.html | 11 +++++++++++ _layouts/overview.html | 17 ----------------- index.md | 9 ++++++++- 3 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 _layouts/default.html delete mode 100644 _layouts/overview.html diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..18a8d0b --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,11 @@ + + + {% include head.html %} + +
+ +

{{page.title}}

+ {{content}} +
+ + diff --git a/_layouts/overview.html b/_layouts/overview.html deleted file mode 100644 index 784718c..0000000 --- a/_layouts/overview.html +++ /dev/null @@ -1,17 +0,0 @@ - - - {% include head.html %} - -
- -

{{page.title}}

-
- -
-
- - diff --git a/index.md b/index.md index 135e089..a6b4983 100644 --- a/index.md +++ b/index.md @@ -1,4 +1,11 @@ --- -layout: overview +layout: default title: Übersicht #Overview --- +
+ +
From 1d10ede4822a0592f52f510da72e9ded8f6908a2 Mon Sep 17 00:00:00 2001 From: Trybnetic Date: Fri, 8 Sep 2017 13:43:34 +0200 Subject: [PATCH 2/3] adds category and tag overviews --- categories.md | 37 +++++++++++++++++++++++++++++++++++++ tags.md | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 categories.md create mode 100644 tags.md diff --git a/categories.md b/categories.md new file mode 100644 index 0000000..2c5bd5e --- /dev/null +++ b/categories.md @@ -0,0 +1,37 @@ +--- +layout: default +title: Categories +permalink: /categories/ +--- + +{% capture site_categories %}{% for category in site.categories %}{{ category | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} + + +{% assign category_words = site_categories | split:',' | sort %} + + + + + +
+ {% for item in (0..site.categories.size) %}{% unless forloop.last %} + {% capture this_word %}{{ category_words[item] }}{% endcapture %} +

{{ this_word }}

+ {% for post in site.categories[this_word] %}{% if post.title != null %} +
+ {{ post.title }} +
+
+ {% endif %}{% endfor %} + {% endunless %}{% endfor %} +
diff --git a/tags.md b/tags.md new file mode 100644 index 0000000..888db92 --- /dev/null +++ b/tags.md @@ -0,0 +1,38 @@ +--- +layout: default +title: Tags +permalink: /tags/ +--- + + +{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} + + +{% assign tag_words = site_tags | split:',' | sort %} + + + + + +
+ {% for item in (0..site.tags.size) %}{% unless forloop.last %} + {% capture this_word %}{{ tag_words[item] }}{% endcapture %} +

{{ this_word }}

+ {% for post in site.tags[this_word] %}{% if post.title != null %} +
+ {{ post.title }} +
+
+ {% endif %}{% endfor %} + {% endunless %}{% endfor %} +
From 4bb2153b61f266bc1c3ca03d35f31b238b96f62b Mon Sep 17 00:00:00 2001 From: Trybnetic Date: Fri, 8 Sep 2017 17:31:15 +0200 Subject: [PATCH 3/3] adds tag and category examples to the example posts --- _posts/2017-08-20-html-ragout.md | 1 + _posts/2017-08-21-css-ragout.md | 1 + 2 files changed, 2 insertions(+) diff --git a/_posts/2017-08-20-html-ragout.md b/_posts/2017-08-20-html-ragout.md index ea0df53..617f913 100644 --- a/_posts/2017-08-20-html-ragout.md +++ b/_posts/2017-08-20-html-ragout.md @@ -3,6 +3,7 @@ layout: recipe title: Blindtext an HTML-Ragout persons: 4 image: +categories: vegetarian --- diff --git a/_posts/2017-08-21-css-ragout.md b/_posts/2017-08-21-css-ragout.md index 9563bcb..efa6469 100644 --- a/_posts/2017-08-21-css-ragout.md +++ b/_posts/2017-08-21-css-ragout.md @@ -3,6 +3,7 @@ layout: recipe title: Blindtext an CSS-Ragout persons: 4 image: kaiserschmarrn.jpg +tags: easy fast ---