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

46 lines
2.9 KiB
HTML
Raw Normal View History

2018-01-24 09:42:50 +00:00
<link href="http://gmpg.org/xfn/11" rel="profile">
2018-02-03 08:35:10 +00:00
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{{ "<!-- Enable responsiveness on mobile devices -->" | safeHTML }}
2018-02-03 08:35:10 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
{{ with .Site.Params.meta.description -}}<meta name="description" content="{{ . }}">{{- end }}
{{ with .Site.Params.meta.keywords -}}<meta name="keywords" content="{{.}}">{{- end }}
2018-02-03 08:35:10 +00:00
{{ .Hugo.Generator }}
{{ if .IsHome -}}
2018-01-24 09:42:50 +00:00
<title>{{ .Site.Title }}</title>
2018-02-03 08:35:10 +00:00
{{- else }}
2018-01-24 09:42:50 +00:00
<title>{{ .Title }} &middot; {{ .Site.Title }}</title>
2018-02-03 08:35:10 +00:00
{{- end }}
<meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}" property="og:title">
<meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Site.Params.meta.description }}{{ if eq $isHomePage false }} - {{ .Description }}{{ end }}" property="og:description">
{{ "<!-- CSS -->" | safeHTML }}
2018-04-04 12:04:36 +00:00
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i|Roboto+Mono:300,300i,400,400i" rel="stylesheet">
2018-02-03 08:35:10 +00:00
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
{{ "<!-- Font-Awesome -->" | safeHTML }}
2018-03-29 23:49:07 +00:00
<script defer src="https://use.fontawesome.com/releases/v5.0.9/js/all.js" integrity="sha384-8iPTk2s/jMVj81dnzb/iFR2sdA7u06vHJyyLlAd4snFpCl/SnyUjRrbdJsw1pGIl" crossorigin="anonymous"></script>
2018-02-03 08:35:10 +00:00
{{ if .Site.Params.highlightjs -}}
{{ "<!-- highlight.js-->" | safeHTML }}
2018-02-03 08:35:10 +00:00
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.highlightjsstyle | default "default" }}.min.css">
{{- end }}
{{ if .Site.Params.PygmentsUseClasses -}}
{{ "<!-- Pygments Syntax -->" | safeHTML }}
2018-02-03 08:35:10 +00:00
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax.css">
{{- end }}
{{- "<!-- Customised CSS -->" | safeHTML }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/custom.css">
{{ `<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->` | safeHTML }}
{{ "<!-- Icons -->" | safeHTML }}
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="/favicon.png">
{{ if .RSSLink -}}
{{ "<!-- RSS -->" | safeHTML }}
2018-02-03 08:35:10 +00:00
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
2018-02-21 23:37:37 +00:00
{{- end }}