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>2020-04-24 17:42:46 +0300
committerHauke Stieler <mail@hauke-stieler.de>2020-04-24 17:42:46 +0300
commitd9bf7b6af6304f56b900b74b30485567f1ca43da (patch)
tree059d1285acbfe1ca73c1c572a21e9588a6e9fdd9
parentbbca9d220e9b68b8ce8225758969af9d766855a2 (diff)
Fix issue with special characters in tag names
-rw-r--r--layouts/_default/single.html8
-rw-r--r--layouts/shortcodes/imgScale.html2
-rw-r--r--static/css/main.css2
3 files changed, 8 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 15d8107..910d6b6 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -21,9 +21,11 @@
{{ end }}
<div class="pull-right">
{{ range .Params.tags }}
- {{ with $.Site.GetPage "taxonomy" ( print "/tags/" ( . | urlize ) ) }}
- <span class="post-tag small"><a href="{{ .Permalink }}">#{{ .Name }}</a></span>
- {{ end }}
+ <span class="post-tag small">
+ <a href="{{ ($.Site.GetPage "taxonomy" ( print "/tags/" ( . ) ) ).Permalink }}">
+ #{{ . }}
+ </a>
+ </span>
{{ end }}
</div>
</div>
diff --git a/layouts/shortcodes/imgScale.html b/layouts/shortcodes/imgScale.html
index fb7816e..9684c5a 100644
--- a/layouts/shortcodes/imgScale.html
+++ b/layouts/shortcodes/imgScale.html
@@ -23,7 +23,7 @@
<figcaption>
<h4>
<center>
- {{ $subtitle }} ({{ printf "%.*f" 2 (div (len $originalImage.Content) 1000000.0) }}MB)
+ {{ markdownify $subtitle }} ({{ printf "%.*f" 2 (div (len $originalImage.Content) 1000000.0) }}MB)
</center>
</h4>
</figcaption>
diff --git a/static/css/main.css b/static/css/main.css
index 2a7be43..29e846f 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -140,6 +140,7 @@ main {
}
.post-tag a {
+ margin-left: 10px;
padding: 0 10px;
border-radius: 12px;
text-decoration: none;
@@ -199,6 +200,7 @@ main {
}
.summary-container {
+ width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;