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
15
layouts/partials/head_meta_seo.html
Normal file
15
layouts/partials/head_meta_seo.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<meta name="author" content="{{ .Site.Params.Author }}" />
|
||||
{{ if .IsPage }}
|
||||
{{ if .Params.tags }}
|
||||
<meta name="keywords" content='{{ delimit .Params.tags ", "}}' />
|
||||
{{ end }}
|
||||
{{ if .Params.description }}
|
||||
<meta name="description" content="{{ .Params.description }}" />
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ substr .Summary 20 }}" />
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ if .Site.Params.description }}
|
||||
<meta name="description" content="{{ .Site.Params.description }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue