getgrav / grav-plugin-auto-date Goto Github PK
View Code? Open in Web Editor NEWGrav Auto Date Plugin
Home Page: https://getgrav.org
License: MIT License
Grav Auto Date Plugin
Home Page: https://getgrav.org
License: MIT License
Great thanks for this plugin, it's very helpful! If I may ask - would it be possible to add an optional setting so it would also (or instead) auto add the "published date" on page publish?
Thanks in advance for your answer and hard work.
I tried creating a page and the current date is not automatically set. Tried saving the page and there is still no date.
However, I did try running it on Grav 1.6.25 and Admin 1.9.14 and creating a page (even without saving) automatically sets the current date in the frontmatter.
Is this an incompatibility issue? Can I fix the problem myself?
Steps:
is:
should:
It would be great to have Auto Date manage a second frontmatter tag with an "updated" date, i.e. on each page save, it should update this tag to the current timestamp.
While there is page.modified()
to get the filesystem timestamp of a page, that one might "break" (read: get updated to the current timestamp) on various occasions without changing the page itself, e.g. checking out a page from a repository or copying it via FTP. So keeping the data in the frontmatter makes it much more robust.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.