X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/d3c771bb7374a6611cbd8e564f4e7bd4ea740660..d89404b8e1ead4a86d3e9e1eca94fae983df09f8:/personal/_layouts/default.html diff --git a/personal/_layouts/default.html b/personal/_layouts/default.html index 5d27d6c..797739c 100644 --- a/personal/_layouts/default.html +++ b/personal/_layouts/default.html @@ -5,13 +5,16 @@ - {% if page.pretitle %}{{ page.pretitle }} • {% endif %}{{ page.title }} - {% if page.excerpt %}{% endif %} + {% assign title = page.title %} + {% assign pretitle = page.pretitle %} + {% if page.vars %}{% include {{ page.vars | prepend: "vars/" }} %}{% endif %} - - {% capture canonicalurl %}{{ page.url | replace:'index.html','' }}{% endcapture %} - - {% if page.rss %}{% endif %} + {% if pretitle %}{{ pretitle }} • {% endif %}{{ title }} + {% if page.excerpt %}{% endif %} + + + + {% if page.rss %}{% endif %}
@@ -22,7 +25,21 @@
- {{ content }} + {% comment %} Unfortunately, the variables we set above are not preserved for sub-layouts. So, we have to have all the layout here. {% endcomment %} + {% if pretitle %} +
+ {% if page.date %} +
Permalink • {{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}
+ {% endif %} +

{{ pretitle }}

+
+ {% endif %} + +
+

{{ title }}

+
+ + {{ content }}