X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/d3c771bb7374a6611cbd8e564f4e7bd4ea740660..39a68a2372988905c3ffc7b87a9c6afa6e211d85:/personal/_layouts/default.html diff --git a/personal/_layouts/default.html b/personal/_layouts/default.html index 5d27d6c..3ac3dee 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,23 @@
- {{ 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.post %} + {% include post-header.html item=page %} + {% endif %} +

{{ pretitle }}

+
+ {% endif %} + +
+

{{ title }}

+
+ + {{ content }} + + {% if page.post %}

Comments? Drop me a mail!

{% endif %}