aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/disqus.html4
-rw-r--r--_includes/external_links.html2
-rw-r--r--_includes/footer.html4
-rw-r--r--_includes/head.html6
-rw-r--r--_includes/image.html4
-rw-r--r--_includes/navbar.html4
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>