Zebra/themes/casper/layouts/page/index.html

45 lines
1.6 KiB
HTML
Raw Normal View History

2020-08-05 17:22:00 +02:00
{{ partial "header.html" . }}
{{if .Site.Params.cover}}
{{if or (eq (substr .Site.Params.cover 0 7) "http://") (eq (substr .Site.Params.cover 0 8) "https://")}}
<header class="main-header" style="background-image: url({{.Site.Params.cover}})">
{{ else }}
<header class="main-header" style="background-image: url({{.Site.Params.cover | relURL}})">
{{ end }}
{{else}}
<header class="main-header no-cover">
{{end}}
<nav class="main-nav overlay clearfix">
{{ if .Site.Params.logo }}
<a class="blog-logo" href="{{ .Permalink }}"><img src="{{ .Site.Params.logo | relURL}}" alt="Blog Logo" /></a>
{{end}}
{{ if .Site.Menus.main }}
<a class="menu-button" href="#"><span class="burger">&#9776;</span><span class="word">Menu</span></a>
{{else}}
{{ if .Site.Params.RSSLink}}
<a class="menu-button icon-feed" href="{{.Site.Params.RSSLink }}">&nbsp;&nbsp;Subscribe</a>
{{else}}
2022-12-08 15:42:09 +01:00
<a class="menu-button icon-feed" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}">&nbsp;&nbsp;Subscribe</a>
2020-08-05 17:22:00 +02:00
{{end}}
{{end}}
</nav>
<div class="vertical">
<div class="main-header-content inner">
{{ partial "social.html" . }}
<h1 class="page-title">{{ .Site.Title }}</h1>
<h2 class="page-description">{{ .Site.Params.description }}</h2>
</div>
</div>
<a class="scroll-down icon-arrow-left" href="#content"><span class="hidden">Scroll Down</span></a>
</header>
<main id="content" class="content" role="main">
{{ partial "home-content.html" . }}
</main>
{{ partial "footer.html" . }}