summaryrefslogtreecommitdiff
path: root/themes/hugo-classic/layouts/partials/header.html
diff options
context:
space:
mode:
authorleo <azuminha1@gmail.co>2025-10-16 20:02:39 -0300
committerleo <azuminha1@gmail.co>2025-10-16 20:02:39 -0300
commit8e7996214af853803c4dd04534b1f5646b0ac1c5 (patch)
tree14a30d462b47b54d41613347782da6e48b71d082 /themes/hugo-classic/layouts/partials/header.html
first
Diffstat (limited to 'themes/hugo-classic/layouts/partials/header.html')
-rw-r--r--themes/hugo-classic/layouts/partials/header.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/themes/hugo-classic/layouts/partials/header.html b/themes/hugo-classic/layouts/partials/header.html
new file mode 100644
index 0000000..855f593
--- /dev/null
+++ b/themes/hugo-classic/layouts/partials/header.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}">
+ <head>
+
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/images/site.webmanifest">
+
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.Description }}{{ end }}">
+ <title>{{ .Title }} | {{ .Site.Title }}</title>
+ <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" />
+ <link rel="stylesheet" href="{{ "/css/fonts.css" | relURL }}" />
+ {{ range .Site.Params.custom_css -}}
+ <link rel="stylesheet" href="{{ . | absURL }}">
+ {{- end }}
+ {{ partial "head_custom.html" . }}
+ </head>
+
+ <body>
+ <header>
+ <nav>
+ <ul>
+ {{ $title := lower .Title }}
+ {{ $section := lower .Section }}
+ <li class="pull-left {{ if .IsHome }}current{{ end }}">
+ <a href="{{ .Site.BaseURL }}">~/{{ lower .Site.Title}}</a>
+ </li>
+ {{ range .Site.Menus.main }}
+ {{ $name := lower .Name }}
+ <li class="pull-left {{ if eq $name $title }}current{{ else if eq $section $name }}current{{ else if eq $title (pluralize $name) }}current{{ end }}">
+ <a href="{{ .URL }}">~/{{ lower .Name }}</a>
+ </li>
+ {{end}}
+
+ {{ range .Site.Menus.feed }}
+ {{ $name := lower .Name}}
+ <li class="pull-right">
+ <a href="{{ .URL }}">~/{{ lower .Name}}</a>
+ </li>
+ {{end}}
+
+ </ul>
+ </nav>
+ </header>
+