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

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Tam <sere@live.hk>2019-08-01 14:33:09 +0300
committerVincent Tam <sere@live.hk>2019-08-01 14:33:09 +0300
commit292db09ad9a8207f169456c1d418527a1f9f046e (patch)
tree178a33afdd307c3bfd158d3a23e2206cfb27841f /layouts
parentf24d1d000e91c7cfff55f3158ba73fd54463b0c1 (diff)
Refactor Page param "song"
- before: manual addition of markdown syntax for links `[title](url)` is error-prone - after: utilise Hugo and YAML's capacities to store and parse data
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 3e81f1b..9e03cf3 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -43,7 +43,7 @@
</header>
{{ with .Params.song -}}
<div class='nowlistening'>
- {{ i18n "song" }} {{ . | markdownify -}}
+ {{ i18n "song" }} <a href='{{ .link }}'>{{ .title }}</a>
</div>
{{ end -}}
{{ if .TableOfContents -}}