From a3a95d7a9b020f9aeb66e17cab16e957f5a7cb5e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 14 Feb 2024 11:38:24 +0400 Subject: [PATCH] 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 ++++++------ _layouts/default.html | 10 +++++----- _layouts/page.html | 2 +- _layouts/post.html | 12 ++++++------ _pages/404.html | 2 +- _pages/blog.html | 8 ++++---- _pages/index.html | 6 +++--- _pages/robots.txt | 4 ++-- 13 files changed, 51 insertions(+), 51 deletions(-) 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 diff --git a/_layouts/default.html b/_layouts/default.html index ca65e32..b0937c7 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -3,20 +3,20 @@ layout: compress --- - + -{% include head.html %} +{%- include head.html -%}
- {% include navbar.html %} + {%- include navbar.html -%}
- {{ content }} + {{- content -}}
- {% include counter.html %} + {%- include counter.html -%} \ No newline at end of file diff --git a/_layouts/page.html b/_layouts/page.html index 84f03f7..d629bc5 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -2,4 +2,4 @@ layout: default --- -{{ content }} \ No newline at end of file +{{- content -}} \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index 9ff87ac..aa32f3e 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -3,24 +3,24 @@ layout: default ---
-

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

+

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

Posted - + by - Valentin Popov + Valentin Popov  ‐ - {% include reading-time.html %} + {%- include reading-time.html -%}

- {{ content }} + {{- content -}}
- {% include comments.html %} + {%- include comments.html -%}
\ No newline at end of file diff --git a/_pages/404.html b/_pages/404.html index aca708f..1fcbc7c 100644 --- a/_pages/404.html +++ b/_pages/404.html @@ -8,6 +8,6 @@ permalink: /404.html

Page not found.

-

If you see this message, please let me know.

+

If you see this message, please let me know.

\ No newline at end of file diff --git a/_pages/blog.html b/_pages/blog.html index 847129e..a1c6cb5 100644 --- a/_pages/blog.html +++ b/_pages/blog.html @@ -9,12 +9,12 @@ permalink: /blog.html
\ No newline at end of file diff --git a/_pages/index.html b/_pages/index.html index de3ea3a..47ea02e 100644 --- a/_pages/index.html +++ b/_pages/index.html @@ -3,6 +3,6 @@ layout: page permalink: /index.html --- -{% include contacts.html %} -{% include links.html %} -{% include posts.html %} \ No newline at end of file +{%- include contacts.html -%} +{%- include links.html -%} +{%- include posts.html -%} \ No newline at end of file diff --git a/_pages/robots.txt b/_pages/robots.txt index a16a265..28c5b92 100644 --- a/_pages/robots.txt +++ b/_pages/robots.txt @@ -4,6 +4,6 @@ permalink: /robots.txt --- User-agent: * -Disallow: {{ "/404.html" | relative_url | uri_escape }} +Disallow: {{- "/404.html" | relative_url | uri_escape -}} Allow: / -Sitemap: {{ "sitemap.xml" | absolute_url | uri_escape }} +Sitemap: {{- "sitemap.xml" | absolute_url | uri_escape -}}