Document placeholders
See original GitHub issueBasically I was looking for a way to make filename:
give the same output that Jekyll uses to parse posts, i.e. in the format of YEAR-MONTH-DAY-my-title.md
so that I could iterate through it easily via {% for post in site.categories.user_posts %} ...
etc
The closest I’ve gotten is {fields.date}-{fields.title}
which gives a filename output of:
2016-11-20T21:07:36.028Z-my title.html.md
I was also wondering if you could put in a setting so we can configure the file format, like instead of .md
, we could use .html
?
Thanks in advance.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:15 (12 by maintainers)
Top Results From Across the Web
About Placeholder Documents
You can create placeholder entries in the Document Manager for Word, Excel, PDF, or other files that do not currently exist in the...
Read more >Document Placeholders - dotloop support
Document placeholders are perfect for documents that are required for a transaction, but aren't necessarily a template themselves.
Read more >Format placeholders | Google developer documentation style ...
Placeholders in sample code and commands represent values that the user must replace when they use the sample input. Placeholders in example ...
Read more >Create a Placeholder in a Microsoft Word document
Create a placeholder, such as a Date field in a Microsoft Word document. ... On the Insert tab, click Quick parts and select...
Read more >How to Insert a Placeholder in Word document - Javatpoint
Placeholder is also called as dummy text or filler text. It is a character, word, or string of characters that temporarily holds the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@twentytwoo Well, it took a while to land this feature, so thanks for your patience and for your help with testing. I’ve deployed the feature to the live API. Will close the issue as soon as I add this to the documentation.
I have a workaround for this feature, I’m sending the values using
options[name]
hidden fields, everything is preformatted on the client’s side with JS, date and dashed file name, my staticman config file looks like this:filename: "{options.submitdate}-{options.dashedtitle}"
Additionally it would be great that
commitMessage:
accepts placeholders too, if so we can include a title or something more related to what was submitted/sent.