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

github.com/saey55/hugo-elate-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsaey55 <saey55@users.noreply.github.com>2017-03-13 12:34:00 +0300
committerGitHub <noreply@github.com>2017-03-13 12:34:00 +0300
commitceec34254680052ed043d774acc63cb2232f979c (patch)
tree07a06dea492b97c87ac98d28e281b70e7c644b69
parentd2cc94f2a313a4e1b39f2a4b02f43093922a6dd7 (diff)
parentc0504ffa4db484614c33ac902a491344d94a004d (diff)
Merge pull request #15 from ildella/params-for-head
Params for head
-rwxr-xr-xlayouts/partials/head.html18
1 files changed, 17 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6e6d6c7..bd45b8f 100755
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -2,9 +2,13 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title> {{ .Title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="description" content="Free HTML5 Template by FREEHTML5.CO - Hugo port by Pieter Saey" />
+<!-- <meta name="description" content="Free HTML5 Template by FREEHTML5.CO - Hugo port by Pieter Saey" />
<meta name="keywords" content="free html5, free template, free bootstrap, html5, css3, mobile first, responsive, hugo, static site" />
<meta name="author" content="FREEHTML5.CO / Hugo port " />
+ -->
+ {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
+ {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
+ {{ with .Site.LanguageCode }}<meta http-equiv="content-language" content="{{ . }}" />{{ end }}
<!--
//////////////////////////////////////////////////////
@@ -28,6 +32,17 @@
-->
<!-- Facebook and Twitter integration -->
+ {{ if not .Site.Params.OpenGraph.hide }}
+ <meta name="og:site_name" content="{{ .Site.Title }}">
+ <meta name="og:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }}">
+ <meta name="og:url" content="{{ .Permalink }}">
+ <meta name="og:image" content="{{ .Site.BaseURL }}images/{{ .Site.Params.sidebar.avatar }}">
+ <meta name="twitter:title" content="{{ .Site.Title }}" />
+ <meta name="twitter:url" content="{{ .Permalink }}" />
+ <meta name="twitter:image" content="{{ .Site.BaseURL }}images/{{ .Site.Params.sidebar.avatar }}" />
+ <meta name="twitter:card" content="" />
+ {{ end }}
+<!--
<meta property="og:title" content=""/>
<meta property="og:image" content=""/>
<meta property="og:url" content=""/>
@@ -37,6 +52,7 @@
<meta name="twitter:image" content="" />
<meta name="twitter:url" content="" />
<meta name="twitter:card" content="" />
+ -->
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="shortcut icon" href="favicon.ico">