33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode | default "en" }}">
|
|
<title>{{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
|
|
<meta charset="utf-8">
|
|
{{ hugo.Generator }}
|
|
{{- if or .Description .Site.Params.description }}
|
|
<meta name="description" content="{{ .Description | default .Site.Params.description }}">
|
|
{{- end }}
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/{{ if .Site.Params.minimal }}minimal.css{{else}}index.css{{ end }}">
|
|
<link rel="canonical" href="{{ .Permalink }}">
|
|
<link rel="alternate" type="application/rss+xml" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" title="{{ .Site.Title }}">
|
|
{{- if or .Params.math .Site.Params.math }}
|
|
{{ partial "math.html" . }}
|
|
{{- end }}
|
|
|
|
<header>
|
|
{{ if not (gt (len .Site.Menus) 1) }}
|
|
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
|
|
{{ end }}
|
|
{{ range $menu, $items := .Site.Menus }}
|
|
<nav>
|
|
{{ range $items }}
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
{{ end }}
|
|
</nav>
|
|
{{ end }}
|
|
</header>
|
|
|
|
{{- block "main" . }}{{- end }}
|
|
|
|
</html>
|