How can I add a timestamp before the note title to upload ? #179
-
Hi there, I'm using the following template from Jekyll and just discovered this plugin that solves the main problem I had with obsidian to share things to the world. However, I need to change my note title to "YYYY-MM-DD-title.md", but I don't want to change it inside obsidian for quality of life purpose. Is this possible to add a date to the uploaded file in the plugin options ? That's about the only thing I need and everything works so well, I'll write something about how to do it, I struggled so much and so many people want a simple sharing workflow like that. Thanks in advance ! |
Beta Was this translation helpful? Give feedback.
Answered by
mathisgauthey
Jul 17, 2023
Replies: 1 comment 11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ended up using Hugo for another static site generation that doesn't need a timestamp.
Im struggling with text replacement not working thought.
I set up this input :
//(\[\[([^\]]+)\]\])//
And this output :
//[$2]({{< ref "$2" >}})//
But my links are not converted while uploading, I don't understand why.
Edit : I suspect a bug somewhere in the replace text, my regex should be good.
Edit : The issue was the number of
//
, as stated I should enclose the text with "//", but in the end it's only one of them, not two slashs.Working solution :
/\[\[([^\]]+)\]\]/
[$1]({{< ref "$1" >}})
But now I'm facing issues with attachments, it's never ending.