diff options
-rwxr-xr-x | layouts/partials/head.html | 18 |
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">
|