summaryrefslogtreecommitdiff
path: root/themes/flog/layouts/partials/header.html
blob: 03331a0bc406c3e6c20b86a4d6ce351ae9e5eef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
    <head>
        <meta charset="utf-8">
        {{ .Hugo.Generator }}
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
        <link rel="stylesheet" type="text/css" href="/css/materialize-0.97.7.min.css">
        <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
        <link rel="alternate" href="/index.xml" type="application/rss+xml" title="{{ .Site.Title }}">
        <title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title>
    </head>
    <body style="background: url(/background.jpg);" data-speed="5">
        <header>
            <nav class="teal lighten-2">
                <div class="nav-wrapper">
                    <a href="/" class="brand-logo center">{{ .Title }}</a>
                    <ul class="left">
                        {{ $active_section := (or .Section (or (and (not .IsPage) (lower .Title)) "")) }}
                        {{ range $section, $p := .Site.Sections }}
                        <li{{ if eq $active_section $section }} class="active"{{ end }}>
                            <a href="/{{ $section }}/">{{ $section }}</a>
                        </li>
                        {{ end }}
                    <ul>
                </div>
            </nav>
        </header>
        <div class="container">