Welcome to mirror list, hosted at ThFree Co, Russian Federation.

header.html « partials « layouts - github.com/funkydan2/alpha-church.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 883bbeb1203a19fbb4898ffb61f2789b4ef80338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE HTML>
{{ with .Site.Params.languageCode }}<html lang="{{ . }}">{{ end }}
	<head>
		<title>{{ if .Title }}{{ .Title }} | {{ end }} {{ .Site.Params.title }}</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		{{ with .Site.Params.subtitle }}<meta name="description" content="{{ . }}">{{ end }}
		{{ with .Site.Params.name }}<meta name="author" content="{{ . }}">{{ end }}
		<meta name="keywords" content="
			{{- if .IsHome -}}
				{{- if .Site.Params.keywords -}}
		    	{{- range $i, $e := .Site.Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end -}}
					{{ end -}}
			{{ end -}}
			{{ if .IsPage }}
				{{- if .Params.tags -}}
		    	{{- range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
				{{- end -}}
			{{ end -}}" />
		{{- with .OutputFormats.Get "rss" -}}
    	{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
		{{- end -}}
		{{ hugo.Generator }}
		{{- with .Site.Params.Favicon.sml}}<link rel="shortcut icon" href="{{ . }}" sizes="16x16"/>{{ end -}}
		{{- with .Site.Params.Favicon.med}}<link rel="shortcut icon" href="{{ . }}" sizes="32x32"/>{{ end -}}
		{{- with .Site.Params.Favicon.lge}}<link rel="shortcut icon" href="{{ . }}" sizes="96x96"/>{{ end -}}
		{{ with .Site.Params.Podcast.itunes }}
			<meta name="apple-itunes-app" content="app-id={{ replaceRE "https\\:\\/\\/itunes\\.apple\\.com\\/[a-z]{2}\\/podcast\\/[a-z\\-]*\\/id(\\d{10}).*" "$1" . }}" />
		{{ end }}
		{{ template "_internal/opengraph.html" . }}
		{{ template "_internal/twitter_cards.html" . }}
		<link rel="stylesheet" href="{{ "fontawesome/css/all.min.css" | absURL }}" />
		{{- $css := .Site.Data.libs.css -}}
		{{ if .IsPage }}{{ printf "<link rel=\"stylesheet\" href=\"//cdn.plyr.io/%s/plyr.css\" integrity=\"%s\" crossorigin=\"anonymous\">" $css.plyr.version $css.plyr.integrity | safeHTML }}{{ end }}
		{{- $ieStyles := resources.Get "scss/ie8.scss" | toCSS | minify -}}
		{{- $ieJs := resources.Get "js/ie/html5shiv.js" | minify -}}
		{{ printf "<!--[if lte IE 8]><script src=\"%s\"></script><link rel=\"stylesheet\" href=\"%s\" /><![endif]-->" $ieJs.RelPermalink $ieStyles.RelPermalink | safeHTML }}
		{{ $style := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "style.main.scss" . | toCSS | minify | fingerprint }}
		<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" media="screen" crossorigin="anonymous" />
		{{- range .Site.Params.customCSS -}}
    	<link rel="stylesheet" href="{{ . | absURL }}">
  	{{- end -}}
	</head>