Added security to the page template

Signed-off-by: Valentin Popov <valentineus@gmail.com>
This commit is contained in:
Valentin Popov 2018-04-03 21:11:31 +00:00
parent 551391fad5
commit cb2aa93e08

View File

@ -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>