hugo-semantic-theme

A minimal semantically rich Hugo theme
Log | Files | Refs | LICENSE

header.html (1182B)


      1 <!DOCTYPE html>
      2 <html lang="en-US">
      3   <head>
      4     <meta charset="utf-8">
      5     <title>{{.Title}}</title>
      6     {{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed") }}
      7     {{ $style := resources.Get "sass/main.sass" | resources.ToCSS $options }}
      8     <link rel="stylesheet" type="text/css" href="{{ $style.Permalink }}">
      9     <link rel="stylesheet" type="text/css" href="https://necolas.github.io/normalize.css/8.0.1/normalize.css">
     10     <link rel="icon" href="/favicon.ico">
     11     {{ range .AlternativeOutputFormats -}}
     12     {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
     13     {{ end -}}
     14 
     15   </head>
     16   <body>
     17     <header class="main">
     18             <h1 class="logo"><a href="/"><img src="{{ .Site.Params.logo }}" alt="{{ .Site.Title }}"/></a></h1>
     19             <nav class="menu">
     20               <ul>
     21                 {{ range $nav := .Site.Params.nav }}
     22                 <li><a href="{{ $nav.url }}">{{ $nav.title }}</a></li>
     23                 {{ end}}
     24                 <li><a href="/index.xml"><img src="/images/rss.svg" alt="rss" class="rss" /></a></li>
     25               </ul>
     26             </nav>
     27     </header>
     28