add baseof.html example file
This commit is contained in:
parent
1d8e5e46e9
commit
9602c080cb
28
search_engine_optimization/layouts/_default/baseof.html
Normal file
28
search_engine_optimization/layouts/_default/baseof.html
Normal file
@ -0,0 +1,28 @@
|
||||
<!-- Site Indexing toggled by key value of `private` in Page/Post Settings -->
|
||||
<meta name="robots" content=
|
||||
{{- if or (.Params.private) (in (string .Permalink) "404.html") (in (string .Permalink) "404.php") -}}
|
||||
"noindex, nofollow"
|
||||
{{- else -}}
|
||||
"index, follow"
|
||||
{{ end }} />
|
||||
|
||||
<!-- Meta Keywords/Tags for Users to search for in Search Engines -->
|
||||
<meta name="keywords" content="
|
||||
{{- with .Params.tags }}
|
||||
{{- range . -}}
|
||||
{{ with $.Site.GetPage (printf "/%s/%s" "tags" . ) }}
|
||||
{{- .Title -}},
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- else -}}
|
||||
Tutorials, Tips, Linux, Bash, Docker
|
||||
{{- end }}" />
|
||||
|
||||
<!-- Canonical URLs -->
|
||||
<link rel="canonical" href="{{ .Permalink }}" />
|
||||
<link rel="alternate" href="{{ .Permalink }}" hreflang="{{ .Site.LanguageCode }}" />
|
||||
|
||||
<!-- Links to RSS Feed -->
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
Loading…
x
Reference in New Issue
Block a user