HUGO

Short codes in front matter / dynamic code in front matter

Is there a way to run code within front matter?

What I want to do would be something like this to convert 7 to VII. Is there a way to do this dynamically?

---
title: "Book Title - Chapter {{numeral 7}}"
searchHidden: false
draft: false
date: 2021-04-29T00:00:00+00:00
---

No, there is not.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.