[#25] Added social media meta-data

lektura
Marc Horne 2017-05-21 21:36:05 +02:00
parent f96446d7c2
commit 2de838b458
2 changed files with 19 additions and 0 deletions

View File

@ -9,6 +9,9 @@ DefaultContentLanguage = "en"
languageCode = "en-us" languageCode = "en-us"
languageName = "English" languageName = "English"
favicon = "favicon.ico" favicon = "favicon.ico"
url = "http://pmpc.mehl.mx/"
image_url = "http://pmpc.mehl.mx/img/header.jpg"
fb_admin = "mehl.max"
# Navigation # Navigation

View File

@ -10,6 +10,22 @@
{{ range .Translations }} {{ range .Translations }}
<link type="text/html" rel="alternate" hreflang="{{ .Lang }}" lang="{{ .Lang }}" href="{{ .RelPermalink }}" title="{{ .Site.Params.languageName }}"> <link type="text/html" rel="alternate" hreflang="{{ .Lang }}" lang="{{ .Lang }}" href="{{ .RelPermalink }}" title="{{ .Site.Params.languageName }}">
{{end}} {{end}}
{{ "<!-- Facebook meta-data -->" | safeHTML }}
<meta property="og:title" content="{{ .Site.Title }}"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="{{ .Site.Params.image_url }}"/>
<meta property="og:url" content="{{ .Site.Params.url }}"/>
<meta property="og:description" content="{{ .Site.Params.description }}"/>
<meta property="fb:admins" content="{{ .Site.Params.fb_admin }}"/>
{{ "<!-- Twitter meta-data -->" | safeHTML }}
<meta name="twitter:card" content="summary">
<meta name="twitter:url" content="{{ .Site.Params.url }}">
<meta name="twitter:title" content="{{ .Site.Title }}">
<meta name="twitter:description" content="{{ .Site.Params.description }}">
<meta name="twitter:image" content="{{ .Site.Params.image_url }}">
{{ "<!-- Favicon -->" | safeHTML }} {{ "<!-- Favicon -->" | safeHTML }}
<link rel="shortcut icon" href="{{ .Site.Params.favicon | absURL }}"> <link rel="shortcut icon" href="{{ .Site.Params.favicon | absURL }}">
{{ "<!-- Bootstrap Core CSS -->" | safeHTML }} {{ "<!-- Bootstrap Core CSS -->" | safeHTML }}