Minor changes

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2018-04-25 02:15:04 +04:00
parent 023d6ce03d
commit 50d2a17ec6
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
9 changed files with 17 additions and 19 deletions

View File

@ -3,8 +3,8 @@
<script type="text/javascript" defer> <script type="text/javascript" defer>
var disqus_config = function () { var disqus_config = function () {
this.page.identifier = '{{ page.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}'; this.page.identifier = '{{ page.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}';
this.page.title = '{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}'; this.page.title = '{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}';
this.page.url = '{{ page.url | absolute_url | uri_escape }}'; this.page.url = '{{ page.url | strip_newlines | strip_html | strip | normalize_whitespace | absolute_url | uri_escape }}';
}; };
(function () { (function () {

View File

@ -1,7 +1,7 @@
<p class="social-links"> <p class="social-links">
{% for link in site.data.external_links %} {% for link in site.data.external_links %}
<a href="{{ link.url | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape }}"> <a href="{{ link.url | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape }}">
{{ link.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify }} {{ link.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</a> </a>
<!-- Separation --> <!-- Separation -->
{% unless forloop.last %} {% unless forloop.last %}

View File

@ -1,8 +1,8 @@
<footer class="footer"> <footer class="footer">
<small> <small>
{% for link in site.data.footer_links %} {% for link in site.data.footer_links %}
<a href="{{ link.path | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}"> <a href="{{ link.path | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape }}">
{{ link.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify }} {{ link.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</a> </a>
<!-- Separation --> <!-- Separation -->
{% unless forloop.last %} {% unless forloop.last %}

View File

@ -13,9 +13,9 @@
{% endfor %} {% endfor %}
<!-- Title / Description --> <!-- Title / Description -->
<meta name="application-name" content="{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | downcase | capitalize }}" /> <meta name="application-name" content="{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
<meta name="description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 100 }}" /> <meta name="description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 100 | xml_escape }}" />
<title>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 64 }}</title> <title>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 64 | xml_escape }}</title>
<!-- CSS --> <!-- CSS -->
<link rel="stylesheet" href="{{ '/assets/css/fonts.css' | relative_url | uri_escape }}" /> <link rel="stylesheet" href="{{ '/assets/css/fonts.css' | relative_url | uri_escape }}" />

View File

@ -1,6 +1,6 @@
{% assign alternative = include.alt | strip_newlines | strip_html | strip | normalize_whitespace | smartify | downcase | capitalize %} {% assign alternative = include.alt | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
{% assign identifier = include.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify %} {% assign identifier = include.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify %}
{% assign source = include.src | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape %} {% assign source = include.src | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape %}
<a href="#{{ identifier }}"> <a href="#{{ identifier }}">
<img alt="{{ alternative }}" src="{{ source }}" /> <img alt="{{ alternative }}" src="{{ source }}" />

View File

@ -4,8 +4,8 @@
<a href="{{ site.url | uri_escape }}">Home</a> <a href="{{ site.url | uri_escape }}">Home</a>
{% for page in pages %} {% for page in pages %}
<a href="{{ page.url | relative_url | uri_escape }}"> <a href="{{ page.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
{{ page.title | default: "Page" | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }} {{ page.title | default: "Page" | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</a> </a>
{% endfor %} {% endfor %}
</nav> </nav>

View File

@ -5,7 +5,7 @@ layout: default
<div class="content"> <div class="content">
<article> <article>
<header> <header>
<h1>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }}</h1> <h1>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</h1>
</header> </header>
{{ content }} {{ content }}

View File

@ -6,7 +6,7 @@ layout: default
<article> <article>
<header> <header>
<small><time datetime="{{ page.date | date_to_xmlschema}}">{{ page.date | date_to_long_string }}</time></small> <small><time datetime="{{ page.date | date_to_xmlschema}}">{{ page.date | date_to_long_string }}</time></small>
<h1>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }}</h1> <h1>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</h1>
</header> </header>
{{ content }} {{ content }}

View File

@ -15,14 +15,12 @@ layout: page
<div class="post-item"> <div class="post-item">
<small><time datetime="{{ post.date | date_to_xmlschema}}">{{ post.date | date_to_long_string }}</time></small> <small><time datetime="{{ post.date | date_to_xmlschema}}">{{ post.date | date_to_long_string }}</time></small>
<h4> <h4>
<a href="{{ post.url | relative_url | uri_escape }}"> <a href="{{ post.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
{{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }} {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</a> </a>
</h4> </h4>
{% if post.description %} <p>{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 | xml_escape }}</p>
<p>{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 }}</p>
{% endif %}
</div> </div>
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}