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

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Chucheng <ccwangchn@gmail.com>2020-05-26 17:54:16 +0300
committerWang Chucheng <ccwangchn@gmail.com>2020-05-26 17:54:16 +0300
commit4e0b5c0747baf1be4a68e120e64f29e9d270c2ed (patch)
treebd1740ed5f936c3ebae5488d10c82afcf47c4fc8 /layouts/index.html
parent9683947ad473ecece505ede70ee731e4b290d92d (diff)
refactor: change exampleSite
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html
index e0ef571..ea3d917 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -15,16 +15,16 @@
</div> -->
<div class="grid grid-cols-9 grid-rows-5 h-screen -mt-16">
<div class="col-start-2 col-span-4 row-start-3 row-span-2 bg-local bg-cover z-10 shadow-2xl"
- style="background-image: url({{ print "img/hero-1.jpg" | relURL }});"></div>
+ style="background-image: url({{ printf "img/%s" .Site.Params.hero.imgLeft | relURL }});"></div>
<div class="col-start-3 col-span-5 row-start-2 row-span-3 z-20">
<div class="flex flex-col items-center justify-center min-h-full">
<div class="bg-white bg-opacity-75 shadow-2xl -m-12 p-12">
- <span class="font-bold text-black text-opacity-75 text-2xl md:text-3xl">{{ .Site.Params.slogan }}</span>
+ <span class="font-bold text-black text-opacity-75 text-2xl md:text-3xl">{{ .Site.Params.hero.slogan }}</span>
</div>
</div>
</div>
<div class="col-start-5 col-span-4 row-start-2 row-span-2 bg-local bg-cover shadow-2xl"
- style="background-image: url({{ print "img/hero-2.jpg" | relURL }});"></div>
+ style="background-image: url({{ printf "img/%s" .Site.Params.hero.imgRight | relURL }});"></div>
</div>
<!-- <div class="grid grid-cols-8 grid-rows-6 xl:grid-rows-4 bg-cover bg-fixed -mx-8 -mt-12"
style="height: calc(100vh - 4rem); background-image: url(foo.jpg)">