Closed ndrezn closed 4 hours ago
Version (please complete the following information):
Describe the bug Using date variables functions correctly:
And results in:
But, using a format as described in https://publish.obsidian.md/shellcommands/Variables/%7B%7Bdate%7D%7D fails:
Gives:
Expected behavior
Expected formatters to work.
URLs where the bug occurs
Universal.
To reproduce
Steps to reproduce the behavior:
Clippings/{{date}}
Your template file
If you are using a custom template (i.e. not the Default template). Go to Web Clipper settings and click More → Copy as JSON. Paste the JSON code below.
{ "schemaVersion": "0.1.0", "name": "Default", "behavior": "create", "noteContentFormat": "{{content}}", "properties": [ { "name": "title", "value": "{{title}}", "type": "text" }, { "name": "source", "value": "{{url}}", "type": "text" }, { "name": "author", "value": "{{author|split:\\\", \\\"|wikilink|join}}", "type": "multitext" }, { "name": "published", "value": "{{published}}", "type": "date" }, { "name": "created", "value": "{{date}}", "type": "date" }, { "name": "description", "value": "{{description}}", "type": "text" }, { "name": "tags", "value": "clippings", "type": "multitext" } ], "triggers": [], "noteNameFormat": "{{title}}", "path": "Clippings/{{date:YYYY}}" }
{{date:YYYY}} is not a valid variable. Please review the documentation.
{{date:YYYY}}
You're looking for {{date|date:"YYYY"}}
{{date|date:"YYYY"}}
Version (please complete the following information):
Describe the bug Using date variables functions correctly:
And results in:
But, using a format as described in https://publish.obsidian.md/shellcommands/Variables/%7B%7Bdate%7D%7D fails:
Gives:
Expected behavior
Expected formatters to work.
URLs where the bug occurs
Universal.
To reproduce
Steps to reproduce the behavior:
Clippings/{{date}}
Your template file
If you are using a custom template (i.e. not the Default template). Go to Web Clipper settings and click More → Copy as JSON. Paste the JSON code below.