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

github.com/hauke96/hugo-theme-hamburg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Stieler <mail@hauke-stieler.de>2021-07-29 22:33:10 +0300
committerHauke Stieler <mail@hauke-stieler.de>2021-07-29 22:33:10 +0300
commita9789f4c52f94fe8c858a767366618df79807ef0 (patch)
tree3c3664bd4d58c929b59737281988fbddc6fe3fee
parentadcb1a182a5c9dc29a87f3b5f60577803ee44a4f (diff)
parentf6ecef75719255078b1f02eed0ff6331ec70020c (diff)
Merge branch 'dev'v0.7.0
-rw-r--r--layouts/_default/_markup/render-link.html1
-rw-r--r--layouts/_default/li.html2
-rw-r--r--layouts/shortcodes/imgScale.html2
-rw-r--r--layouts/shortcodes/note.html2
-rw-r--r--theme.toml2
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">&rarr;</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>
diff --git a/theme.toml b/theme.toml
index 10502cd..28af248 100644
--- a/theme.toml
+++ b/theme.toml
@@ -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"