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

github.com/surajmandalcell/potato-dark.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.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..6fc67ac
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,51 @@
+<head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
+ {{ with .Title | default .Site.Title }}
+ <title>{{ . }}</title>
+ <meta property="og:title" content="{{ . }}" />
+ <meta name="twitter:title" content="{{ . }}" />
+ {{ end }}
+
+ {{ with .Description | default .Site.Params.subtitle }}
+ <meta name="description" content="{{ . }}">
+ <meta property="og:description" content="{{ . }}">
+ <meta name="twitter:description" content="{{ . | truncate 200 }}">
+ {{ end }}
+
+ <meta name="author" content="{{ .Site.Params.author }}"/>
+ <meta property="og:site_name" content="{{ .Site.Title }}" />
+ <meta property="og:url" content="{{ .Permalink }}" />
+
+ {{ with .Params.thumbnail }}
+ <meta property="og:image" content="{{ . | absURL }}" />
+ <meta name="twitter:image" content="{{ . | absURL }}" />
+ {{ end }}
+ <meta name="twitter:card" content="summary" />
+
+ {{ with .Site.Params.twitter }}
+ <meta name="twitter:site" content="@{{ . }}" />
+ <meta name="twitter:creator" content="@{{ . }}" />
+ {{ end }}
+
+ {{ if .IsPage }}
+ <meta property="og:type" content="article" />
+ {{ with .Site.Params.facebook }}
+ <meta property="og:article:author" content="https://facebook.com/{{ . }}" />
+ {{ end }}
+ {{ else }}
+ <meta property="og:type" content="website" />
+ {{ end }}
+ <!-- Hugo Version number -->
+ {{ .Hugo.Generator -}}
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600" rel="stylesheet">
+ <link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css" />
+ {{- with .Site.Params.favicon }}
+ <link rel='icon' type='image/x-icon' href="{{ . | absURL }}" />
+ {{- end -}}
+ {{ if eq .URL "/" }}
+ <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+ {{ end }}
+ <script type="text/javascript" src="{{ .Site.BaseURL }}js/bundle.js"></script>
+ {{ partial "head_custom.html" . }}
+</head>