Added space management

This commit is contained in:
Valentin Popov 2024-02-14 11:38:24 +04:00
parent 2db3902198
commit a3a95d7a9b
Signed by: Valentin Popov
GPG Key ID: AE3CE523DAAA8401
13 changed files with 51 additions and 51 deletions

View File

@ -1,11 +1,11 @@
<h2>Contacts</h2> <h2>Contacts</h2>
<ul> <ul>
{% for contact in site.data.contacts %} {%- for contact in site.data.contacts -%}
<li> <li>
<a href="{{ contact.url | relative_url | uri_escape }}" target="_blank">{{ contact.title | strip | normalize_whitespace | xml_escape }}</a> <a href="{{- contact.url | relative_url | uri_escape -}}" target="_blank">{{- contact.title | strip | normalize_whitespace | xml_escape -}}</a>
<span></span> <span></span>
<span>{{ contact.description | strip | normalize_whitespace | xml_escape }}</span> <span>{{- contact.description | strip | normalize_whitespace | xml_escape -}}</span>
</li> </li>
{% endfor %} {%- endfor -%}
</ul> </ul>

View File

@ -6,20 +6,20 @@
<meta content="index, follow" name="robots" /> <meta content="index, follow" name="robots" />
<!-- Title / Description --> <!-- Title / Description -->
<meta content="{{ page.description | default: site.description | strip | normalize_whitespace | xml_escape }}" name="description" /> <meta content="{{- page.description | default: site.description | strip | normalize_whitespace | xml_escape -}}" name="description" />
<title>{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}</title> <title>{{- page.title | default: site.title | strip | normalize_whitespace | xml_escape -}}</title>
<!-- CSS --> <!-- CSS -->
<link href="{{ '/assets/css/styles.css' | relative_url | uri_escape }}" rel="stylesheet" /> <link href="{{- '/assets/css/styles.css' | relative_url | uri_escape -}}" rel="stylesheet" />
<!-- RSS --> <!-- RSS -->
<link href="{{ site.rss | absolute_url | uri_escape }}" rel="alternate" title="RSS" type="application/atom+xml" /> <link href="{{- site.rss | absolute_url | uri_escape -}}" rel="alternate" title="RSS" type="application/atom+xml" />
<!-- Canonical URL --> <!-- Canonical URL -->
<link href="{{ page.url | absolute_url | uri_escape }}" rel="canonical" /> <link href="{{- page.url | absolute_url | uri_escape -}}" rel="canonical" />
<!--[if lte IE 9]> <!--[if lte IE 9]>
<script type="text/javascript" src="{{ '/assets/javascript/html5shiv-3.7.3.min.js' | relative_url | uri_escape }}"></script> <script type="text/javascript" src="{{- '/assets/javascript/html5shiv-3.7.3.min.js' | relative_url | uri_escape -}}"></script>
<script type="text/javascript" src="{{ '/assets/javascript/respond-1.4.2.min.js' | relative_url | uri_escape }}"></script> <script type="text/javascript" src="{{- '/assets/javascript/respond-1.4.2.min.js' | relative_url | uri_escape -}}"></script>
<![endif]--> <![endif]-->
</head> </head>

View File

@ -1,11 +1,11 @@
<h2>Related links</h2> <h2>Related links</h2>
<ul> <ul>
{% for link in site.data.links %} {%- for link in site.data.links -%}
<li> <li>
<a href="{{ link.url | relative_url | uri_escape }}" target="_blank">{{ link.title | strip | normalize_whitespace | xml_escape }}</a> <a href="{{- link.url | relative_url | uri_escape -}}" target="_blank">{{- link.title | strip | normalize_whitespace | xml_escape -}}</a>
<span></span> <span></span>
<span>{{ link.description | strip | normalize_whitespace | xml_escape }}</span> <span>{{- link.description | strip | normalize_whitespace | xml_escape -}}</span>
</li> </li>
{% endfor %} {%- endfor -%}
</ul> </ul>

View File

@ -1,10 +1,10 @@
<nav> <nav>
{% for link in site.data.navbar %} {%- for link in site.data.navbar -%}
<a href="{{ link.path | relative_url | uri_escape }}">{{ link.title | strip | normalize_whitespace | xml_escape }}</a> <a href="{{- link.path | relative_url | uri_escape -}}">{{- link.title | strip | normalize_whitespace | xml_escape -}}</a>
{% endfor %} {%- endfor -%}
<span> <span>
<span>|</span> <span>|</span>
<a href="{{ site.rss | absolute_url | uri_escape }}">RSS</a> <a href="{{- site.rss | absolute_url | uri_escape -}}">RSS</a>
</span> </span>
</nav> </nav>

View File

