add/change some fields, add a separate meta section for share meta data

lektura
max.mehl 2017-05-22 14:53:15 +02:00
parent 2de838b458
commit b625d5416e
2 changed files with 14 additions and 9 deletions

View File

@ -9,10 +9,12 @@ DefaultContentLanguage = "en"
languageCode = "en-us"
languageName = "English"
favicon = "favicon.ico"
url = "http://pmpc.mehl.mx/"
image_url = "http://pmpc.mehl.mx/img/header.jpg"
fb_admin = "mehl.max"
url = "http://pmpc.mehl.mx"
[params.sharemeta]
previewImage = "img/header.jpg"
fbPageID = "336939393138306"
twitterUser = "@fsfe"
# Navigation
[params.navigation]

View File

@ -13,18 +13,21 @@
{{ "<!-- 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:image" content="{{ .Site.Params.url }}/{{ .Site.Params.Sharemeta.previewImage }}"/>
<meta property="og:description" content="{{ .Site.Params.description }}"/>
<meta property="fb:admins" content="{{ .Site.Params.fb_admin }}"/>
<meta property="og:type" content="website"/>
<meta property="og:locale" content="{{ .Lang }}"/>
<meta property="fb:page_id" content="{{ .Site.Params.Sharemeta.fbPageID }}"/>
{{ "<!-- 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:url" content="{{ .Site.Params.url }}">
<meta name="twitter:image" content="{{ .Site.Params.url }}/{{ .Site.Params.Sharemeta.previewImage }}">
<meta name="twitter:description" content="{{ .Site.Params.description }}">
<meta name="twitter:image" content="{{ .Site.Params.image_url }}">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="{{ .Site.Params.Sharemeta.twitterUser }}">
<meta name="twitter:creator" content="{{ .Site.Params.Sharemeta.twitterUser }}">
{{ "<!-- Favicon -->" | safeHTML }}
<link rel="shortcut icon" href="{{ .Site.Params.favicon | absURL }}">