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 }}">
|
||||
<head>
|
||||
{{- partialCached "head.html" . -}}
|
||||
{{- partial "head.html" . -}}
|
||||
<title>{{- .Title }} - {{ .Site.Title -}}</title>
|
||||
{{- partialCached "sandpointjs.html" . .RelPermalink -}}
|
||||
</head>
|
||||
|
|
|
@ -11,10 +11,21 @@
|
|||
<meta name="keywords" content="{{ delimit .Keywords "," }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.Author }}
|
||||
<meta name="author" content="{{ .Params.Author }}" />
|
||||
{{ if .Params.editors }}
|
||||
{{ range .Params.editors }}
|
||||
{{ $e := $.GetPage (printf "editor/%s" .) }}
|
||||
<meta name="editor" content="{{ $e.Title }}" />
|
||||
{{ 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/twitter_cards.html" . }}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue