Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fncnt/vncnt-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfncnt <github@vncnt.eu>2019-03-06 15:23:51 +0300
committerfncnt <github@vncnt.eu>2019-03-06 15:23:51 +0300
commit006156a9e86a9529d5479220c6d07d0acf6986f8 (patch)
tree7d35d96ddeda4b7ad7693446db7e92f0798f5a1d
parent60d40f44bac5c9aa7939ab99dc75306e69689359 (diff)
Markdownify error404 parameter
-rw-r--r--config.toml2
-rw-r--r--layouts/404.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/config.toml b/config.toml
index 1fe61f8..f4ab22e 100644
--- a/config.toml
+++ b/config.toml
@@ -29,7 +29,7 @@ title = "John Doe · Landing Page"
bio = "First Row. \nSecond Row."
avatar = "img/avatar.jpg"
favicon = "img/favicon.ico"
- error404 = "404 – There is no such page."
+ error404 = "404 -- There is no such page."
[params.contact]
github = "https://github.com/jdoe"
diff --git a/layouts/404.html b/layouts/404.html
index 0989339..3f9a6c7 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -2,9 +2,9 @@
{{ partial "includes" . }}
<div class="error404">
{{ with .Site.Params.error404 }}
- <h2>{{ . }}</h2>
+ <h2>{{ . | markdownify }}</h2>
{{ else }}
- <h2>404 – There is no such page.</h2>
+ <h2>{{ "404 -- There is no such page." | markdownify}}</h2>
{{ end }}
</div>
</html>