header.html 2.5 KB
Newer Older
key-amb's avatar
key-amb committed
1
<!DOCTYPE html>
2
{{ $baseUrl := .Site.BaseURL }}
3
{{ $isHomePage := eq .Title .Site.Title }}
4
5
6
7
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
8
		<link rel="alternate" href="/index.xml" type="application/rss+xml" title="{{ .Site.Title }}">
key-amb's avatar
key-amb committed
9
		<link rel="icon" href="{{ $baseUrl }}/favicon.ico">
key-amb's avatar
key-amb committed
10
		<title>{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title>
11
		<!--<link href="http://fonts.googleapis.com/css?family=PT+Sans:400,700" rel="stylesheet" type="text/css">-->
12
		<link rel="stylesheet" href="{{ $baseUrl }}/css/highlight.js.min.css">
key-amb's avatar
key-amb committed
13
		<link rel="stylesheet" href="{{ $baseUrl }}/css/bootstrap.min.css">
key-amb's avatar
key-amb committed
14
		<link rel="stylesheet" href="{{ $baseUrl }}/css/bootstrap-theme.min.css">
key-amb's avatar
key-amb committed
15
16
		<link rel="stylesheet" href="{{ $baseUrl }}/css/theme.css">
		<link rel="stylesheet" href="{{ $baseUrl }}/css/bootie-docs.css">
17
	</head>
18
19
20
21
22
23
24
25
26
27
28
29
30

<body role="document">

	<!-- Fixed navbar -->
	<nav class="navbar navbar-inverse navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
key-amb's avatar
key-amb committed
31
				<a class="navbar-brand" href="{{ $baseUrl }}/">{{ .Site.Title }}</a>
32
33
34
			</div>
			<div id="navbar" class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
key-amb's avatar
key-amb committed
35
					<li {{ if eq $isHomePage true }}class="active"{{ end }}><a href="{{ $baseUrl }}/">Home</a></li>
36
			{{ if isset .Site.Params "mainMenu" }}
key-amb's avatar
key-amb committed
37
				{{ $url := .Permalink }}
38
				{{ range $item := .Site.Params.mainMenu }}
key-amb's avatar
key-amb committed
39
40
					{{ $itemUrl := printf "%s/%s/" $baseUrl $item }}
					<li {{ if eq $url $itemUrl }}class="active"{{ end }}><a href="{{ $baseUrl }}/{{ $item }}">{{ title $item }}</a></li>
41
42
				{{ end }}
			{{ end }}
43
44
				{{ if isset .Site.Params "noCategoryLink" }}{{ else }}
					<li class="dropdown">
45
46
47
						<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Categories<span class="caret"></span></a>
						<ul class="dropdown-menu" role="menu">
						{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
key-amb's avatar
key-amb committed
48
							<li><a href="{{ $baseUrl }}/categories/{{ $name | urlize }}">{{ title $name }}</a></li>
49
50
						{{ end }}
						</ul>
51
52
53
					</li>
				{{ end }}
				</ul>
54
55
56
			</div><!--/.nav-collapse -->
		</div>
	</nav>
key-amb's avatar
key-amb committed
57

key-amb's avatar
key-amb committed
58
<div class="container">