45 lines
1.6 KiB
HTML
45 lines
1.6 KiB
HTML
{{ 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">☰</span><span class="word">Menu</span></a>
|
|
{{else}}
|
|
{{ if .Site.Params.RSSLink}}
|
|
<a class="menu-button icon-feed" href="{{.Site.Params.RSSLink }}"> Subscribe</a>
|
|
{{else}}
|
|
<a class="menu-button icon-feed" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}"> Subscribe</a>
|
|
{{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" . }}
|