From: Ralf Jung Date: Thu, 8 Oct 2015 20:27:09 +0000 (+0200) Subject: make the page layout general enough to cover posts - also achieves more uniformity X-Git-Url: https://git.ralfj.de/web.git/commitdiff_plain/74e56ceacc1bd3a3b967d40c91df88f3c6d7faf9?ds=inline make the page layout general enough to cover posts - also achieves more uniformity --- diff --git a/_config.yml b/_config.yml index 37a8410..bf82a60 100644 --- a/_config.yml +++ b/_config.yml @@ -28,7 +28,8 @@ defaults: path: "" type: "posts" values: - layout: "post" + rss: true + pretitle: "Ralf's Ramblings" # Build settings markdown: kramdown diff --git a/_layouts/page.html b/_layouts/page.html index 9397774..6858d0a 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -1,6 +1,15 @@ --- layout: default --- +{% if page.pretitle %} +
+ {% if page.date %} +
Permalink • {{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}
+ {% endif %} +

{{ page.pretitle }}

+
+{% endif %} +

{{ page.title }}

diff --git a/_layouts/post.html b/_layouts/post.html deleted file mode 100644 index d6500b9..0000000 --- a/_layouts/post.html +++ /dev/null @@ -1,17 +0,0 @@ ---- -layout: default -pretitle: "Ralf's Ramblings" -rss: true ---- -
-
Permalink • {{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}
-

{{ page.pretitle }}

-
- -
-

{{ page.title }}

-
- - -{{ content }} - diff --git a/blog/archive.html b/blog/archive.html index 9f0119e..f6db232 100644 --- a/blog/archive.html +++ b/blog/archive.html @@ -1,12 +1,12 @@ --- -title: "Ralf's Ramblings: Archive" -slug: Archive +title: Archive +pretitle: "Ralf's Ramblings" rss: true sort: 1 hide: true --- -

Here you can find all my blog posts.

+

Here you can find direct links to all my blog posts.