New feature: Jekyll style post dating #440
Replies: 2 comments 3 replies
-
Have you explored writing a lua filter for it? https://emanote.srid.ca/guide/lua-filters I don't recall off the top of my head if it also allows transforming the frontmatter metadata. If not, perhaps we can make it to be so. |
Beta Was this translation helpful? Give feedback.
-
I've taken a swing at it, and it looks like we don't have the filename in the Lua filter process: https://github.com/flyinggrizzly/two.flyinggrizzly.net/pull/1 ![]() Am I looking at the wrong object in the filter (can't find anything higher than the Edit: I should point out also that |
Beta Was this translation helpful? Give feedback.
-
It would be useful to be able to create a page, say at
blog/2023-05-24-a-blog-post.md
, and have it infer its frontmatter date from the filename.This is the default and expected behavior in Jekyll for writing posts, and has two benefits (as I see it):
a. an added benefit is that all my posts are always sequentially sorted by date by the filesystem, and I don't need to open an editor and hop around
I know Emanote isn't blog-centric in the way that Jekyll is, but this would improve ergonomics for me at least, and I imagine for anyone else familiar with Jekyll.
It also feels relatively low-risk as an ehancement, since the likelihood of someone happening to have a pile of pages named with dates in the filename and not desiring them to have those dates set seems very unlikely.
NB:
I believe Jekyll allows (or allowed) date overriding with an explicit frontmatter date. In those cases the frontmatter took precedence over the filename date.
Beta Was this translation helpful? Give feedback.
All reactions