From 11c402a2938935111fc6c82f53b720eb71e355c7 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 23 Jan 2020 20:21:21 +0400 Subject: Simplified data generation code Signed-off-by: Valentin Popov --- _includes/contacts.html | 4 ++-- _includes/head.html | 12 ++++++------ _includes/links.html | 4 ++-- _includes/posts.html | 4 ++-- _layouts/default.html | 2 +- _layouts/page.html | 2 +- _layouts/post.html | 6 +++--- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/_includes/contacts.html b/_includes/contacts.html index 1389c30..6a9cef4 100644 --- a/_includes/contacts.html +++ b/_includes/contacts.html @@ -3,9 +3,9 @@ diff --git a/_includes/head.html b/_includes/head.html index aa6fb4f..e7fe582 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -8,20 +8,20 @@ {% for tag in site.data.meta_tags %} - + {% endfor %} - - + + - - - {{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} + + + {{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }} diff --git a/_includes/links.html b/_includes/links.html index e7a2801..8d40d6d 100644 --- a/_includes/links.html +++ b/_includes/links.html @@ -3,9 +3,9 @@ diff --git a/_includes/posts.html b/_includes/posts.html index fee0c31..4638c9b 100644 --- a/_includes/posts.html +++ b/_includes/posts.html @@ -3,8 +3,8 @@ 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 --- - + {% include head.html %} 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
-

{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}

+

{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}

{{ 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
Published - + on - {{ site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} + {{ site.title | strip | normalize_whitespace | xml_escape }} | Permalink
-

{{ site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}

+

{{ site.title | strip | normalize_whitespace | xml_escape }}

{{ content }} -- cgit v1.2.3