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

github.com/varkai/hugo-theme-zozo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html89
1 files changed, 45 insertions, 44 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 4809433..c56c2c9 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,47 +1,48 @@
<!DOCTYPE html>
<html {{ with .Site.LanguageCode }}lang="{{ . }}" {{ end }}>
<head>
- <meta charset="utf-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
-
- <!-- author & description & keywords -->
- <meta name="author"
- content="{{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}"/>
-
- {{ if .Description }}
- <meta name="description" content="{{ .Description | safeHTML }}"/>
- {{ else if .IsPage }}
- <meta name="description" content="{{ .Summary | plainify }}"/>
- {{ else if .Site.Params.description }}
- <meta name="description" content="{{ .Site.Params.description | safeHTML }}"/>
- {{ end }}
-
- {{ if .Keywords }}
- {{ $length := len .Keywords | add -1 }}
- <meta name="keywords" content="{{ range $index, $element := .Keywords }}{{ $element | safeHTML }}{{ if ne $index $length }}, {{ end }}{{ end }}"/>
- {{ else if .Site.Params.keywords }}
- {{ $length := len .Site.Params.keywords | add -1 }}
- <meta name="keywords" content="{{ range $index, $element := .Site.Params.keywords }}{{ $element | safeHTML }}{{ if ne $index $length }}, {{ end }}{{ end }}"/>
- {{ end }}
-
- <!-- Permalink & RSSlink -->
- <link rel="canonical" href="{{ .Permalink }}"/>
-
- {{ range .AlternativeOutputFormats }}
- <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
- {{ end }}
-
- <title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title>
-
- <link rel="shortcut icon" href="{{ "images/favicon.ico" | absURL }}"/>
- <link rel="stylesheet" href="{{ "css/animate.min.css" | absURL }}"/>
- <link rel="stylesheet" href="{{ "css/remixicon.css" | absURL }}"/>
- <link rel="stylesheet" href="{{ "css/zozo.css" |absURL }}"/>
- <link rel="stylesheet" href="{{ "css/highlight.css" | absURL }}"/>
-
- <!-- custom css -->
- {{ range .Site.Params.customCSS }}
- <link rel="stylesheet" href="{{ "css/" | absURL }}{{ . }}">
- {{ end }}
-</head>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="author" content="{{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}" />
+ {{ $title := ( .Title ) }}
+ {{ $siteTitle := ( .Site.Title ) }}
+ {{ if .IsHome }}
+ <title>{{ $siteTitle }} {{ if isset .Site.Params "subtitle" }}| {{ .Site.Params.Subtitle }}{{ end }} </title>
+ {{ else }}
+ <title>{{ $title }} | {{ $siteTitle }}</title>
+ {{ end }}
+ <!-- description & keywords -->
+ {{ if .Description }}
+ <meta name="description" content="{{ .Description | safeHTML }}" />
+ {{ else if .IsPage }}
+ <meta name="description" content="{{ .Summary | plainify }}" />
+ {{ else if .Site.Params.description }}
+ <meta name="description" content="{{ .Site.Params.description | safeHTML }}" />
+ {{ end }}
+
+ {{ if .Keywords }}
+ {{ $length := len .Keywords | add -1 }}
+ <meta name="keywords" content="{{ range $index, $element := .Keywords }}{{ $element | safeHTML }}{{ if ne $index $length }}, {{ end }}{{ end }}" />
+ {{ else if .Site.Params.keywords }}
+ {{ $length := len .Site.Params.keywords | add -1 }}
+ <meta name="keywords" content="{{ range $index, $element := .Site.Params.keywords }}{{ $element | safeHTML }}{{ if ne $index $length }}, {{ 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 }}
+
+ <link rel="shortcut icon" href="{{ "images/favicon.ico" | absURL }}" />
+
+ <link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/normalize.css" />
+ <link rel="stylesheet" type="text/css" media="screen" href="https://cdn.jsdelivr.net/npm/animate.css@4.1.0/animate.min.css" />
+ <link rel="stylesheet" type="text/css" media="screen" href="{{ "css/zozo.css" |absURL }}" />
+ <link rel="stylesheet" type="text/css" media="screen" href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" />
+ <link rel="stylesheet" type="text/css" media="screen" href="{{ "css/highlight.css" | absURL }}" />
+
+ <!-- custom css -->
+ {{ range .Site.Params.customCSS }}
+ <link rel="stylesheet" href="{{ "css/" | absURL }}{{ . }}" />
+ {{ end }}
+</head> \ No newline at end of file