websites_sum7-eu/layouts/partials/header.html

67 lines
3.0 KiB
HTML
Raw Permalink Normal View History

2018-08-31 01:18:19 +02:00
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
2020-05-13 12:52:46 +02:00
<title>{{ if ne .RelPermalink "/" }}{{ .Title }} &middot; {{ end }}{{ .Site.Title }}</title>
2018-10-09 10:40:10 +02:00
<link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.BaseURL }}/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.BaseURL }}/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.BaseURL }}/favicon-16x16.png">
<link rel="manifest" href="{{ .Site.BaseURL }}/site.webmanifest">
<link rel="mask-icon" href="{{ .Site.BaseURL }}/safari-pinned-tab.svg" color="#f4a12c">
<meta name="msapplication-TileColor" content="#f4a12c">
<meta name="theme-color" content="#f4a12c">
2018-08-31 01:18:19 +02:00
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/font-awesome.min.css" />
</head>
<body>
{{ if isset .Params "image" }}
<header class="header" style="background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url({{ .Site.BaseURL }}{{.Params.image }}) 49.9% 49.9% / cover;" role="banner">
{{"<!-- FeaturedImage. Otherwise show default //-->" | safeHTML}}
{{ else }}
<header class="header" style="background-color: #f4a12c;
background-image: url({{ .Site.BaseURL }}/img/texture.png),linear-gradient(to bottom, #f4a12c, #d37e06);background-repeat: repeat, no-repeat;background-position: left top, left top;background-size: 100px 100px, 100% 100%;" role="banner">
{{ end }}
<section id="branding">
2018-10-09 10:40:10 +02:00
<div id="site-title"><a href="{{ .Site.BaseURL }}"><img src="{{ .Site.BaseURL }}/img/logo.svg" /></a></div>
2018-08-31 01:18:19 +02:00
<nav id="mainmenu">
<ul>
<li><a href="{{ .Site.BaseURL }}">Home</a></li>
<li><a href="{{ .Site.BaseURL }}/post">Blog</a></li>
{{ range .Site.Pages }}
{{ if and .IsPage (eq .Type "page") }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</nav>
<input type="checkbox" id="op"></input>
<div class="lower">
<label for="op">Menu</label>
</div>
<div class="overlay overlay-hugeinc">
<label for="op"></label>
<nav id="menu" role="navigation">
<ul>
<li><a href="{{ .Site.BaseURL }}">Home</a></li>
<li><a href="{{ .Site.BaseURL }}/post">Blog</a></li>
{{ range .Site.Pages }}
{{ if and .IsPage (eq .Type "page") }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</nav>
</div>
<div class="clearfix"></div>
</section>
<div class="post-heading">
<h1>{{ if and ($.IsNode) (eq $.Section "") }} {{ .Site.Title }} {{ else }} {{ .Title }} {{ end }} </h1>
</div>
</header>
<div id="container">