playing with opengraph+twitter+metadata header...
This commit is contained in:
parent
7aabfbd0c2
commit
7635428c85
2 changed files with 14 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
|
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
|
||||||
<head>
|
<head>
|
||||||
{{- partialCached "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
<title>{{- .Title }} - {{ .Site.Title -}}</title>
|
<title>{{- .Title }} - {{ .Site.Title -}}</title>
|
||||||
{{- partialCached "sandpointjs.html" . .RelPermalink -}}
|
{{- partialCached "sandpointjs.html" . .RelPermalink -}}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -11,10 +11,21 @@
|
||||||
<meta name="keywords" content="{{ delimit .Keywords "," }}" />
|
<meta name="keywords" content="{{ delimit .Keywords "," }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Params.Author }}
|
{{ if .Params.editors }}
|
||||||
<meta name="author" content="{{ .Params.Author }}" />
|
{{ range .Params.editors }}
|
||||||
|
{{ $e := $.GetPage (printf "editor/%s" .) }}
|
||||||
|
<meta name="editor" content="{{ $e.Title }}" />
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Params.authors }}
|
||||||
|
{{ range .Params.authors }}
|
||||||
|
{{ $e := $.GetPage (printf "author/%s" .) }}
|
||||||
|
<meta name="author" content="{{ $e.Title }}" />
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ template "_internal/opengraph.html" . }}
|
{{ template "_internal/opengraph.html" . }}
|
||||||
{{ template "_internal/twitter_cards.html" . }}
|
{{ template "_internal/twitter_cards.html" . }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue