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

github.com/danielkvist/hugo-piercer-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielkvist <d94.zaragoza@gmail.com>2019-04-02 13:17:25 +0300
committerdanielkvist <d94.zaragoza@gmail.com>2019-04-02 13:17:25 +0300
commit187e7c0e98643669fe18a9a172501fdf0d875519 (patch)
tree1e2c2999aaae01e0e511c2d1c88d9607b48288bf
parent796b09f02d7de34987684d24507fae00c8dcf6c3 (diff)
add support for links on the agreements
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/partials/footer.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 6eba61e..2042ce5 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -112,4 +112,4 @@ themesDir = "../.."
message = ""
[params.agreement]
- message = "Piercer uses Font Awesome. The content of the home page comes from Wikipedia. The content of the blog posts and the about page comes from the Hugo Example Site. The Dracula's image is scary."
+ message = "Piercer uses <a href=\"#\" alt=\"font awesome\">Font Awesome</a>. The content of the home page comes from <a href=\"#\" alt=\"Wikipedia\">Wikipedia</a>. The content of the blog posts and the about page comes from the <a href=\"#\" alt=\"Hugo Example Site\">Hugo Example Site</a>. The Dracula's image is scary."
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 27919b3..8c908af 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -15,7 +15,7 @@
<!-- Agreement -->
{{ if $.Site.Params.agreement.message }}
<section class="footer__agreement">
- {{ $.Site.Params.agreement.message }}
+ {{ safeHTML $.Site.Params.agreement.message }}
</section>
<hr>
{{ end }}