What I’m trying to do
Additionally to the published date, I like to list the published year. However, non of the formatting hints is working.
<%“—”%>
tag: Buch
title: “{{title}}”
subtitle: “{{subtitle}}”
author: [{{author}}]
category: [{{category}}]
publisher: {{publisher}}
publish: {{publishDate}}
year: {{publishDate}}
total: {{totalPage}}
isbn: {{isbn10}} {{isbn13}}
cover: {{coverUrl}}
status: unread
categories: books
<%“—”%>
Things I have tried
I tried to add something like this without succeeding.
publishDate:Year
year().format(„YYYY“)
Thanks for helping!
Tried with what? Are you referring to a template plugin, or something else? (Pardon if it’s obvious to someone else.)
Maybe the tool/template you are using doesn’t support the „“ and might need to be "". But I’m just guessing.
You are right: I edited the Buch template in Obsidian itself. Adding new fields was no issue at all, but the time format for year only is a challenge for me.
First step succeeding, but mapping on variable „year“ doesn’t work.
published_at: <%= book.publishDate.substring(0, 4) %>
year:
system
Closed
April 11, 2026, 9:48am
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.