make the page layout general enough to cover posts - also achieves more uniformity
authorRalf Jung <post@ralfj.de>
Thu, 8 Oct 2015 20:27:09 +0000 (22:27 +0200)
committerRalf Jung <post@ralfj.de>
Thu, 8 Oct 2015 20:27:09 +0000 (22:27 +0200)
_config.yml
_layouts/page.html
_layouts/post.html [deleted file]
blog/archive.html

index 37a8410..bf82a60 100644 (file)
@@ -28,7 +28,8 @@ defaults:
         path: ""
         type: "posts"
     values:
-        layout: "post"
+        rss: true
+        pretitle: "Ralf's Ramblings"
 
 # Build settings
 markdown: kramdown
index 9397774..6858d0a 100644 (file)
@@ -1,6 +1,15 @@
 ---
 layout: default
 ---
+{% if page.pretitle %}
+<header id="-pretitle">
+  {% if page.date %}
+    <div class="side"><a href="{{ page.url }}">Permalink</a> • {{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</div>
+  {% endif %}
+  <h1>{{ page.pretitle }}</h1>
+</header>
+{% endif %}
+
 <header id="-title">
   <h1>{{ page.title }}</h1>
 </header>
diff --git a/_layouts/post.html b/_layouts/post.html
deleted file mode 100644 (file)
index d6500b9..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
----
-layout: default
-pretitle: "Ralf's Ramblings"
-rss: true
----
-<header id="-pretitle">
-  <div class="side"><a href="{{ page.url }}">Permalink</a> • {{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</div>
-  <h1>{{ page.pretitle }}</h1>
-</header>
-
-<header id="-title">
-  <h1>{{ page.title }}</h1>
-</header>
-
-
-{{ content }}
-
index 9f0119e..f6db232 100644 (file)
@@ -1,12 +1,12 @@
 ---
-title: "Ralf's Ramblings: Archive"
-slug: Archive
+title: Archive
+pretitle: "Ralf's Ramblings"
 rss: true
 sort: 1
 hide: true
 ---
 
-<p>Here you can find all my blog posts.</p>
+<p>Here you can find direct links to all my blog posts.</p>
 
   <ul class="post-list">
     {% for post in site.posts %}