I’m having trouble inserting the author meta tag in front matter, and when I do, it understands it as if I were the author of the article.
example of how it should look:
meta name=“author” content=“site” /
I’m having trouble inserting the author meta tag in front matter, and when I do, it understands it as if I were the author of the article.
example of how it should look:
meta name=“author” content=“site” /
seems somthing missing in you post…
for an example frontmatter see: params example
maybe it’s what you are looking for
Thanks for alert…
The example tag missing.
you can wrap your code in backticks, code blocks ```html…``` or use the </> button to get full html.
for a simple author:
front matter (toml):
+++
title = 'Home'
date = 2023-01-01T08:00:00-07:00
draft = false
[params]
author = "frontmatter_author"
+++
supposedly in your baseof
or head
partial (where you generate your <head>
tag
something like:
{{ with .Param "author" -}}
<meta name="author" content="{{- . -}}" />
{{- end }}
will produce:
<meta name="author" content="frontmatter_author" />
or do you have more complex use case and want to go the taxonomy way?