Browse Source

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

Signed-off-by: Stephan Kulla <git.mail@kulla.me>
Stephan Kulla 8 years ago
parent
commit
74cf40df08
1 changed files with 2 additions and 2 deletions
  1. 2 2
      layouts/partials/widgets/posts.html

+ 2 - 2
layouts/partials/widgets/posts.html

@@ -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}}