Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/projects.html')
-rw-r--r--layouts/partials/projects.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html
index 6a6b050..1adef84 100644
--- a/layouts/partials/projects.html
+++ b/layouts/partials/projects.html
@@ -14,7 +14,7 @@
<div class="card-image">
<figure class="image is-3by2">
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
- <img src="{{ if .Params.image }}{{ .Params.image }}{{ else }}{{ .Site.Params.placeHolderimg | default "img/workday.jpg" }}{{ end }}">
+ <img src="{{ if .Params.image }}{{ .Params.image | relURL }}{{ else }}{{ (.Site.Params.placeHolderimg | default "/img/workday.jpg") | relURL }}{{ end }}">
</a>
</figure>
</div>
@@ -42,7 +42,7 @@
</header>
{{ end }}
{{ if .Params.image }}
- <img src="{{ .Params.image }}" class="img-responsive img-centered">
+ <img src="{{ .Params.image | relURL }}" class="img-responsive img-centered">
{{ end }}
{{ if .Content }}
<section class="modal-card-body markdown">