CaiJimmy / hugo-theme-stack

Card-style Hugo theme designed for bloggers
https://stack.jimmycai.com
GNU General Public License v3.0
4.96k stars 1.63k forks source link

Author not displayed on demo site #1028

Closed getvictor closed 3 weeks ago

getvictor commented 5 months ago

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 commented 4 months ago

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

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

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.