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>2018-08-29 03:12:15 +0300
committerHauke Stieler <mail@hauke-stieler.de>2018-08-29 03:12:15 +0300
commitc9dadc955df9dbfd3e05e6c0f44173bf5ab766e6 (patch)
tree092387c46fed0d9ec1654b5a8cfda7a0f9d9621d
parent88e41598a35d9d17d04f22e0e0662bbf2c66212f (diff)
Fix URLs
-rw-r--r--layouts/_default/taxonomy.html2
-rw-r--r--layouts/partials/header.html8
2 files changed, 7 insertions, 3 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index cea3b43..3fdea4d 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -2,7 +2,7 @@
<section class="article-list">
<div id="container-tags-title">
<h1>{{ .Title }}</h1>
- <a class="btn btn-primary" id="btn-all-tags" href="{{ "/tags" | absLangURL }}">
+ <a class="btn btn-primary" id="btn-all-tags" href="{{ "tags" | absLangURL }}">
{{ i18n "allTags" }}
</a>
</div>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index a34ce98..adeea7e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -49,9 +49,13 @@
{{ end }}
</head>
<body>
- <header class="global-header" style="background-image:url({{ if isset .Params "image" }}{{ .Params.image }} {{ else }} /images/bg.jpg {{ end }})">
+ {{ if isset .Params "image" }}
+ <header class="global-header" style="background-image:url({{ .Params.image }})">
+ {{ else }}
+ <header class="global-header" style="background-image:url({{ "images/bg.jpg" | absURL }})">
+ {{ end }}
<section class="header-text">
- <h1><a href="{{ "/" | absLangURL }}">{{ .Site.Title }}</a></h1>
+ <h1><a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a></h1>
{{ with .Site.Params.subtitle }}
<h3 class="tag-line">
{{ . }}