Skip to content
Snippets Groups Projects
header.html 2.37 KiB
Newer Older
key-amb's avatar
key-amb committed
<!DOCTYPE html>
key-amb's avatar
key-amb committed
{{ $baseUrl := .Site.BaseUrl }}
{{ $isHomePage := eq .Title .Site.Title }}
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="alternate" href="/index.xml" type="application/rss+xml" title="{{ .Site.Title }}">
key-amb's avatar
key-amb committed
		<link rel="icon" href="{{ $baseUrl }}/favicon.ico">
key-amb's avatar
key-amb committed
		<title>{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title>
		<!--<link href="http://fonts.googleapis.com/css?family=PT+Sans:400,700" rel="stylesheet" type="text/css">-->
		<link rel="stylesheet" href="{{ $baseUrl }}/css/highlight.js.min.css">
key-amb's avatar
key-amb committed
		<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">

<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
				<a class="navbar-brand" href="{{ $baseUrl }}/">{{ .Site.Title }}</a>
			</div>
			<div id="navbar" class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
key-amb's avatar
key-amb committed
					<li {{ if eq $isHomePage true }}class="active"{{ end }}><a href="{{ $baseUrl }}/">Home</a></li>
			{{ if isset .Site.Params "mainMenu" }}
				{{ range $item := .Site.Params.mainMenu }}
key-amb's avatar
key-amb committed
					<li><a href="{{ $baseUrl }}/{{ $item }}">{{ title $item}}</a></li>
				{{ if isset .Site.Params "noCategoryLink" }}{{ else }}
					<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
							<li><a href="{{ $baseUrl }}/categories/{{ $name | urlize }}">{{ title $name }}</a></li>
					</li>
				{{ end }}
				</ul>
			</div><!--/.nav-collapse -->
		</div>
	</nav>
key-amb's avatar
key-amb committed