X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/c3f35ab1622ecb792dba0ece727f148abf6018fb..2cedbd920036c821da952ed585c203699fb499f1:/ralf/_layouts/default.html?ds=sidebyside diff --git a/ralf/_layouts/default.html b/ralf/_layouts/default.html index 5d27d6c..3ac3dee 100644 --- a/ralf/_layouts/default.html +++ b/ralf/_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 %}