Initial commit

This commit is contained in:
Paul Nicoué 2022-06-17 17:51:59 +02:00
commit 73c6b816c0
716 changed files with 170045 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<?php
return [
// Kirby configuration settings (production environment)
'debug' => false,
// Matomo plugin options (critical keys)
'sylvainjule.matomo' => [
// 'token' => 'a3d53082e369334813c0ed93d5a80db6'
]
];

View file

@ -0,0 +1,10 @@
<?php
return [
// Kirby configuration settings (development environment)
'debug' => true,
// Matomo plugin options (critical keys)
'sylvainjule.matomo' => [
// 'token' => 'a3d53082e369334813c0ed93d5a80db6'
]
];

41
site/config/config.php Normal file
View file

@ -0,0 +1,41 @@
<?php
return [
// Kirby configuration settings
'home' => 'accueil',
'error' => 'erreur',
'panel' => [
'language' => 'fr',
'css' => 'assets/css/panel.min.css'
],
// Sitemapper plugin options
'kirbyzone.sitemapper' => [
'intro' => false,
'byLine' => 'Sitemap generated with <a href="https://github.com/kirbyzone/sitemapper" target="_blank">Sitemapper by Kirbyzone</a>.'
],
// Hooks
'hooks' => [
'file.create:after' => function($file) {
// Populate file_type field with $file->type() method after file creation
if ($file->type()) {
$file->update([
'file_type' => $file->type()
]);
}
},
'kirbytext:after' => function (string $text) {
// Replace any HTML <h1> or <h2> tag by <h3> tag after Markdown parsing
return preg_replace(['/<h1>|<h2>/', '/<\/h1>|<\/h2>/'], ['<h3>', '</h3>'], $text);
}
],
// Thumbnails and srcsets presets
'thumbs' => [
'srcsets' => [
'default' => [
'640w' => ['width' => 640, 'quality' => 80],
'1280w' => ['width' => 1280, 'quality' => 80],
'1920w' => ['width' => 1920, 'quality' => 80]
]
]
]
];