https://github.com/GeneMarks/genemarks-v2
Moved togenemarks.net
Hobbyist blog and media review site.
Prerequisites
- Kirby 3.9+ (Kirby folder not included here)
- Apache httpd
- PHP 8.1
- npm (Optional)
Setup
- Go through a clean Kirby installation.
- Clone this repo into your root web folder, replacing any files.
- Configure your
config.php
located insite > config > config.php
. Sampleconfig.php
:
return [
'sitemap.ignore' => ['error', 'maintenance', 'search'],
'smartypants' => true,
'markdown' => [
'extra' => true
],
'routes' => [
[
'pattern' => 'sitemap.xml',
'action' => function() {
$pages = site()->pages()->index();
$ignore = kirby()->option('sitemap.ignore', ['error']);
$content = snippet('sitemap', compact('pages', 'ignore'), true);
return new Kirby\Cms\Response($content, 'application/xml');
}
],
[
'pattern' => 'sitemap',
'action' => function() {
return go('sitemap.xml', 301);
}
]
]
];
For further development
- Run
npm install
to download project dependencies. - Run one of the following commands:
npm run watch
- Watch css and js
npm run build
- Build css and js
Add :css or :js to only watch or build one. For instance:
npm run watch:css
npm run build:js
Files not included
- Kirby installation
- Site content
- webpet images