hugo-theme-relearn/layouts/partials/header.html

77 lines
3.4 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en" class="js csstransforms3d">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
{{ .Hugo.Generator }}
{{ partial "meta.html" . }}
{{ partial "favicon.html" . }}
{{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
<title>{{ .Scratch.Get "title" }}</title>
<link href="/css/nucleus.css" rel="stylesheet">
<link href="/css/font-awesome.min.css" rel="stylesheet">
<link href="/css/hybrid.css" rel="stylesheet">
<link href="/css/featherlight.min.css" rel="stylesheet">
<link href="/css/perfect-scrollbar.min.css" rel="stylesheet">
2016-07-06 08:15:55 +00:00
<link href="/css/horsey.css" rel="stylesheet">
<link href="/css/theme.css" rel="stylesheet">
<link href="/css/hugo-theme.css" rel="stylesheet">
2016-07-06 08:15:55 +00:00
<script src="/js/jquery-2.x.min.js"></script>
<style type="text/css">:root #header + #content > #left > #rlblock_left
{display:none !important;}</style>
{{ partial "style.html" . }}
</head>
2016-05-23 20:18:57 +00:00
<body class="" data-url="{{ .RelPermalink }}">
{{ partial "menu.html" . }}
<section id="body">
<div id="overlay"></div>
<div class="padding highlightable">
2016-03-17 20:05:42 +00:00
<div id="top-bar">
2016-03-17 13:10:43 +00:00
{{ if and .IsPage .Site.Params.editURL }}
{{ $File := .File }}
{{ $Site := .Site }}
{{with $File.Path }}
<div id="top-github-link">
2016-03-17 13:10:43 +00:00
<a class="github-link" href="{{ $Site.Params.editURL }}{{ $File.Dir }}{{ $File.LogicalName }}" target="blank">
<i class="fa fa-code-fork"></i>
Edit this page
</a>
</div>
2016-03-17 13:10:43 +00:00
{{ end }}
{{ end }}
<div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
<span id="sidebar-toggle-span">
<a href="#" id="sidebar-toggle" data-sidebar-toggle="">
<i class="fa fa-bars"></i>
</a>
</span>
2016-03-17 20:05:42 +00:00
{{ if and (not .Params.chapter) (.Params.toc) }}
<span id="toc-menu"><a href=""><i class="fa fa-list-alt"></i></a></span>
2016-03-17 20:05:42 +00:00
{{ end }}
{{ $type := .Type }}
{{ $relLink := .RelPermalink }}
{{ range $name , $value := .Site.Sections }}
{{ if eq $name $type }}
{{ $first := (index $value 0).Page }}
{{ if ne $first.RelPermalink $relLink }}
<a href="{{ $first.RelPermalink }}" itemprop="url"><span itemprop="title">{{ $first.Title }}</span></a> <i class="fa fa-angle-right"></i>
2016-03-17 13:10:43 +00:00
{{ end }}
{{ end }}
{{ end }}
2016-03-17 13:10:43 +00:00
{{ with .Title }}<span itemprop="title"> {{ . }}</span>{{ end }}
</div>
2016-03-17 20:05:42 +00:00
{{ if .Params.toc }}
{{ partial "toc.html" . }}
{{ end }}
2016-03-17 13:10:43 +00:00
</div>
{{ if .Params.chapter }}
<div id="chapter">
{{ end }}
<div id="body-inner">
{{ if not .Params.chapter }}
<h1>{{.Title}}</h1>
{{ end }}