Files
kirby-blog/index.php
2026-04-20 20:52:36 +10:00

39 lines
1.3 KiB
PHP

<?php
/**
* Copyright 2026, Dreytac <dreytac@hobbyhome.net>
*
* This file is part of Kirby Blog.
*
* Kirby Blog is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
*
* Kirby Blog is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License along with Kirby Blog. If not, see <https://www.gnu.org/licenses/>.
*/
Kirby::plugin(
name: "hobbyhome/blog",
extends: [
"blueprints" => [
"pages/blog" => __DIR__ . "/blueprints/pages/blog.yml",
"pages/blog-post" => __DIR__ . "/blueprints/pages/blog-post.yml",
],
"templates" => [
"blog" => __DIR__ . "/templates/blog.php",
"blog-post" => __DIR__ . "/templates/blog-post.php",
],
"controllers" => [
"blog" => require __DIR__ . "/controllers/blog.php",
],
],
info: [
"authors" => [[
"name" => "Dreytac",
"email" => "dreytac@hobbyhome.net",
"homepage" => "https://hobbyhome.net",
]],
"license" => "AGPL-3.0-only",
"version" => "1.0.0",
],
);