mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
posts.html: Use "relURL" (#50)
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
This commit is contained in:
parent
890f89d8d1
commit
74cf40df08
1 changed files with 2 additions and 2 deletions
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue