aboutsummaryrefslogtreecommitdiff
path: root/_layouts/post.html
diff options
context:
space:
mode:
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html27
1 files changed, 16 insertions, 11 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 8270973..9e0a766 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -2,20 +2,25 @@
layout: default
---
+{% assign date = page.date | date: '%Y-%m-%d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
+{% assign title = site.title | strip_newlines | strip_html| strip | normalize_whitespace | smartify | xml_escape %}
+
<article class="container">
- <header>
- <h1>{{ page.title | strip_newlines | strip_html| strip | normalize_whitespace | smartify | xml_escape }}</h1>
+ <small>
+ <span>Published</span>
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ date }}</time>
+ <span>on</span>
+ <a href="{{ site.url | absolute_url | uri_escape }}" target="_self">{{ title }}</a>
+ <span>|</span>
+ <a href="{{ page.url | absolute_url | uri_escape }}" target="_blank">Permalink</a>
+ </small>
- <small>
- Published <time datetime="{{ page.date | date_to_xmlschema }}">
- {{ page.date | date: '%Y-%m-%d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
- </time> on <a href="{{ site.url | absolute_url | uri_escape }}" target="_self">
- {{ site.title | strip_newlines | strip_html| strip | normalize_whitespace | smartify | xml_escape }}
- </a> | <a href="{{ page.url | absolute_url | uri_escape }}" target="_blank">
- Permalink
- </a>
- </small>
+ <header>
+ <h1>{{ title }}</h1>
</header>
{{ content }}
</article>
+
+{% assign date = "" %}
+{% assign title = "" %}