posts.html: Use "relURL" (#50)

Signed-off-by: Stephan Kulla <git.mail@kulla.me>
This commit is contained in:
Stephan Kulla 2016-10-04 18:03:39 +02:00 committed by gcushen
commit 74cf40df08

View file

@ -13,7 +13,7 @@
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
{{ if gt $posts_len $page.Params.count }}
<p class="view-all">
<a href="{{ .Site.BaseURL }}post/">
<a href="{{ "/post/" | relURL }}">
{{ with $page.Params.str_all }}{{ . | markdownify }}{{ end }}
<i class="fa fa-angle-double-right"></i>
</a>
@ -27,7 +27,7 @@
<div class="article-list-item" itemscope itemprop="blogPost">
{{ if .Params.image }}
<a href="{{ .Permalink }}">
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="article-banner"
<img src="{{ "/img/" | relURL }}{{ .Params.image }}" class="article-banner"
itemprop="image">
</a>
{{end}}