aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorTrack3 <pengliabc@live.cn>2018-11-22 21:33:07 +0800
committerTrack3 <pengliabc@live.cn>2018-11-22 21:33:07 +0800
commite594f1a4948f6344f8353faac035721878d5cddf (patch)
tree06677e2ddeb88a4a317b90f1cfc387364a68d09e /layouts/index.html
parent0a0ee1a1c7e99f40445e0955862d42f1c7a59a09 (diff)
downloadhermit-e594f1a4948f6344f8353faac035721878d5cddf.tar.gz
Add homepage background image
See #2
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 702c2c4..c36f3d3 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,4 +1,7 @@
{{ define "main" }}
+ {{- with .Site.Params.bgImg }}
+ <div class="bg-img" style="background-image: url('{{ . }}')"></div>
+ {{- end }}
<div id="spotlight" class="animated fadeIn">
<div id="home-center">
<h1 id="home-title">{{ .Site.Title }}</h1>