diff options
author | Hauke Stieler <mail@hauke-stieler.de> | 2021-07-29 22:33:10 +0300 |
---|---|---|
committer | Hauke Stieler <mail@hauke-stieler.de> | 2021-07-29 22:33:10 +0300 |
commit | a9789f4c52f94fe8c858a767366618df79807ef0 (patch) | |
tree | 3c3664bd4d58c929b59737281988fbddc6fe3fee | |
parent | adcb1a182a5c9dc29a87f3b5f60577803ee44a4f (diff) | |
parent | f6ecef75719255078b1f02eed0ff6331ec70020c (diff) |
Merge branch 'dev'v0.7.0
-rw-r--r-- | layouts/_default/_markup/render-link.html | 1 | ||||
-rw-r--r-- | layouts/_default/li.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/imgScale.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/note.html | 2 | ||||
-rw-r--r-- | theme.toml | 2 |
5 files changed, 5 insertions, 4 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..a9457c0 --- /dev/null +++ b/layouts/_default/_markup/render-link.html @@ -0,0 +1 @@ +<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text }}</a> diff --git a/layouts/_default/li.html b/layouts/_default/li.html index 9109620..b6af265 100644 --- a/layouts/_default/li.html +++ b/layouts/_default/li.html @@ -14,7 +14,7 @@ {{ if (isset .Params "summary") }} <div class="li-content"> <div class="summary-container"> - <p>{{ markdownify .Params.Summary }}</p> + <p>{{ .Params.Summary | .Page.RenderString }}</p> <a class="btn btn-primary" href="{{ .Permalink }}"> {{ i18n "readMore" }} <span aria-hidden="true">→</span> </a> diff --git a/layouts/shortcodes/imgScale.html b/layouts/shortcodes/imgScale.html index 9684c5a..e25713f 100644 --- a/layouts/shortcodes/imgScale.html +++ b/layouts/shortcodes/imgScale.html @@ -23,7 +23,7 @@ <figcaption> <h4> <center> - {{ markdownify $subtitle }} ({{ printf "%.*f" 2 (div (len $originalImage.Content) 1000000.0) }}MB) + {{ $subtitle | .Page.RenderString }} ({{ printf "%.*f" 2 (div (len $originalImage.Content) 1000000.0) }}MB) </center> </h4> </figcaption> diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html index 6ab3a25..b826c90 100644 --- a/layouts/shortcodes/note.html +++ b/layouts/shortcodes/note.html @@ -1,3 +1,3 @@ <div class="note note-border"> - {{ .Inner | markdownify }} + {{ .Inner | .Page.RenderString }} </div> @@ -5,7 +5,7 @@ description = "Simple and clean blog theme for hugo" homepage = "https://github.com/hauke96/hugo-theme-hamburg" tags = ["blog", "tags", "bootstrap", "multilingual", "clean", "minimal", "disqus", "font awesome", "mobile"] repo = "https://github.com/hauke96/hugo-theme-hamburg" -min_version = "0.57" +min_version = "0.62" [author] name = "Hauke Stieler" |