diff options
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r-- | layouts/_default/baseof.html | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ecac3b1..0504861 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,29 +1,30 @@ -<!DOCTYPE html> +<!doctype html> <html lang="{{ .Site.Language.LanguageCode }}"> - <head> + <head> {{ partial "head.html" . }} <!-- this is here to make sure that if we can't load CSS the icons don't totally fuck up layout --> - <style>.icon svg { width: 1.25em; height: 1.25em; }</style> -{{ range .AlternativeOutputFormats -}} -{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} -{{ end -}} -</head> -<body> -<a href="#main" class="skip">Skip to content</a> -<nav id="main-nav"> -<ul> -<li><a href="{{.Site.BaseURL}}" id="site-title">{{.Site.Title}}</a></li> -{{ with .Site.Menus.main }} - {{ range . }} + <style> + .icon svg { + width: 1.25em; + height: 1.25em; + } + </style> + {{ range .AlternativeOutputFormats -}} {{ printf ` + <link rel="%s" type="%s" href="%s" title="%s" /> + ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} + </head> + <body> + <a href="#main" class="skip">Skip to content</a> + <nav id="main-nav"> + <div id="site-title">{{.Site.Title}}</div> + <ul> + {{ with .Site.Menus.main }} {{ range . }} <li><a href="{{ .URL }}">{{ .Name }}</a></li> - {{ end }} -{{ end }} -</ul> -</nav> + {{ end }} {{ end }} + </ul> + </nav> -<main id="main"> -{{ block "main" . }}{{ end }} -</main> -{{ partial "footer.html" . }} -</body> + <main id="main">{{ block "main" . }}{{ end }}</main> + {{ partial "footer.html" . }} + </body> </html> |