diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-21 16:32:35 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-21 16:32:35 +0200 |
| commit | 1f824e6ae5ac39d0cefe0244ea9223c1783494f3 (patch) | |
| tree | b898d60dabde26ace368e1482a6189d5009ae95f /themes/flog/layouts/partials/header.html | |
| download | pragblog-1f824e6ae5ac39d0cefe0244ea9223c1783494f3.tar.gz pragblog-1f824e6ae5ac39d0cefe0244ea9223c1783494f3.zip | |
first commit, dummies
Diffstat (limited to 'themes/flog/layouts/partials/header.html')
| -rw-r--r-- | themes/flog/layouts/partials/header.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/themes/flog/layouts/partials/header.html b/themes/flog/layouts/partials/header.html new file mode 100644 index 0000000..5a32775 --- /dev/null +++ b/themes/flog/layouts/partials/header.html @@ -0,0 +1,27 @@ +<!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 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"> |
