jflepp/picofiletime

A plugin for Pico to set the page creation date from the last write of the file

Installs: 45

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:pico-plugin

0.0.7 2018-11-28 07:20 UTC

This package is auto-updated.

Last update: 2024-09-28 23:42:47 UTC


README

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