Skip to content

inline R in blog yaml isn't executed on listing page #1505

@harrig12

Description

@harrig12

I have a blog post with a description that contains inline r (to estimate reading time)

it renders nicely for the post itself
image

but not in the listing page!
image

here's the yml of my post's index.qmd:

---
draft: false
title: A nice blog post
description: |
  Reading time: `r ifelse(file.size("index.qmd")/2000 <= 1, '<1 minute', paste0(round(file.size("index.qmd")/2000), ' minutes'))`
---

Any idea of how I can fix the listing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions