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

github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/main')
-rw-r--r--layouts/partials/main/landing/home-landing.html3
-rw-r--r--layouts/partials/main/sections/list-menu.html2
-rw-r--r--layouts/partials/main/sections/single-menu.html2
3 files changed, 5 insertions, 2 deletions
diff --git a/layouts/partials/main/landing/home-landing.html b/layouts/partials/main/landing/home-landing.html
index f69e25d..0277dfb 100644
--- a/layouts/partials/main/landing/home-landing.html
+++ b/layouts/partials/main/landing/home-landing.html
@@ -2,6 +2,9 @@
{{ $landing := . }}
<div class="divider">
<div class="lmr">
+ {{ with .backgroundImage }}
+ <div style="background-image: url('{{ .src | relURL }}'); background-position: center; background-repeat: no-repeat; background-size: cover; position: absolute; top: -50px; left: 0; width: 100%; height: {{ .height }}px;"></div>
+ {{ end }}
<div class="home__landing">
{{ if .image }}
<div class="home__landing--img">
diff --git a/layouts/partials/main/sections/list-menu.html b/layouts/partials/main/sections/list-menu.html
index c87f3f4..4a26b3f 100644
--- a/layouts/partials/main/sections/list-menu.html
+++ b/layouts/partials/main/sections/list-menu.html
@@ -3,7 +3,7 @@
{{ if .IsHome }}
{{ .Site.Title }}
{{ else }}
- {{ .Type }}
+ {{ $.Param "Title" }}
{{ end }}
</h6>
<ul>
diff --git a/layouts/partials/main/sections/single-menu.html b/layouts/partials/main/sections/single-menu.html
index 17ef9ea..3f6d042 100644
--- a/layouts/partials/main/sections/single-menu.html
+++ b/layouts/partials/main/sections/single-menu.html
@@ -3,7 +3,7 @@
{{ if .IsHome }}
{{ .Site.Title }}
{{ else }}
- {{ .Type }}
+ {{ $.Param "Title" }}
{{ end }}
</h6>
<ul>