From efd610d202ee7abc13901cd3e07333ab97b28d25 Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Mon, 7 Oct 2019 23:50:53 +0200 Subject: [PATCH] Dated layout --- _layouts/dated.html | 63 +++++++++++++++++++++++++++++++++++++++++++++ logs.md | 2 +- 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 _layouts/dated.html diff --git a/_layouts/dated.html b/_layouts/dated.html new file mode 100644 index 0000000..9b1b38f --- /dev/null +++ b/_layouts/dated.html @@ -0,0 +1,63 @@ + + + + + + {% if page.title %}{{ page.title}} | {% endif %}{{ site.title | default: site.github.repository_name }} + + + + + + +
+
+ + +

{{ site.description | default: site.github.project_tagline }}

+ + {% if site.github.is_user_page and false %} +

View My GitHub Profile

+ {% endif %} + + {% if site.show_downloads %} + + {% endif %} + {% for link in site.data.links %} +

{{link.title}}

+ {% endfor %} +
+
+ {% if page.title %}

{{page.title}}, {{page.date | date: %F}}

{% endif %} + {{ content }} + +
+
+ {% if site.github.is_project_page %} +

This project is maintained by {{ site.github.owner_name }}

+ {% endif %} +

{% if site.github %}Hosted on GitHub Pages — {% endif %}Theme by orderedlist

+
+
+ + + + {% if site.google_analytics %} + + {% endif %} + + diff --git a/logs.md b/logs.md index 2e79a35..407d30e 100644 --- a/logs.md +++ b/logs.md @@ -1,6 +1,6 @@ --- title: "/var/log" -layout: default +layout: dated --- {% for post in site.logs %}

{{ post.title }}, {{ post.date | date: "%F" }}