Skip to content

Author names are missing in the HTML using scholarly-metadata and author-info-blocks #282

@zhengchencai

Description

@zhengchencai

Hi there,

I used scholarly-metadata.lua and author-info-blocks.lua to render a HTML, but the author names are missing. And "Authors" and "Affiliations" are empty, how can I fix this? Thanks a lot

---
title: "Testing Lua filters with Qmd"
author:
  - Jane Doe:
      institute:
        - federation
      equal_contributor: "yes"
      correspondence: "yes"
      email: [email protected]
  - John Q. Doe:
      institute: [federation, acme]
      equal_contributor: "yes"
  - Juan Pérez:
      institute: acme
institute:
  - federation: Federation of Planets
  - acme:
      name: Acme Corporation

format: html
filters: 
  - scholarly-metadata.lua
  - author-info-blocks.lua
---

image

If I add name in the author,

---
title: "Testing Lua filters with Qmd"
author:
  - name: Jane Doe
    institute:
      - federation
    equal_contributor: "yes"
    correspondence: "yes"
    email: [email protected]
  - name: John Q. Doe
    institute: [federation, acme]
    equal_contributor: "yes"
  - name: Juan Pérez
    institute: acme
institute:
  - federation: Federation of Planets
  - acme:
      name: Acme Corporation

format: html
filters: 
  - scholarly-metadata.lua
  - author-info-blocks.lua
---

It became the following,

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions