X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/d3c771bb7374a6611cbd8e564f4e7bd4ea740660..677c7913f2fc2acbb24953781c0f4a8651d24584:/personal/_layouts/default.html?ds=sidebyside diff --git a/personal/_layouts/default.html b/personal/_layouts/default.html index 5d27d6c..721c6f0 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 %}