make the new style also work for blog posts
[web.git] / _layouts / default.html
index e19cd91e18b4bbe06bce2e98adbf4ec046b70759..aba9c6c0724b0ec74199c5a5afc39a12e77fb997 100644 (file)
@@ -5,25 +5,25 @@
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width">
 
-    <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
+    <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 %}
 
     <link rel="stylesheet" href="/style.css">
-    <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
-    {% if page.rss or page.layout == 'post' %}<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.url }}" />{% endif %}
+    {% 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 %}
   </head>
 
+  <body><div id="-frame">
 
-  <body><div id="frame">
-
-    {% include menu.html %}
-
-    <div id="page">
-        <h1>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</h1>
-        <div id="content">
-            {{ content }}
-        </div>
-    </div>
+    <nav id="-navi">
+      {% assign menu = site.pages | menu: page.url %}
+      {% include menu-level.html menu=menu %}
+    </nav>
+  
+    <article id="-content">
+        {{ content }}
+    </article>
 
   </div></body>