Coder Social home page Coder Social logo

grav-plugin-auto-date's People

Contributors

flaviocopes avatar mahagr avatar noirb avatar paulhibbitts avatar rhukster avatar rotzbua avatar w00fz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grav-plugin-auto-date's Issues

Auto publish date on page publish?

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.

Doesn't seem to work on Grav 1.7.0-rc.10 and Admin 1.10.0-rc.10

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?

Allow to track "updated" date in separate frontmatter tag

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.