Fix absURL paths and exampleSite

This commit is contained in:
panr
2019-01-29 10:47:50 +01:00
parent abf763d2cc
commit 6c68bd63ae
7 changed files with 18 additions and 18 deletions

View File

@ -17,13 +17,13 @@
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">{{ . }}</a>&nbsp;
#<a href="{{ (urlize (printf "tags/%s" . )) | absURL }}">{{ . }}</a>&nbsp;
{{ end }}
</span>
{{ end }}
{{ with .Params.Cover }}
<img src="/img/{{ . }}" class="post-cover" />
<img src="{{ printf "img/%s" . | absURL }}" class="post-cover" />
{{ end }}
<div class="post-content">