fix: rework site header for better title and decription handling (#98)
This commit is contained in:
parent
d51f514b90
commit
5eff47c68b
7 changed files with 27 additions and 9 deletions
12
layouts/partials/head/meta.html
Normal file
12
layouts/partials/head/meta.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
{{ $description := default (default .Site.Title .Site.Params.description) (default .Summary .Description) }}
|
||||
{{ $keywords := default .Site.Params.Keywords .Keywords }}
|
||||
|
||||
{{ with $description }}
|
||||
<meta name="description" content="{{ . }}">
|
||||
{{ end }}
|
||||
{{ with $keywords }}
|
||||
<meta name="keywords" content="{{ delimit . "," }}">
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue