Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

[FEATURE] Could NOT support multi author for one post #293

@yanboyang713

Description

@yanboyang713

Currently, I found each post only supports one author's name. This is works.
For example:

---
title: "New post"
author: "Boyang Yan"
date: 2021-10-05T03:44:00+11:00
categories: ["Programming"]
draft: false
---

However, If one post has multi-author, it does NOT work.
For example:

---
title: "New post"
author: ["Boyang Yan", "test"]
date: 2021-10-05T03:44:00+11:00
categories: ["Programming"]
draft: false
---

Error msg:

Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: posts/single.html:16:12: executing "posts/single.html" at <partial "head/seo.html" .>: error calling partial: "/home/runner/work/yanboyang713.github.io/yanboyang713.github.io/themes/CodeIT/layouts/partials/head/seo.html:147:31": execute of template failed: template: partials/head/seo.html:147:31: executing "partials/head/seo.html" at <safeHTML>: error calling safeHTML: unable to cast []string{"Boyang Yan", "test"} of type []string to string

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions