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

github.com/syui/hugo-theme-air.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyui <syui@syui.cf>2018-03-21 10:29:49 +0300
committersyui <syui@syui.cf>2019-02-24 22:15:03 +0300
commitbce969d5c8dfff737571f50195a54365c95fd5f8 (patch)
tree8721b37a6ea523f3c189ca88cafcc1c9216d1704
parent4fb91545c9fe3f818068e34098dc914581ea232f (diff)
fix baseurl
-rw-r--r--layouts/_default/single.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index fc5b8c2..3863806 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -39,12 +39,12 @@
<h1 class="post-title">{{.Title}}</h1>
<section class="post-meta">
{{ if eq .Section "post"}}
- <time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
- {{ .Date.Format "Jan 2, 2006" }}
+ <time class="post-date" datetime="{{ .Date.Format "2006-01-02" }}">
+ {{ .Date.Format "2006-01-02" }}
</time>
{{end}}
{{ range .Params.tags }}
- <span class="post-tag small"><a href="{{ $baseurl }}tags/{{ . | urlize }}/">#{{ . }}</a></span>
+ <span class="post-tag small"><a href="{{.Site.BaseURL}}tags/{{ . | urlize }}/">#{{ . }}</a></span>
{{ end }}
</section>
</header>
@@ -60,7 +60,7 @@
{{if .Site.Params.logo}}
<figure class="author-image">
- <a class="img" href="{{.Site.BaseURL}}" style="background-image: url({{ $baseurl }}{{.Site.Params.logo}})"><span class="hidden">{{ .Site.Params.author }}</span></a>
+ <a class="img" href="{{.Site.BaseURL}}" style="background-image: url({{.Site.BaseURL}}{{.Site.Params.logo}})"><span class="hidden">{{ .Site.Params.author }}</span></a>
</figure>
{{end}}