diff options
author | Valentin Popov <valentineus@gmail.com> | 2018-04-04 00:11:31 +0300 |
---|---|---|
committer | Valentin Popov <valentineus@gmail.com> | 2018-04-04 00:15:36 +0300 |
commit | cb2aa93e083b4f59b52586afeaf47a1b5802a3e2 (patch) | |
tree | 4850b55a60c2997754a78897591688f0ab9791a6 /_layouts/page.html | |
parent | 551391fad55507daaa8a081ae73f46cb3f932e26 (diff) | |
download | popov.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/page.html')
-rw-r--r-- | _layouts/page.html | 10 |
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> |