Replace absURL with relURL and .Site.X with site.X

This commit is contained in:
Emruz Hossain 2020-10-23 00:19:35 +06:00
parent dda04c533e
commit c542effd65
20 changed files with 72 additions and 72 deletions

View file

@ -1,6 +1,6 @@
<div
class="achievement-entry text-center"
style="background-image: url({{ .image | absURL }});"
style="background-image: url('{{ strings.TrimSuffix "/" site.BaseURL }}{{ .image | relURL }}');"
>
<i class="fas fa-search-plus" id="enlarge-icon"></i>
<h4 class="title" id="achievement-title">{{ .title }}</h4>