added general meta tags for seo; added some article params to readme
This commit is contained in:
parent
d44a15e66f
commit
bff5aa0b1e
4 changed files with 40 additions and 6 deletions
|
|
@ -9,18 +9,27 @@
|
|||
<meta
|
||||
property="article:published_time"
|
||||
content='{{ .Date.Format "2006-01-02T15:04:05Z-0700" }}' />
|
||||
{{ range .Params.tags }}
|
||||
<meta property="article:tag" content="{{ . }}" />
|
||||
{{ if .Params.tags }}
|
||||
{{ range .Params.tags }}
|
||||
<meta property="article:tag" content="{{ . }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:image"
|
||||
content='{{ if .Params.Image }}{{ .Params.Image | absURL }}
|
||||
{{ else }}{{ .Site.Params.Logo | default "/img/icon.svg" | absURL }}
|
||||
{{ end }}' />
|
||||
<meta property="og:description" content="{{ .Summary }}" />
|
||||
{{ if .Params.description }}
|
||||
<meta property="og:description" content="{{ .Params.description }}" />
|
||||
{{ else }}
|
||||
<meta property="og:description" content="{{ substr .Summary 20 }}" />
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<meta property="og:title"
|
||||
content='{{ .Site.Title | default "Ficurinia" }}' />
|
||||
{{ if .Site.Params.description }}
|
||||
<meta name="og:description" content="{{ .Site.Params.description }}" />
|
||||
{{ end }}
|
||||
<meta property="og:type" content="blog" />
|
||||
<meta property="og:image"
|
||||
content='{{ .Site.Params.Logo | default "/img/icon.svg" | absURL }}' />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue