From a3a95d7a9b020f9aeb66e17cab16e957f5a7cb5e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 14 Feb 2024 11:38:24 +0400 Subject: Added space management --- _includes/contacts.html | 8 ++++---- _includes/head.html | 14 +++++++------- _includes/links.html | 8 ++++---- _includes/navbar.html | 8 ++++---- _includes/posts.html | 8 ++++---- _includes/reading-time.html | 12 ++++++------ 6 files changed, 29 insertions(+), 29 deletions(-) (limited to '_includes') diff --git a/_includes/contacts.html b/_includes/contacts.html index 6a9cef4..ef5c526 100644 --- a/_includes/contacts.html +++ b/_includes/contacts.html @@ -1,11 +1,11 @@

Contacts

diff --git a/_includes/head.html b/_includes/head.html index 936368f..7a80b10 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -6,20 +6,20 @@ - - {{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }} + + {{- page.title | default: site.title | strip | normalize_whitespace | xml_escape -}} - + - + - + \ No newline at end of file diff --git a/_includes/links.html b/_includes/links.html index 8d40d6d..116ff91 100644 --- a/_includes/links.html +++ b/_includes/links.html @@ -1,11 +1,11 @@

Related links

diff --git a/_includes/navbar.html b/_includes/navbar.html index 431b268..f2780ad 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -1,10 +1,10 @@ \ No newline at end of file diff --git a/_includes/posts.html b/_includes/posts.html index 4638c9b..48036dc 100644 --- a/_includes/posts.html +++ b/_includes/posts.html @@ -1,10 +1,10 @@

Posts

diff --git a/_includes/reading-time.html b/_includes/reading-time.html index 2515099..de71601 100644 --- a/_includes/reading-time.html +++ b/_includes/reading-time.html @@ -1,7 +1,7 @@ -{% capture words %} -{{ content | number_of_words | minus: 180 }} -{% endcapture %} +{%- capture words -%} +{{- content | number_of_words | minus: 180 -}} +{%- endcapture -%} -{% unless words contains '-' %} -{{ words | plus: 150 | divided_by: 150 | append: ' min read' }} -{% endunless %} \ No newline at end of file +{%- unless words contains '-' -%} +{{- words | plus: 150 | divided_by: 150 | append: ' min read' -}} +{%- endunless -%} \ No newline at end of file -- cgit v1.2.3