values:
permalink: "/blog/:year/:month/:day/:title.html"
rss: true
- post: true
- vars: "blog-page.html"
+ layout: "post"
# Build settings
markdown: kramdown
+++ /dev/null
-{% assign pretitle = site.blog.title %}
+++ /dev/null
-{% assign title = site.blog.title %}
+++ /dev/null
-{% assign pretitle = site.blog.title %}
---
layout: feed
hide: true
-vars: "blog-category.html"
---
+<title>{{ page.title | xml_escape }}</title>
{% assign posts = site.categories[page.category] %}
{% include post-feed.html posts=posts %}
layout: page
hide: true
rss: true
-vars: "blog-category.html"
---
{% assign posts = site.categories[page.category] %}
--- /dev/null
+<!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>
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
- {% assign title = page.title %}
- {% assign pretitle = page.pretitle %}
- {% if page.vars %}{% include {{ page.vars | prepend: "vars/" }} %}{% endif %}
- <title>{% if pretitle %}{{ pretitle | xml_escape }} • {% endif %}{{ title | xml_escape }}</title>
<id>{{ page.url | prepend: site.baseurl | prepend: site.url }}</id>
<link href="{{ page.url | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/atom+xml"/>
{% if page.category %}
-<!DOCTYPE html>
-<html>
+---
+layout: default
+---
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
+<header class="title">
+<h1>{{ page.title }}</h1>
+</header>
- {% assign title = page.title %}
- {% assign pretitle = page.pretitle %}
- {% 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: 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="{{ site.blog.title }} • {{ 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">
- {% 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>{% if page.reddit %} or <a href="https://www.reddit.com/r{{ page.reddit }}">leave a note on reddit</a>{% endif %}!</p>
- {% endif %}
- </article>
-
- </div></body>
-
-</html>
+{{ content }}
--- /dev/null
+---
+layout: default
+---
+
+<header class="title">
+ {% include post-header.html item=page %}
+ <h1>{{ page.title }}</h1>
+</header>
+
+{{ content }}
+
+<p class="comment">Comments? <a href="mailto:post-AT-ralfj-DOT-de">Drop me a mail</a>{% if page.reddit %} or <a href="https://www.reddit.com/r{{ page.reddit }}">leave a note on reddit</a>{% endif %}!</p>
self.read_yaml(File.join(base, '_layouts'), layout)
self.data['category'] = category # this tells the site template to add a link to the RSS feed
- category_title_prefix = site.config['blog']['category_title_prefix'] || 'Category: '
+ category_title_prefix = site.config['blog']['title'] + ": "
self.data['title'] = "#{category_title_prefix}#{category.capitalize}"
end
end
---
title: Archive
-vars: blog-page.html
+layout: default
rss: true
sort: 1
hide: true
---
+
+<header class="title">
+<h1>{{ site.blog.title }}</h1>
+</header>
+
<p>Here you can find direct links to all my blog posts.</p>
<ul class="post-list">
vars: blog-index.html
---
+<title>{{ site.blog.title | xml_escape }}</title>
{% include post-feed.html posts=site.posts %}
---
-vars: blog-index.html
+layout: default
slug: Blog
rss: true
sort: 10
---
+<header class="title">
+<h1>{{ site.blog.title }}</h1>
+</header>
+
{% include post-list.html posts=site.posts %}