diff options
author | Valentin Popov <info@valentineus.link> | 2018-04-25 01:15:04 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-04-25 01:18:49 +0300 |
commit | 50d2a17ec6b454404b086c0b000f6c94e5eac88f (patch) | |
tree | 5c61217d92e0c429187b7cc3e78c16e466d784c7 /_includes | |
parent | 023d6ce03d89b37b5bdbf628f66b0c72e348c23a (diff) | |
download | popov.link-50d2a17ec6b454404b086c0b000f6c94e5eac88f.tar.xz popov.link-50d2a17ec6b454404b086c0b000f6c94e5eac88f.zip |
Minor changes
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/disqus.html | 4 | ||||
-rw-r--r-- | _includes/external_links.html | 2 | ||||
-rw-r--r-- | _includes/footer.html | 4 | ||||
-rw-r--r-- | _includes/head.html | 6 | ||||
-rw-r--r-- | _includes/image.html | 4 | ||||
-rw-r--r-- | _includes/navbar.html | 4 |
6 files changed, 12 insertions, 12 deletions
diff --git a/_includes/disqus.html b/_includes/disqus.html index 267e41d..c9b5d32 100644 --- a/_includes/disqus.html +++ b/_includes/disqus.html @@ -3,8 +3,8 @@ <script type="text/javascript" defer> var disqus_config = function () { 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.url = '{{ page.url | absolute_url | uri_escape }}'; + this.page.title = '{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}'; + this.page.url = '{{ page.url | strip_newlines | strip_html | strip | normalize_whitespace | absolute_url | uri_escape }}'; }; (function () { diff --git a/_includes/external_links.html b/_includes/external_links.html index 4a04694..f18abed 100644 --- a/_includes/external_links.html +++ b/_includes/external_links.html @@ -1,7 +1,7 @@ <p class="social-links"> {% for link in site.data.external_links %} <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> <!-- Separation --> {% unless forloop.last %} diff --git a/_includes/footer.html b/_includes/footer.html index 4031b63..e60815d 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,8 +1,8 @@ <footer class="footer"> <small> {% for link in site.data.footer_links %} - <a href="{{ link.path | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}"> - {{ link.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify }} + <a href="{{ link.path | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape }}"> + {{ link.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} </a> <!-- Separation --> {% unless forloop.last %} diff --git a/_includes/head.html b/_includes/head.html index 012e8c7..e7766cb 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -13,9 +13,9 @@ {% endfor %} <!-- Title / Description --> - <meta name="application-name" content="{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | downcase | capitalize }}" /> - <meta name="description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 100 }}" /> - <title>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 64 }}</title> + <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 | xml_escape }}" /> + <title>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 64 | xml_escape }}</title> <!-- CSS --> <link rel="stylesheet" href="{{ '/assets/css/fonts.css' | relative_url | uri_escape }}" /> diff --git a/_includes/image.html b/_includes/image.html index d6be65c..f5684d1 100644 --- a/_includes/image.html +++ b/_includes/image.html @@ -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 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 }}"> <img alt="{{ alternative }}" src="{{ source }}" /> diff --git a/_includes/navbar.html b/_includes/navbar.html index 7c0c8c4..c5d1de8 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -4,8 +4,8 @@ <a href="{{ site.url | uri_escape }}">Home</a> {% for page in pages %} - <a href="{{ page.url | relative_url | uri_escape }}"> - {{ page.title | default: "Page" | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }} + <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 | xml_escape }} </a> {% endfor %} </nav> |