mirror of
https://codeberg.org/NoGitHub/nogithub.codeberg.page.git
synced 2024-12-21 22:52:58 -05:00
upload layouts
This commit is contained in:
parent
19efa9a9a2
commit
8a0345ab62
2 changed files with 15 additions and 0 deletions
2
layouts/partials/favicon.html
Normal file
2
layouts/partials/favicon.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{ with .Site.Params.favicon }}
|
||||
<link rel="shortcut icon" href="{{ . | absURL }}">{{ end }}
|
13
layouts/partials/seo_tags.html
Normal file
13
layouts/partials/seo_tags.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!-- Primary Meta Tags -->
|
||||
<meta name="title" content="{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}">
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
||||
<meta name="keywords" content="{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}">
|
||||
|
||||
<!-- Open Graph / Facebook -->
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
|
||||
<!-- Twitter -->
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
|
||||
<!-- Microdata -->
|
||||
{{ template "_internal/schema.html" . }}
|
Loading…
Reference in a new issue