<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
- <title>{% if page.pretitle %}{{ page.pretitle }} • {% endif %}{{ page.title }}</title>
- {% if page.excerpt %}<meta name="description" content="{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}">{% endif %}
+ {% assign title = page.title %}
+ {% assign pretitle = page.pretitle %}
+ {% if page.vars %}{% include {{ page.vars | prepend: "vars/" }} %}{% endif %}
- <link rel="stylesheet" href="{% if page.absolute_urls %}{{ site.url }}{% endif %}/style.css">
- {% capture canonicalurl %}{{ page.url | replace:'index.html','' }}{% endcapture %}
- <link rel="canonical" href="{{ canonicalurl | prepend: site.url }}">
- {% if page.rss %}<link rel="alternate" type="application/rss+xml" title="{{ site.blog.title }}" href="/blog/feed.xml" />{% endif %}
+ <title>{% if pretitle %}{{ pretitle }} • {% endif %}{{ title }}</title>
+ {% if page.excerpt %}<meta name="description" content="{{ page.excerpt | newline_to_br | replace:'<br />',' ' | strip_html | strip_newlines | truncate: 192 }}">{% endif %}
+
+ <link rel="stylesheet" href="{{ site.baseurl }}/style.css">
+ <link rel="canonical" href="{{ site.url }}{{ site.baseurl }}{{ page.url | replace:'/index.html','/' }}">
+ {% if page.rss %}<link rel="alternate" type="application/rss+xml" title="{{ site.blog.title }}" href="{{ site.baseurl }}/blog/feed.xml" />{% endif %}
</head>
<body><div id="-frame">
</nav>
<article id="-content">
- {{ 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 %}
+ <header class="pretitle">
+ {% if page.post %}
+ {% include post-header.html item=page %}
+ {% endif %}
+ <h1>{{ pretitle }}</h1>
+ </header>
+ {% endif %}
+
+ <header class="title">
+ <h1>{{ title }}</h1>
+ </header>
+
+ {{ content }}
+
+ {% if page.post %}<p class="comment">Comments? <a href="mailto:post-AT-ralfj-DOT-de">Drop me a mail</a>!</p>{% endif %}
</article>
</div></body>