Skip to content

Shared metadata for posts is not shown on listing page #1125

@mccarthy-m-g

Description

@mccarthy-m-g

Bug description

The issue

I believe I found a bug where shared metadata for posts is not shown on listing page of a website, but it is shown on the individual posts.

Description and minimal example

I have a website containing a listing page with the following structure:

|- documents/
|-- index.qmd
|-- posts/
|--- _metadata.yml
|--- post-1/index.md
|--- ...
|--- post-100/index.md

Inside _metadata.yml I've specified some default options for the posts:

date: last-modified
author: Michael

When I preview the site and visit the pages for these posts, I can see that the params in _metadata.yml have been passed through. However, when I visit the documents listing page on the site the default date and author are not showing up for the list items.

My index.qmd file looks like this:

---
title: Documents
listing:
  sort: "date desc"
  contents: "posts"
  type: "table"
  page-size: 30
  sort-ui: true
  filter-ui: true
  categories: true
  feed: false
  field-display-names:
    author: "Author(s)"
    date: Last modified
page-layout: full
title-block-banner: "#EDF3F9"
title-block-banner-color: body
search: true
---

Here is a screenshot to clarify. Posts where the date and author have had their values filled manually show that metadata on the listing page, but posts where I'm using the defaults don't show the metadata on the listing page.

Screen Shot 2022-06-10 at 11 32 50 AM

Quarto Check

Using OSX:

quarto check

[✓] Checking Quarto installation......OK
      Version: 0.9.563
      Path: /Applications/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.9.1 (Conda)
      Path: /Users/Michael/Library/r-miniconda/envs/r-reticulate-mne/bin/python
      Jupyter: 4.7.0
      Kernels: ir, python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.1.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Users/Michael/Library/R/4.1/library
        - /Library/Frameworks/R.framework/Versions/4.1/Resources/library
      rmarkdown: 2.13

[✓] Checking Knitr engine render......OK

Checklist

  • formatted your issue so it is easier for us to read?
  • included a minimal, self-contained, and reproducible example?
  • documented the quarto version you're running, by providing the output produced by quarto check in a terminal in your issue?
  • documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • documented which operating system you're running? If on Linux, please provide the specific distribution as well.
  • upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions