summaryrefslogtreecommitdiff
path: root/themes/flog/layouts/partials/header.html
blob: 0f00ed917b79ff8808d9a6c766c8850de7665002 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!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-image: url(/images/min/skyline.jpg); background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover;">
        <div id="main">
            <header class="navbar-fixed">
                <nav class="black">
                    <div class="nav-wrapper">
                        <a href="/" class="brand-logo" style="margin-left: 1rem;">{{ if not .IsHome }}{{ .Site.Title }} &mdash; {{ end }}{{ .Title }}</a>
                        <a href="#" data-activates="slide-sections" class="button-collapse">
                            <i><img src="/fonts/icons/ic_menu_white_36px.svg"></i>
                        </a>
                        <ul class="right hide-on-med-and-down">
                            {{ $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> <!-- menu large -->
                        <ul id="slide-sections" class="side-nav">
                            <li{{ if .IsHome }} class="active"{{ end }}>
                                <a href="/">home</a>
                            </li>
                            {{ $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> <!-- menu side -->
                    </div>
                </nav>
            </header>
            <div class="container">