Skip to content

A pico plugin to take the creation date from the file last write time

License

Notifications You must be signed in to change notification settings

fl3pp/PicoFileTime

Repository files navigation

PicoFileTime

A pico plugin to take the creation date from the file last write time.

Features 100% test coverage (without wrappers and connectors)

Pull requests welcome!

Installation

Install via composer composer require jflepp/picofiletime

Usage in themes

{% for page in pages %}
    <li>{{ page.id }} - <a href="{{ page.url }}">{{ page.url }}</a> - {{ page.meta.creation_date }}</li>
{% endfor %}
{{ current_page.meta.creation_date }}

Configuration

PicoFileTime provides no additional configuration, but you can use Picos inbuilt configuration to sort pages according to their creation date:

pages_order_by_meta: creation_date
pages_order_by: meta
pages_order: desc

About

A pico plugin to take the creation date from the file last write time

Resources

License

Stars

Watchers

Forks

Packages

No packages published