update
This commit is contained in:
20
layouts/partials/common/meta.html
Normal file
20
layouts/partials/common/meta.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<!-- keywords -->
|
||||
{{ if .IsHome }} <meta name="keywords" content="{{ delimit .Site.Params.keywords
|
||||
", " " and " }}" /> {{ else if .Keywords }}
|
||||
# <meta name="keywords" content="{{delimit .Keywords ", "}}">
|
||||
{{ end }}
|
||||
<!-- title -->
|
||||
<title>
|
||||
{{- if .IsHome -}} Home | {{ .Site.Title }} {{- else if .Page.Title -}} {{
|
||||
.Page.Title }} | {{ .Site.Title }} {{- else -}} {{ .Site.Title }} {{- end -}}
|
||||
</title>
|
||||
|
||||
<!-- description -->
|
||||
{{- if .IsHome -}}
|
||||
<meta name="description" content="{{ .Site.Params.description }}" />
|
||||
{{- else -}}
|
||||
<meta name="description" content="{{ .Params.description }}" />
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user