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

header.html « partials « layouts - github.com/pravin/hugo-theme-prav.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7a6054f988e92ab48fae50dd9f2f363a279f672d (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<head>
    <meta charset="utf-8">
    <meta name="theme-color" content="#000" />
    <title>
        {{- if .IsHome -}}
        {{ if .Site.Title -}}
        {{ .Site.Title -}}
        {{ else -}}
        {{ .Site.Params.Title -}}
        {{ end -}}
        &middot; {{ .Site.Params.Tagline -}}
        {{ else -}}
        {{ .Title }} &middot; {{ .Site.Title }} {{ .Site.Params.Title -}}
        {{- end -}}
    </title>

    <!-- Stylesheets -->
    <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css"
        integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/grids-responsive-old-ie-min.css">
    <![endif]-->
    <!--[if gt IE 8]><!-->
    <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/grids-responsive-min.css">
    <!--<![endif]-->
    <link rel="stylesheet" href="/css/style.css">
    <link
        href="https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:wght@300&family=Bitter:ital,wght@0,400;0,700;1,400&display=swap"
        rel="stylesheet">
    <link rel="icon" href="/img/favicon.ico" type="image/x-icon">

    <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/atom.xml" />

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    {{ hugo.Generator }}"

    {{- if .Params.tags }}
    <meta name=" keywords" content="{{ delimit .Params.tags "," }}">
    {{- end }}

    {{ $descText := "" -}}
    {{ if .Description -}}
    {{$descText = .Description -}}
    {{ else -}}
    {{$descText = .Site.Params.Tagline -}}
    {{ end -}}

    {{ $imageLink := "" -}}
    {{ if .Params.previewimage -}}
    {{$imageLink = .Params.previewimage -}}
    {{ else -}}
    {{$imageLink = .Site.Params.authorImgPath -}}
    {{ end -}}

    {{ "<!-- OpenGraph/Twitter Specific Stuff-->" | safeHTML }}
    <meta name="twitter:card" content="summary_large_image">
    <meta property=”og:type” content=”blog”>
    <meta name="description" property="og:description" content="{{ $descText }}">
    <meta property="og:image" content="{{.Site.BaseURL}}{{ $imageLink }}">
    <meta name="author" content="{{ .Site.Params.Author }}">

    {{ if not .IsHome -}}
    <meta property="og:title" content="{{ .Title }}">
    {{ end -}}

    {{- if .Site.Social.twitteruser -}}
    <meta name="twitter:creator" content="{{ .Site.Social.twitteruser }}">
    {{ end }}

    {{ "<!-- Any custom header goes here-->" | safeHTML }}
    {{ partial "custom_header.html" . }}

    {{ template "_internal/google_analytics.html" . }}
</head>