header.html 2.22 KB
Newer Older
key-amb's avatar
key-amb committed
1
<!DOCTYPE html>
key-amb's avatar
key-amb committed
2
3
{{ $baseUrl := .Site.BaseUrl }}
{{ $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
9
		<link rel="alternate" href="/index.xml" type="application/rss+xml" title="{{ .Site.Title }}">
		<link rel="icon" href="http://getbootstrap.com/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">-->
key-amb's avatar
key-amb committed
12
13
14
15
		<link rel="stylesheet" href="{{ $baseUrl }}/css/bootstrap.min.css">
		<link rel="stylesheet" href="{{ $baseUrl }}/css/bootstrap-theme.css">
		<link rel="stylesheet" href="{{ $baseUrl }}/css/theme.css">
		<link rel="stylesheet" href="{{ $baseUrl }}/css/bootie-docs.css">
16
	</head>
17
18
19
20
21
22
23
24
25
26
27
28
29

<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
30
				<a class="navbar-brand" href="{{ $baseUrl }}/">{{ .Site.Title }}</a>
31
32
33
			</div>
			<div id="navbar" class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
34
					<li {{ if eq $isHomePage true }}class="active"{{ end }}><a href="/">Home</a></li>
35
36
			{{ if isset .Site.Params "mainMenu" }}
				{{ range $item := .Site.Params.mainMenu }}
key-amb's avatar
key-amb committed
37
					<li><a href="{{ $baseUrl }}/{{ $item }}">{{ title $item}}</a></li>
38
39
				{{ end }}
			{{ end }}
40
41
42
43
				<li class="dropdown">
						<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
44
							<li><a href="{{ $baseUrl }}/categories/{{ $name | urlize }}">{{ title $name }}</a></li>
45
46
47
						{{ end }}
						</ul>
					</li>				</ul>
48
49
50
			</div><!--/.nav-collapse -->
		</div>
	</nav>
key-amb's avatar
key-amb committed
51

52
<div class="container">