mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
30 lines
883 B
HTML
30 lines
883 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode }}">
|
|
|
|
<head>
|
|
{{- partial "head.html" . }}
|
|
</head>
|
|
|
|
<body class="{{ if eq .Kind `page` }}single{{ else }}list{{ if .IsHome }} home{{ end }}{{ end }}">
|
|
<script>
|
|
setTheme();
|
|
</script>
|
|
<header class="header">
|
|
<nav class="nav">
|
|
{{- if .IsHome }}
|
|
<h1 class="logo"><a href="{{ "" | absURL }}">{{ .Site.Title }}</a></h1>
|
|
{{- else }}
|
|
<p class="logo"><a href="{{ "" | absURL }}">{{ .Site.Title }}</a></p>
|
|
{{- end }}
|
|
{{- if .Site.Menus.main }}
|
|
<ul class="menu">
|
|
{{- range .Site.Menus.main }}
|
|
<li>
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|
|
</nav>
|
|
</header>
|
|
<main class="main"> |