contrast-hugo/layouts/_default/baseof.html

53 lines
1.9 KiB
HTML
Raw Normal View History

2019-07-15 09:04:11 -04:00
<!DOCTYPE html>
2019-07-15 09:07:53 -04:00
<html lang="{{ .Site.LanguageCode | default "en" }}">
2019-07-15 09:04:11 -04:00
<title>{{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
<meta charset="utf-8">
2019-07-18 15:26:43 -04:00
{{ hugo.Generator }}
{{- if or .Description .Site.Params.description }}
2019-07-15 09:04:11 -04:00
<meta name="description" content="{{ .Description | default .Site.Params.description }}">
2019-07-18 15:26:43 -04:00
{{- end }}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2020-02-03 14:19:33 -05:00
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/index.css">
2019-08-01 09:44:41 -04:00
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/classes.css">
2020-02-03 14:44:17 -05:00
{{- if .Site.Params.sidebar }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/sidebar.css" media="screen and (min-width: 70em)">
{{- end }}
2020-02-03 11:05:50 -05:00
<link rel="canonical" href="{{ .Permalink }}">
<link rel="alternate" type="application/rss+xml" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" title="{{ .Site.Title }}">
2019-07-15 09:04:11 -04:00
{{- if or .Params.math .Site.Params.math }}
2020-02-03 11:05:50 -05:00
{{ partial "math.html" . }}
2019-07-15 09:04:11 -04:00
{{- end }}
2020-02-18 11:40:33 -05:00
<body>
2020-02-18 11:55:14 -05:00
<header class="icons">
2020-02-18 11:49:01 -05:00
{{ if not (gt (len .Site.Menus) 1) }}
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
{{ end }}
2020-02-18 11:55:14 -05:00
{{ range $menu, $items := .Site.Menus }}
2020-02-18 11:49:01 -05:00
<nav>
2020-02-18 11:55:14 -05:00
{{ range $items }}
<a href="{{ .URL }}" {{ if (eq $.RelPermalink .URL) }}class="selected"{{ end }}>
2020-02-20 09:16:34 -05:00
{{ if and .Identifier (index $.Site.Data.fontawesome.icons .Identifier) }}
{{ $icon := index $.Site.Data.fontawesome.icons .Identifier }}
{{ $svg := $icon.svg.solid | default $icon.svg.regular | default $icon.svg.brands }}
<span {{ if eq $menu "main" }}class="hidden"{{ end }}>{{ safeHTML $svg.raw }}</span>
<span {{ if not (eq $menu "main") }}class="hidden"{{ end }}>{{ .Name }}</span>
{{ else }}
{{ .Name }}
{{ end }}
2020-02-18 11:55:14 -05:00
</a>
2020-02-18 11:49:01 -05:00
{{ end }}
</nav>
{{ end }}
{{ with .Site.Params.description }}
<div class="hidden description">{{ safeHTML . }}</div>
{{ end }}
2019-07-15 09:04:11 -04:00
</header>
{{- block "main" . }}{{- end }}
2020-02-18 11:40:33 -05:00
2020-02-07 15:20:47 -05:00
</body>
2019-07-15 09:04:11 -04:00
</html>