aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_includes/contacts.html8
-rw-r--r--_includes/head.html14
-rw-r--r--_includes/links.html8
-rw-r--r--_includes/navbar.html8
-rw-r--r--_includes/posts.html8
-rw-r--r--_includes/reading-time.html12
-rw-r--r--_layouts/default.html10
-rw-r--r--_layouts/page.html2
-rw-r--r--_layouts/post.html12
-rw-r--r--_pages/404.html2
-rw-r--r--_pages/blog.html8
-rw-r--r--_pages/index.html6
-rw-r--r--_pages/robots.txt4
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 @@
<h2>Contacts</h2>
<ul>
- {% for contact in site.data.contacts %}
+ {%- for contact in site.data.contacts -%}
<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>{{ contact.description | strip | normalize_whitespace | xml_escape }}</span>
+ <span>{{- contact.description | strip | normalize_whitespace | xml_escape -}}</span>
</li>
- {% endfor %}
+ {%- endfor -%}
</ul>
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 @@
<meta content="index, follow" name="robots" />
<!-- Title / 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>
+ <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>
<!-- 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 -->
- <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 -->
- <link href="{{ page.url | absolute_url | uri_escape }}" rel="canonical" />
+ <link href="{{- page.url | absolute_url | uri_escape -}}" rel="canonical" />
<!--[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/respond-1.4.2.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>
<![endif]-->
</head> \ 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 @@
<h2>Related links</h2>
<ul>
- {% for link in site.data.links %}
+ {%- for link in site.data.links -%}
<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>{{ link.description | strip | normalize_whitespace | xml_escape }}</span>
+ <span>{{- link.description | strip | normalize_whitespace | xml_escape -}}</span>
</li>
- {% endfor %}
+ {%- endfor -%}
</ul>
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 @@
<nav>
- {% for link in site.data.navbar %}
- <a href="{{ link.path | relative_url | uri_escape }}">{{ link.title | strip | normalize_whitespace | xml_escape }}</a>
- {% endfor %}
+ {%- for link in site.data.navbar -%}
+ <a href="{{- link.path | relative_url | uri_escape -}}">{{- link.title | strip | normalize_whitespace | xml_escape -}}</a>
+ {%- endfor -%}
<span>
<span>|</span>
- <a href="{{ site.rss | absolute_url | uri_escape }}">RSS</a>
+ <a href="{{- site.rss | absolute_url | uri_escape -}}">RSS</a>
</span>
</nav> \ 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 @@
<h2>Posts</h2>
<ul>
- {% for post in site.posts %}
+ {%- for post in site.posts -%}
<li>
- <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>)
+ <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>)
</li>
- {% endfor %}
+ {%- endfor -%}
</ul>
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: '&nbsp;min read' }}
-{% endunless %} \ No newline at end of file
+{%- unless words contains '-' -%}
+{{- words | plus: 150 | divided_by: 150 | append: '&nbsp;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
---
<!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>
<header>
- {% include navbar.html %}
+ {%- include navbar.html -%}
</header>
<article>
- {{ content }}
+ {{- content -}}
</article>
- {% include counter.html %}
+ {%- include counter.html -%}
</body>
</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
---
<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>
<small>
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
- <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;
- <strong>{% include reading-time.html %}</strong>
+ <strong>{%- include reading-time.html -%}</strong>
</small>
</p>
</section>
<section>
- {{ content }}
+ {{- content -}}
</section>
<section>
- {% include comments.html %}
+ {%- include comments.html -%}
</section> \ 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
<p><strong>Page not found.</strong></p>
<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>
</div> \ 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
<section>
<ul>
- {% for post in site.posts %}
+ {%- for post in site.posts -%}
<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>
- <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>
- {% endfor %}
+ {%- endfor -%}
</ul>
</section> \ 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 -}}