diff options
author | Valentin Popov <info@valentineus.link> | 2020-01-23 19:21:21 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-01-23 19:23:28 +0300 |
commit | 11c402a2938935111fc6c82f53b720eb71e355c7 (patch) | |
tree | 5be50a926a746832df84e7a4abd04eb967f0bb79 /_layouts | |
parent | 28aec1dfdd90b7ffdd11321895ac37c0c2ab6fc6 (diff) | |
download | popov.link-11c402a2938935111fc6c82f53b720eb71e355c7.tar.xz popov.link-11c402a2938935111fc6c82f53b720eb71e355c7.zip |
Simplified data generation code
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/default.html | 2 | ||||
-rw-r--r-- | _layouts/page.html | 2 | ||||
-rw-r--r-- | _layouts/post.html | 6 |
3 files changed, 5 insertions, 5 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 28cdb0f..32c9b9f 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 | normalize_whitespace | xml_escape }}</h1> </header> {{ content }} diff --git a/_layouts/post.html b/_layouts/post.html index 7731828..edbc5b7 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -5,15 +5,15 @@ layout: default <article class="container"> <small> <span>Published</span> - <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: '%Y-%m-%d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</time> + <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_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</a> + <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> <header> - <h1>{{ site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</h1> + <h1>{{ site.title | strip | normalize_whitespace | xml_escape }}</h1> </header> {{ content }} |