0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-03 16:10:26 +03:00

Simplified data generation code

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
2020-01-23 20:21:21 +04:00
parent 28aec1dfdd
commit 11c402a293
7 changed files with 17 additions and 17 deletions

View File

@ -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>

View File

@ -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 }}

View File

@ -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 }}