@ -1,10 +1,10 @@
<h2>Posts</h2> <h2>Posts</h2>
<ul> <ul>
{% for post in site.posts %} {%- for post in site.posts -%}
<li> <li>
<a href="{{ post.url | relative_url | uri_escape }}">{{ post.title | strip | normalize_whitespace | xml_escape }}</a> <a href="{{- post.url | relative_url | uri_escape -}}">{{- post.title | strip | normalize_whitespace | xml_escape -}}</a>
(<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: '%d-%m-%Y' | strip | normalize_whitespace | xml_escape }}</time>) (<time datetime="{{- post.date | date_to_xmlschema -}}">{{- post.date | date: '%d-%m-%Y' | strip | normalize_whitespace | xml_escape -}}</time>)
</li> </li>
{% endfor %} {%- endfor -%}
</ul> </ul>

View File

@ -1,7 +1,7 @@
{% capture words %} {%- capture words -%}
{{ content | number_of_words | minus: 180 }} {{- content | number_of_words | minus: 180 -}}
{% endcapture %} {%- endcapture -%}
{% unless words contains '-' %} {%- unless words contains '-' -%}
{{ words | plus: 150 | divided_by: 150 | append: '&nbsp;min read' }} {{- words | plus: 150 | divided_by: 150 | append: '&nbsp;min read' -}}
{% endunless %} {%- endunless -%}

View File

@ -3,20 +3,20 @@ layout: compress
--- ---
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ site.lang | strip | slugify | xml_escape }}"> <html lang="{{- site.lang | strip | slugify | xml_escape -}}">
{% include head.html %} {%- include head.html -%}
<body> <body>
<header> <header>
{% include navbar.html %} {%- include navbar.html -%}
</header> </header>
<article> <article>
{{ content }} {{- content -}}
</article> </article>
{% include counter.html %} {%- include counter.html -%}
</body> </body>
</html> </html>

View File

@ -2,4 +2,4 @@
layout: default layout: default
--- ---
{{ content }} {{- content -}}

View File

@ -3,24 +3,24 @@ layout: default
--- ---
<section style="text-align: center;"> <section style="text-align: center;">
<h1>{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}</h1> <h1>{{- page.title | default: site.title | strip | normalize_whitespace | xml_escape -}}</h1>
<p> <p>
<small> <small>
Posted Posted
<time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: '%B %e, %Y' | strip | normalize_whitespace | xml_escape }}</time> <time datetime="{{- page.date | date_to_xmlschema -}}">{{- page.date | date: '%B %e, %Y' | strip | normalize_whitespace | xml_escape -}}</time>
by by
<a href="mailto:{{ site.email | strip | url_encode }}?subject={{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}">Valentin Popov</a> <a href="mailto:{{- site.email | strip | url_encode -}}?subject={{- page.title | default: site.title | strip | normalize_whitespace | xml_escape -}}">Valentin Popov</a>
&nbsp;&hyphen; &nbsp;&hyphen;
<strong>{% include reading-time.html %}</strong> <strong>{%- include reading-time.html -%}</strong>
</small> </small>
</p> </p>
</section> </section>
<section> <section>
{{ content }} {{- content -}}
</section> </section>
<section> <section>
{% include comments.html %} {%- include comments.html -%}
</section> </section>

View File

@ -8,6 +8,6 @@ permalink: /404.html
<p><strong>Page not found.</strong></p> <p><strong>Page not found.</strong></p>
<small> <small>
<p>If you see this message, please <a href="mailto:{{ site.email | strip | url_encode }}?subject={{ 'I found a broken page' | strip | normalize_whitespace | xml_escape }}">let me know</a>.</p> <p>If you see this message, please <a href="mailto:{{- site.email | strip | url_encode -}}?subject={{- 'I found a broken page' | strip | normalize_whitespace | xml_escape -}}">let me know</a>.</p>
</small> </small>
</div> </div>

View File

@ -9,12 +9,12 @@ permalink: /blog.html
<section> <section>
<ul> <ul>
{% for post in site.posts %} {%- for post in site.posts -%}
<li> <li>
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: '%Y/%m/%d' | strip | normalize_whitespace | xml_escape }}</time> <time datetime="{{- post.date | date_to_xmlschema -}}">{{- post.date | date: '%Y/%m/%d' | strip | normalize_whitespace | xml_escape -}}</time>
<span>&mdash;</span> <span>&mdash;</span>
<a href="{{ post.url | relative_url | uri_escape }}">{{ post.title | strip | normalize_whitespace | xml_escape }}</a> <a href="{{- post.url | relative_url | uri_escape -}}">{{- post.title | strip | normalize_whitespace | xml_escape -}}</a>
</li> </li>
{% endfor %} {%- endfor -%}
</ul> </ul>
</section> </section>

View File

@ -3,6 +3,6 @@ layout: page
permalink: /index.html permalink: /index.html
--- ---
{% include contacts.html %} {%- include contacts.html -%}
{% include links.html %} {%- include links.html -%}
{% include posts.html %} {%- include posts.html -%}

View File

@ -4,6 +4,6 @@ permalink: /robots.txt
--- ---
User-agent: * User-agent: *
Disallow: {{ "/404.html" | relative_url | uri_escape }} Disallow: {{- "/404.html" | relative_url | uri_escape -}}
Allow: / Allow: /
Sitemap: {{ "sitemap.xml" | absolute_url | uri_escape }} Sitemap: {{- "sitemap.xml" | absolute_url | uri_escape -}}