HUGO

How do I setup the "authors" key in the config file for "twitter:creator" and "article:author" meta tags?

I am currently using PaperMod theme and checked the template files.

The tags are enclosed this way:

{{ range .Site.Authors }} {{ with .twitter -}} <meta name="twitter:creator" content="@{{ . }}"/> {{ end -}} {{ end -}}

How should I setup the “authors” key in the config file (yml)? I couldn’t figure it out.

I tried:

authors:
    Me:
       twitter: twitter handle

.Site.Authors does not exist.

You will need to override the templates with your own, perhaps using one of these suggestions:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.