aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-04-04 00:11:31 +0300
committerValentin Popov <valentineus@gmail.com>2018-04-04 00:15:36 +0300
commitcb2aa93e083b4f59b52586afeaf47a1b5802a3e2 (patch)
tree4850b55a60c2997754a78897591688f0ab9791a6 /_layouts
parent551391fad55507daaa8a081ae73f46cb3f932e26 (diff)
downloadpopov.link-cb2aa93e083b4f59b52586afeaf47a1b5802a3e2.tar.xz
popov.link-cb2aa93e083b4f59b52586afeaf47a1b5802a3e2.zip
Added security to the page template
Signed-off-by: Valentin Popov <valentineus@gmail.com>
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/page.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/_layouts/page.html b/_layouts/page.html
index 1a0cca5..67ac0c6 100644
--- a/_layouts/page.html
+++ b/_layouts/page.html
@@ -2,8 +2,12 @@
layout: default
---
-<!-- Contents of the page -->
<div class="page">
- <h1 class="page-title">{{ page.title }}</h1>
- {{ content }}
+ <!-- Header -->
+ <h1 class="page-title">
+ {{ page.title | smartify | strip_html | normalize_whitespace }}
+ </h1>
+
+ <!-- Contents -->
+ {{ content | normalize_whitespace }}
</div>