diff options
author | Daniele Dellafiore <ildella@gmail.com> | 2017-03-09 12:41:08 +0300 |
---|---|---|
committer | Daniele Dellafiore <ildella@gmail.com> | 2017-03-09 12:41:08 +0300 |
commit | c0504ffa4db484614c33ac902a491344d94a004d (patch) | |
tree | 2c5a4135e9374da7b30ec20ebdba71b948783611 | |
parent | c48632088016b85fad1f554f243622f18c423e30 (diff) |
twitter and facebook metatag made loads params from config file
-rwxr-xr-x | layouts/partials/head.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b692391..bd45b8f 100755 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -32,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=""/>
@@ -41,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">
|