head: add meta keywords

This commit is contained in:
Aditya Telange 2020-10-03 15:16:19 +05:30
parent 178b1560e1
commit 46d5200714
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
<!-- Meta --> <!-- Meta -->
{{- if in site.Params.mainSections .Type }} {{- if in site.Params.mainSections .Type }}
<meta name="description" content="{{ .Summary }}"> <meta name="description" content="{{ .Summary }}">
<meta name="keywords" content={{ delimit .Keywords ", " }} />
{{- else }} {{- else }}
<meta name="description" <meta name="description"
content="{{if .IsHome}}{{ .Site.Params.description }}{{else}}{{ .Title }} - {{ .Site.Title }}{{end}}"> content="{{if .IsHome}}{{ .Site.Params.description }}{{else}}{{ .Title }} - {{ .Site.Title }}{{end}}">
@ -28,14 +29,14 @@
{{- $footer := resources.Get "css/footer.css" | minify }} {{- $footer := resources.Get "css/footer.css" | minify }}
{{- $404 := resources.Get "css/404.css" | minify }} {{- $404 := resources.Get "css/404.css" | minify }}
{{- $style := slice $theme $reset $header $main $postentry $postsingle $terms $archive $footer $404 | resources.Concat "stylesheet.css" | minify }} {{- $style := slice $theme $reset $header $main $postentry $postsingle $terms $archive $footer $404 | resources.Concat "stylesheet.css" | minify }}
{{- $stylesheet := slice $anoldhope $style | resources.Concat "css/stylesheet.css" | minify | fingerprint }} {{- $stylesheet := slice $anoldhope $style | resources.Concat "css/stylesheet.css" | minify | fingerprint -}}
<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" <link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet"
as="style"> as="style">
{{- if (and (.Site.Params.profileMode.enabled) (.IsHome)) }} {{- if (and (.Site.Params.profileMode.enabled) (.IsHome)) }}
{{- $profileMode := resources.Get "css/profile-mode.css" | minify | fingerprint }} {{- $profileMode := resources.Get "css/profile-mode.css" | minify | fingerprint }}
<link href="{{ $profileMode.Permalink }}" integrity="{{ $profileMode.Data.Integrity }}" rel="preload stylesheet" <link href="{{ $profileMode.Permalink }}" integrity="{{ $profileMode.Data.Integrity }}" rel="preload stylesheet"
as="style"> as="style">
{{- end }} {{- end -}}
<!-- Favicons --> <!-- Favicons -->
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}"> <link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}">
<link rel="icon" href="{{ "favicon.ico" | absURL }}"> <link rel="icon" href="{{ "favicon.ico" | absURL }}">