Transform Pushword in a FlatFile CMS.
composer require pushword/flat-file
Globally under pushword_static_generator
(in config/packages
).
Or for multi-sites in config/package/pushword.yaml
.
...:
flat_content_dir: content #default value
php bin/console pushword:flat:import $host
Where $host is facultative.
By default, the content may be organized in content
dir and image may be in content/media/default
Eg:
content
content/homepage.md
content/kitchen-skink.md
content/other-example-kitchen-sink.md
content/en/homepage.md
content/en/kitchen-skink.md
content/media/default/illustation.jpg
content/media/default/illustation.jpg.json
kitchen-skin.md
may contain :
---
h1: 'Welcome in Kitchen Sink'
locale: fr
translations:
- en/kitchen-skink
main_image: media/default/illustration.jpg
images:
- media/default/illustration.jpg
parent:
- homepage
childrenPages:
- other-example-kitchen-sink
metaRobots: 'no-index'
name: 'Kitchen Sink'
title: 'Kitchen Sink - best google restult'
#created_at: 'now' # see https://www.php.net/manual/fr/datetime.construct.php
#updated_at: 'now'
---
My Page content Yeah !
Good to know :
.md
) and can be override by a property in yaml fronthomepage
's file could be named index.md
or homepage.md
customProperties
illustation.jpg.json
may contain{
"name": "My Super Kitchen Sink Illustration",
"createdAt": "now",
"updatedAt": "now"
}