kozmo-dark/layouts/partials/header.html

49 lines
1.7 KiB
HTML
Raw Permalink Normal View History

2018-03-13 21:38:44 +01:00
<!DOCTYPE html>
2020-06-30 23:09:07 +02:00
<html lang="{{ .Language }}">
2018-03-13 21:38:44 +01:00
<head>
2020-06-29 23:22:05 +02:00
<meta charset="UTF-8">
2018-03-13 21:38:44 +01:00
<title>{{ .Title }} - {{ .Site.Title }}</title>
2018-03-25 17:47:19 +02:00
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/kozmo-dark.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}{{ .Site.Params.custom_css }}">
2018-03-13 21:38:44 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0">
2020-06-30 23:09:07 +02:00
{{ hugo.Generator -}}
2018-03-13 21:38:44 +01:00
{{ if isset .Site.Params "mathjax"}}
<script type="text/javascript" src="{{ .Site.Params.mathjax }}">
</script>
2020-06-30 23:09:07 +02:00
{{ end }}
2018-03-13 21:38:44 +01:00
</head>
<body>
<div id="container">
<div id="header-left">
2020-06-30 23:09:07 +02:00
{{ if isset .Site.Params "logoimage" -}}
2018-03-13 21:38:44 +01:00
<div id="site-logo">
2018-03-25 17:47:19 +02:00
<a href="{{ .Site.BaseURL }}"><img alt="Site logo" src="{{ .Site.BaseURL }}{{ .Site.Params.logoimage }}"></a>
2018-03-13 21:38:44 +01:00
</div>
2020-06-30 23:09:07 +02:00
{{ end -}}
<div id="site-title"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></div>
<div id="site-slogan">{{ .Site.Params.Description }}</div>
2018-03-13 21:38:44 +01:00
</div>
<div id="header-right">
2020-06-30 23:09:07 +02:00
{{- if .IsTranslated }}
2018-03-13 21:38:44 +01:00
<ul class="language-selector">
2020-06-30 23:09:07 +02:00
<li>
2018-03-13 21:38:44 +01:00
<a class="selected">{{ .Language.LanguageName }}</a>
</li>
2020-06-30 23:09:07 +02:00
{{- range .Translations }}
2018-03-13 21:38:44 +01:00
<li>
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
</li>
2020-06-30 23:09:07 +02:00
{{- end }}
2018-03-13 21:38:44 +01:00
</ul>
2020-06-30 23:09:07 +02:00
{{- end }}
</div>
{{ partial "menu.html" . -}}
{{- if isset .Params "image" }}
<div id="featured-image">
<img alt="Featured image" src="{{ .Params.image }}">
</div>
{{- end }}
<div id="page-title">
<h1>{{ .Title }}</h1>
2018-03-13 21:38:44 +01:00
</div>