62 lines
2.1 KiB
HTML
62 lines
2.1 KiB
HTML
|
{{ partial "header.html" . }}
|
||
|
|
||
|
{{if .Params.cover}}
|
||
|
{{if or (eq (substr .Params.cover 0 7) "http://") (eq (substr .Params.cover 0 8) "https://")}}
|
||
|
<header class="main-header tag-head" style="background-image: url({{.Params.cover}})">
|
||
|
{{ else }}
|
||
|
<header class="main-header tag-head" style="background-image: url({{.Params.cover | relURL}})">
|
||
|
{{ end }}
|
||
|
{{else 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 tag-head" style="background-image: url({{.Site.Params.cover}})">
|
||
|
{{ else }}
|
||
|
<header class="main-header tag-head" style="background-image: url({{.Site.Params.cover | relURL}})">
|
||
|
{{ end }}
|
||
|
{{else}}
|
||
|
<header class="main-header tag-head no-cover">
|
||
|
{{end}}
|
||
|
<nav class="main-nav overlay clearfix">
|
||
|
{{ if .Site.Params.logo }}
|
||
|
<a class="blog-logo" href="{{.Site.BaseURL}}"><img src="{{ .Site.Params.logo | relURL }}" alt="Home" /></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="{{ .RSSLink }}"> Subscribe</a>
|
||
|
{{end}}
|
||
|
{{end}}
|
||
|
<a class="menu-button icon-feed" href="{{ .RSSLink }}"> Subscribe</a>
|
||
|
</nav>
|
||
|
<div class="vertical">
|
||
|
<div class="main-header-content inner">
|
||
|
<h1 class="page-title">{{.Title}}</h1>
|
||
|
<h2 class="page-description">
|
||
|
{{if .Params.description}}
|
||
|
{{.Params.description}}
|
||
|
{{end}}
|
||
|
</h2>
|
||
|
</div>
|
||
|
</div>
|
||
|
</header>
|
||
|
|
||
|
<main class="content" role="main">
|
||
|
{{ $paginator := .Paginator }}
|
||
|
|
||
|
<div class="extra-pagination inner">
|
||
|
{{ partial "pagination.html" $paginator }}
|
||
|
</div>
|
||
|
|
||
|
{{ range $index, $page := $paginator.Pages }}
|
||
|
{{ partial "li.html" . }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ partial "pagination.html" $paginator }}
|
||
|
</main>
|
||
|
|
||
|
|
||
|
|
||
|
{{ partial "footer.html" . }}
|