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