100 lines
3.6 KiB
HTML
100 lines
3.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode }}">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{ block "title" . }}{{ .Page.Title }} - {{ .Site.Title }}{{ end }}</title>
|
|
<link rel="icon" type="image/png" href="{{ "favicon.png" | relURL }}">
|
|
|
|
<!-- Keywords -->
|
|
{{ if .Keywords }}
|
|
<meta name="keywords" content="{{ delimit .Keywords ", " }}">
|
|
{{ else if .Site.Params.DefaultKeywords }}
|
|
<meta name="keywords" content="{{ delimit .Site.Params.DefaultKeywords ", " }}">
|
|
{{ end }}
|
|
|
|
<!-- Description -->
|
|
{{ if .Description }}
|
|
<meta name="description" content="{{ .Description }}">
|
|
{{ else if .Site.Params.DefaultDescription }}
|
|
<meta name="description" content="{{ .Site.Params.DefaultDescription }}">
|
|
{{ end }}
|
|
|
|
<!-- Some other meta -->
|
|
{{ hugo.Generator }}
|
|
{{ template "_internal/opengraph.html" . }}
|
|
<link rel="alternate" href="{{ "/index.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
|
|
|
<!-- CSS -->
|
|
{{- if .Site.IsServer }}
|
|
{{- $cssOpts := (dict "enableSourceMap" true) }}
|
|
{{- $css := resources.Get "style.scss" | toCSS $cssOpts }}
|
|
<link rel="stylesheet" type="text/css" href="{{ $css.RelPermalink }}">
|
|
{{- else }}
|
|
{{- $cssOpts := (dict "outputStyle" "compressed") }}
|
|
{{- $css := resources.Get "style.scss" | toCSS $cssOpts | minify | fingerprint }}
|
|
<link rel="stylesheet" type="text/css" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}">
|
|
{{- end }}
|
|
</head>
|
|
|
|
<body>
|
|
<nav class="navbar" role="navigation" aria-label="main navigation">
|
|
<div class="container">
|
|
<div class="navbar-brand">
|
|
<a class="navbar-item" href="{{ "/" | relLangURL }}">
|
|
<img src="{{ printf "/images/%s" .Site.Params.navbarlogo.image | relURL }}" alt="" width="112">
|
|
</a>
|
|
|
|
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbar-menu">
|
|
<span aria-hidden="true"></span>
|
|
<span aria-hidden="true"></span>
|
|
<span aria-hidden="true"></span>
|
|
</a>
|
|
</div>
|
|
|
|
<div id="navbar-menu" class="navbar-menu is-fixed">
|
|
<div class="navbar-end">
|
|
{{- range .Site.Menus.main }}
|
|
<a href="{{ .URL }}" class="navbar-item">
|
|
{{ .Name }}
|
|
</a>
|
|
{{- end }}
|
|
|
|
<!-- Search -->
|
|
<div class="navbar-item control">
|
|
<input class="input is-small has-background-grey-darker" id="autoComplete" type="search"
|
|
placeholder="{{ i18n "search" }}">
|
|
</div>
|
|
|
|
<!-- Translations -->
|
|
{{ range $.Page.Translations }}
|
|
<a href="{{ .Permalink }}" class="navbar-item">
|
|
<img src="{{ printf "images/%s_lang.svg" .Language | relURL }}" width="32" alt="{{ .Language }}"/>
|
|
</a>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
{{ block "main" . }}{{ end }}
|
|
|
|
<footer class="footer footer-dark">
|
|
<div class="content has-text-centered">
|
|
<span>© {{ now.Year }} Aurore</span>
|
|
<span>·</span>
|
|
<span><a href="https://gitea.auro.re/aurore/homepage" target="_blank">{{ i18n "source_code" }}</a></span>
|
|
</div>
|
|
</footer>
|
|
|
|
<script type="text/javascript" src="{{ "js/autoComplete.min.js" | relURL }}"></script>
|
|
<script type="text/javascript">
|
|
const indexUrl = "{{ "index.json" | absLangURL }}";
|
|
</script>
|
|
<script type="text/javascript" src="{{ "js/search.js" | relURL }}"></script>
|
|
<script type="text/javascript" src="{{ "js/navbar.js" | relURL }}"></script>
|
|
</body>
|
|
|
|
</html>
|