hugo-theme-stack icon indicating copy to clipboard operation
hugo-theme-stack copied to clipboard

Author not displayed on demo site

Open getvictor opened this issue 1 year ago • 1 comments

What happened?

The author is not displayed on the demo site: https://demo.stack.jimmycai.com/p/markdown-syntax-guide/

Even though the top matter has it:

+++
author = "Hugo Authors"
title = "Markdown Syntax Guide"

Hugo version

See demo site

Theme version

See demo site

What browsers are you seeing the problem on?

Chrome

More information about the browser

No response

Relevant log output

No response

Link to Minimal Reproducible Example

https://demo.stack.jimmycai.com/p/markdown-syntax-guide/

getvictor avatar Jun 02 '24 13:06 getvictor

Also, the authors need to be added to OpenGraph in opengraph/provider/base.html like:

{{ range .Param "authors" }}
<meta property='article:author' content='{{ . }}' />
{{ end -}}

getvictor avatar Jun 15 '24 16:06 getvictor

Hi, sorry for the late reply!

The author is not displayed on the demo site: https://demo.stack.jimmycai.com/p/markdown-syntax-guide/ Even though the top matter has it:

That's actually because I copied the sample site files from Hugo without modifying them 😥. This template does not have multi-author support, so I don't think we need to add support for that parameter.

Thanks again for pointing that out.

CaiJimmy avatar Oct 06 '24 17:10 CaiJimmy