Fixed author meta tag
This commit is contained in:
parent
3e2f38fe9d
commit
b25e5a9608
2 changed files with 24 additions and 3 deletions
|
@ -88,12 +88,11 @@ enableRobotsTXT = true
|
||||||
# Social media. Delete any item you aren't using to make sure it won't show up
|
# Social media. Delete any item you aren't using to make sure it won't show up
|
||||||
# in your website's metadata.
|
# in your website's metadata.
|
||||||
[params.social]
|
[params.social]
|
||||||
mastodon = "miraikumiko" # Twitter handle (without '@')
|
mastodon = "miraikumiko"
|
||||||
instagram = "miraikumiko" # Facebook Page Admin ID
|
|
||||||
|
|
||||||
# Author metadata. This is mostly used for the RSS feed of your site, but the
|
# Author metadata. This is mostly used for the RSS feed of your site, but the
|
||||||
# email is also added to the footer of each post. You can hide the "reply to"
|
# email is also added to the footer of each post. You can hide the "reply to"
|
||||||
# link by using a `hideReply` param in front matter.
|
# link by using a `hideReply` param in front matter.
|
||||||
[params.author]
|
[params.author]
|
||||||
name = "Mirai Kumiko"
|
name = "Mirai Kumiko"
|
||||||
email = "murrr@macaw.me"
|
email = "miraikumiko@disroot.org"
|
||||||
|
|
22
layouts/partials/seo_tags.html
Normal file
22
layouts/partials/seo_tags.html
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<!-- 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="author" content="{{ .Site.Params.Author.name }}" />
|
||||||
|
<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 }}" />
|
||||||
|
|
||||||
|
<!-- Only generate social card if: -->
|
||||||
|
<!-- - generateSocialCard = true -->
|
||||||
|
<!-- - there aren't images set in frontmatter -->
|
||||||
|
<!-- - page is of .Kind "page" -->
|
||||||
|
{{ if and (and (default false .Site.Params.generateSocialCard) (not (isset .Params "images"))) (eq .Kind "page") }}
|
||||||
|
{{ partial "social_card.html" . }}
|
||||||
|
{{ else }}
|
||||||
|
<!-- Open Graph / Facebook -->
|
||||||
|
{{ template "_internal/opengraph.html" . }}
|
||||||
|
|
||||||
|
<!-- Twitter -->
|
||||||
|
{{ template "_internal/twitter_cards.html" . }}
|
||||||
|
|
||||||
|
<!-- Microdata -->
|
||||||
|
{{ template "_internal/schema.html" . }}
|
||||||
|
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue