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

head.html « partials « layouts - github.com/pjbakker/flexible-seo-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c4f5b8c1326d8e9cfbbaa3de282fe6279d85aa42 (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
{{- if eq .Kind "home" -}}
  {{- $.Scratch.Set "Description" ( .Site.Params.description | default "The main page" ) -}}
  {{- $.Scratch.Set "Title" .Site.Title -}}
{{- else -}}
  {{- $.Scratch.Set "Description" ( .Description | default .Params.subtitle | default .Summary | default .Kind ) -}}
  {{- $.Scratch.Set "Title" ( .Title | default .Site.Title ) -}}
{{- end }}

    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

<!-- Site Title, Description, Author, and Favicon -->
{{- with ($.Scratch.Get "Title") }}
    <title>{{ print . }} - {{ $.Site.Title }}</title>
{{- end -}}
{{- with ($.Scratch.Get "Description") }}
    <meta name="description" content="{{ . }}">
{{- end -}}
{{- with .Site.Author.name }}
    <meta name="author" content="{{ . }}"/>
{{- end -}}
{{- with .Site.Params.favicon }}
    <link href='{{ . | absURL }}' rel='icon' type='image/x-icon'/>
{{- end -}}

<!-- SEO -->
{{- partial "seo/main.html" . -}}
{{- $showBreadcrumbs := $.Params.showBreadcrumbs | default $.Site.Params.showBreadcrumbs | default true }}
{{ if and ( eq $showBreadcrumbs true ) ( eq .IsHome false ) -}}
  {{ partial "breadcrumbs.html" ( dict "ctx" . "output_type" "structured" ) }}
{{- end }}

<!-- Social Media Tags -->
{{- partial "social/main.html" . -}}

<!-- Links and stylesheets -->
    <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

{{- partial "head_custom.html" . -}}
{{ template "_internal/google_analytics_async.html" . -}}