get rid of crazy include-vars-magic and pretitles, at the expense of more layouts
[web.git] / ralf / _layouts / default.html
diff --git a/ralf/_layouts/default.html b/ralf/_layouts/default.html
new file mode 100644 (file)
index 0000000..ca29f47
--- /dev/null
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+
+  <head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width">
+
+    <title>{{ page.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 }}">
+    {% if page.rss %}
+        <link rel="alternate" type="application/atom+xml" title="{{ site.blog.title }}" href="{{ site.baseurl }}/blog/feed.xml" />
+        {% if page.category %}<link rel="alternate" type="application/atom+xml" title="{{ page.title }}" href="{{ site.baseurl }}{{ page.url | replace: '.html','.xml' }}" />{% endif %}
+    {% endif %}
+  </head>
+
+  <body><div id="-frame">
+
+    <nav id="-navi">
+      {% assign menu = site.pages | menu: page.url %}
+      {% include menu-level.html menu=menu %}
+    </nav>
+  
+    <article id="-content">
+      {{ content }}
+    </article>
+
+  </div></body>
+
+</html>