only show a post excerpt in the blog index
[web.git] / ralf / _layouts / default.html
index 897abcc9100ff63e60fbaade038744b3981cd08e..3ac3deeb71deae0818ff5d74eb973d52b10d657d 100644 (file)
@@ -10,7 +10,7 @@
     {% if page.vars %}{% include {{ page.vars | prepend: "vars/" }} %}{% 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: 160 }}">{% endif %}
+    {% 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','/' }}">
@@ -28,8 +28,8 @@
       {% 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.date %}
-            <div class="side"><a href="{{ site.baseurl }}{{ page.url }}">Permalink</a> • {{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</div>
+          {% if page.post %}
+            {% include post-header.html item=page %}
           {% endif %}
           <h1>{{ pretitle }}</h1>
         </header>
@@ -40,6 +40,8 @@
       </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>