summaryrefslogtreecommitdiff
path: root/themes/beautifulhugo/layouts/partials/header.html
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2021-02-18 21:44:01 +0100
committerChristoph Cullmann <cullmann@kde.org>2021-02-18 21:44:01 +0100
commite9ec93a471d9a753db01b682e75c52b32adf16f2 (patch)
tree5f6d9a2b7d90852965b6d24f9db6a9198570c03b /themes/beautifulhugo/layouts/partials/header.html
parentbcafaafff80184537a3116de5341a8caa24d63f4 (diff)
use LoveIt theme, self hosted
Diffstat (limited to 'themes/beautifulhugo/layouts/partials/header.html')
-rw-r--r--themes/beautifulhugo/layouts/partials/header.html87
1 files changed, 0 insertions, 87 deletions
diff --git a/themes/beautifulhugo/layouts/partials/header.html b/themes/beautifulhugo/layouts/partials/header.html
deleted file mode 100644
index 2182534..0000000
--- a/themes/beautifulhugo/layouts/partials/header.html
+++ /dev/null
@@ -1,87 +0,0 @@
-{{- partial "load-photoswipe-theme.html" . }}
-
-{{ if .IsHome }}
- {{ if .Site.Params.homeTitle }}{{ $.Scratch.Set "title" .Site.Params.homeTitle }}{{ else }}{{ $.Scratch.Set "title" .Site.Title }}{{ end }}
- {{ if .Site.Params.subtitle }}{{ $.Scratch.Set "subtitle" .Site.Params.subtitle }}{{ end }}
- {{ if .Site.Params.bigimg }}{{ $.Scratch.Set "bigimg" .Site.Params.bigimg }}{{ end }}
-{{ else }}
- {{ $.Scratch.Set "title" .Title }}
- {{ if .Params.subtitle }}{{ $.Scratch.Set "subtitle" .Params.subtitle }}{{ end }}
- {{ if .Params.bigimg }}{{ $.Scratch.Set "bigimg" .Params.bigimg }}{{ end }}
-{{ end }}
-{{ $bigimg := $.Scratch.Get "bigimg" }}
-{{ $title := $.Scratch.Get "title" }}
-{{ $subtitle := $.Scratch.Get "subtitle" }}
-
-{{ if or $bigimg $title }}
- {{ if $bigimg }}
- <div id="header-big-imgs" data-num-img={{len $bigimg}}
- {{range $i, $img := $bigimg}}
- {{ if (fileExists $img.src)}}
- data-img-src-{{add $i 1}}="{{$img.src | absURL }}"
- {{else}}
- data-img-src-{{add $i 1}}="{{$img.src}}"
- {{end}}
- {{ if $img.desc}}data-img-desc-{{add $i 1}}="{{$img.desc}}"{{end}}
- {{end}}></div>
- {{ end }}
-
- <header class="header-section {{ if $bigimg }}has-img{{ end }}">
- {{ if $bigimg }}
- <div class="intro-header big-img">
- {{ $subtitle := $.Scratch.Get "subtitle" }}
- <div class="container">
- <div class="row">
- <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
- <div class="{{ .Type }}-heading">
- <h1>{{ with $.Scratch.Get "title" }}{{.}}{{ else }}<br/>{{ end }}</h1>
- {{ if $subtitle }}
- {{ if eq .Type "page" }}
- <hr class="small">
- <span class="{{ .Type }}-subheading">{{ $subtitle }}</span>
- {{ else }}
- <h2 class="{{ .Type }}-subheading">{{ $subtitle }}</h2>
- {{ end }}
- {{ end }}
- {{ if eq .Type "post" }}
- {{ partial "post_meta.html" . }}
- {{ end }}
- </div>
- </div>
- </div>
- </div>
- <span class="img-desc" style="display: inline;"></span>
- </div>
- {{end}}
- <div class="intro-header no-img">
- <div class="container">
- <div class="row">
- <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
- <div class="{{ .Type }}-heading">
- {{ if eq .Type "list" }}
- <h1>{{ if .Data.Singular }}#{{ end }}{{ .Title }}</h1>
- {{ else }}
- <h1>{{ with $title }}{{.}}{{ else }}<br/>{{ end }}</h1>
- {{ end }}
- {{ if ne .Type "post" }}
- <hr class="small">
- {{ end }}
- {{ if $subtitle }}
- {{ if eq .Type "page" }}
- <span class="{{ .Type }}-subheading">{{ $subtitle }}</span>
- {{ else }}
- <h2 class="{{ .Type }}-subheading">{{ $subtitle }}</h2>
- {{ end }}
- {{ end }}
- {{ if eq .Type "post" }}
- {{ partial "post_meta.html" . }}
- {{ end }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </header>
-{{ else }}
- <div class="intro-header"></div>
-{{ end }}