diff options
author | danielkvist <d94.zaragoza@gmail.com> | 2018-12-28 15:06:55 +0300 |
---|---|---|
committer | danielkvist <d94.zaragoza@gmail.com> | 2018-12-28 15:07:40 +0300 |
commit | d3d81dbc908343b0af948209e60bc6e3dc8507c6 (patch) | |
tree | f1614f691615a6807e576434d812af882337b041 /layouts/partials | |
parent | 522b07df2a8f2cb21d7289abf349275f870c61a8 (diff) |
add Twitter Cards and Open Graph
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/head.html | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3dcc6bf..ec36849 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,21 +4,17 @@ <meta name="robots" content="index, follow"> <meta name="googlebot" content="index, follow, noarchive"> <title>{{ .Site.Title }} - {{ .Title }}</title> + <link rel="icon" href="{{ .Site.Params.favicon }}"> + <meta name="description" content="{{ .Site.Params.description }}"> {{ .Hugo.Generator }} - <!-- FIXME: --> - {{ if .Description }} - <meta name="description" content="{{ .Description }}"> - {{ end }} - {{ if .Site.GoogleAnalytics }} {{ template "_internal/google_analytics.html" . }} {{ end }} - {{ if .Site.Params.favicon.favicon }} - <link rel="icon" href="{{ .Site.Params.favicon.favicon }}"> - {{ end }} + {{ template "_internal/twitter_cards.html" . }} + {{ template "_internal/opengraph.html" . }} <!-- CSS --> {{ partial "styles.html" . }} |