From 5a849d5b67677ebb4fde64177f473d804136c6e4 Mon Sep 17 00:00:00 2001 From: Mischa Date: Wed, 17 Jun 2026 23:40:15 +0200 Subject: [PATCH] Add Grav site and plugin config --- config/plugins/form.yaml | 8 ++++++++ config/plugins/login.yaml | 11 +++++++++++ config/site.yaml | 8 ++++++++ config/system.yaml | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 config/plugins/form.yaml create mode 100644 config/plugins/login.yaml create mode 100644 config/site.yaml create mode 100644 config/system.yaml diff --git a/config/plugins/form.yaml b/config/plugins/form.yaml new file mode 100644 index 0000000..60373c7 --- /dev/null +++ b/config/plugins/form.yaml @@ -0,0 +1,8 @@ +enabled: true +files: + destination: '@page' + avoid_overwriting: true + random_name: false + filesize: 10 + accept: + - image/* diff --git a/config/plugins/login.yaml b/config/plugins/login.yaml new file mode 100644 index 0000000..9f444c2 --- /dev/null +++ b/config/plugins/login.yaml @@ -0,0 +1,11 @@ +enabled: true +rememberme: + enabled: true + timeout: 604800 + name: grav-rememberme +user_registration: + enabled: false +route: /login +built_in_css: true +built_in_js: true +redirect_after_login: /tracker diff --git a/config/site.yaml b/config/site.yaml new file mode 100644 index 0000000..8c6b645 --- /dev/null +++ b/config/site.yaml @@ -0,0 +1,8 @@ +title: 'Into the East' +description: 'A travel blog by Mischa' +author: + name: Mischa + email: mischa@gorinskat.nl +taxonomies: [category, tag] +metadata: + description: 'Into the East — travel journal' diff --git a/config/system.yaml b/config/system.yaml new file mode 100644 index 0000000..a836f12 --- /dev/null +++ b/config/system.yaml @@ -0,0 +1,37 @@ +home: + alias: /tracker + +pages: + theme: intotheeast + dateformat: + default: 'd M Y' + short: 'd M' + long: 'l, d F Y' + +cache: + enabled: true + check: + method: folder + driver: auto + +debugger: + enabled: false + +languages: + supported: [en] + +media: + enable_media_timestamp: false + +uploads_privacy: + enabled: false + +session: + enabled: true + timeout: 1800 + +errors: + display: 0 + log: true + +timezone: 'Europe/Amsterdam'