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

github.com/JugglerX/hugo-whisper-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Austin <rob@jugglerdigital.com>2019-03-15 04:37:08 +0300
committerRobert Austin <rob@jugglerdigital.com>2019-03-15 04:37:08 +0300
commite998429ae3cf3253b5edb2eab12b6fd0a29412ec (patch)
treec708bc32c0c3dcb8466ac0071548d8c3defdb5bd
parente4819358a33461e8caa00f7e3514d4ba00b535d5 (diff)
path fixes for themes demo
-rw-r--r--layouts/index.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 41e42bb..6047643 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -22,7 +22,11 @@
<div class="col-12">
<h1 class="title">{{ .Title | default .Site.Title }}</h1>
<div class="content">
- {{ .Content | default .Site.Params.homepage_intro }}
+ {{ if .Content }}
+ {{ .Content }}
+ {{ else }}
+ <p>{{ .Site.Params.homepage_intro }}</p>
+ {{ end }}
</div>
<a class="button button-primary mb-2" href="{{ .Site.Params.homepage_button_link | relURL }}">
{{ .Site.Params.homeoage_button_text }}
@@ -38,7 +42,7 @@
<div class="row justify-content-center">
<div class="col-12 col-md-10">
<div class="terminal">
- <img src="{{ .Site.Params.homepage_image | absURL}}" />
+ <img src="{{ .Site.Params.homepage_image | relURL}}" />
</div>
</div>
</div>