aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-01-23 19:26:23 +0300
committerGitHub <noreply@github.com>2020-01-23 19:26:23 +0300
commitd05dfb5fbc9603491643a41a47ff9463bf2fda4e (patch)
tree5be50a926a746832df84e7a4abd04eb967f0bb79 /_layouts
parentd48911089650991034664eac3d2dc2cb2527fcaa (diff)
parent11c402a2938935111fc6c82f53b720eb71e355c7 (diff)
downloadpopov.link-d05dfb5fbc9603491643a41a47ff9463bf2fda4e.tar.xz
popov.link-d05dfb5fbc9603491643a41a47ff9463bf2fda4e.zip
Merge pull request #2 from valentineus/monopage
Monopage
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html2
-rw-r--r--_layouts/page.html4
-rw-r--r--_layouts/post.html23
3 files changed, 12 insertions, 17 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index ee363a2..cabcd0b 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -3,7 +3,7 @@ layout: compress
---
<!DOCTYPE html>
-<html lang="{{ site.lang | strip_newlines | strip_html | strip | slugify }}">
+<html lang="{{ site.lang | strip | slugify | xml_escape }}">
{% include head.html %}
<body>
diff --git a/_layouts/page.html b/_layouts/page.html
index 56d1864..32c9b9f 100644
--- a/_layouts/page.html
+++ b/_layouts/page.html
@@ -4,10 +4,8 @@ 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 | normalize_whitespace | xml_escape }}</h1>
</header>
{{ content }}
</main>
-
-{% include aside.html %}
diff --git a/_layouts/post.html b/_layouts/post.html
index e4aaa10..edbc5b7 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -3,21 +3,18 @@ layout: default
---
<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 }}">{{ page.date | date: '%Y-%m-%d' | strip | normalize_whitespace | xml_escape }}</time>
+ <span>on</span>
+ <a href="{{ site.url | absolute_url | uri_escape }}" target="_self">{{ site.title | strip | normalize_whitespace | xml_escape }}</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>{{ site.title | strip | normalize_whitespace | xml_escape }}</h1>
</header>
{{ content }}
-
- {% include disqus.html %}
</article>