diff options
author | Vincent Tam <sere@live.hk> | 2019-08-01 14:33:09 +0300 |
---|---|---|
committer | Vincent Tam <sere@live.hk> | 2019-08-01 14:33:09 +0300 |
commit | 292db09ad9a8207f169456c1d418527a1f9f046e (patch) | |
tree | 178a33afdd307c3bfd158d3a23e2206cfb27841f /layouts/_default | |
parent | f24d1d000e91c7cfff55f3158ba73fd54463b0c1 (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/_default')
-rw-r--r-- | layouts/_default/single.html | 2 |
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 -}} |