yanqay / ukhu-blog
ukhu 博客
v0.1.0
2022-10-31 03:01 UTC
Requires
- erusev/parsedown: ^1.7
- nesbot/carbon: ^2.62
README
Ukhu Blog 是为 Ukhu 框架 设计的博客模块
先决条件
- Ukhu 框架应该已经安装。
安装
-
安装 Ukhu Blog 模块
composer require yanqay/ukhu-blog
-
运行安装模块命令
php ukhu module:install blog
-
将导航菜单添加到博客入口页面
<li><a href="/blog" class="nav-link px-2 link-dark">博客</a></li>
-
在 bootstrap/config.php 定义文件中添加新条目
\App\Blog\Application\Ports\MarkdownInterface::class => function () { return new \App\Blog\Infrastructure\Adapters\MarkdownParser( __DIR__ . '/../resources/blog' ); },
-
将博客路由引用添加到应用程序路由
$router = (require_once __DIR__ . '/../bootstrap/routes/blog.php')($router, $container);
-
将模板目录添加到 bootstrap/config.php 模板定义中的 $templateLocations 数组
'../src/Blog/Infrastructure/Http/Presentation/templates',
-
检查 git 源代码控制更改。
贡献
如果您有兴趣为 Ukhu 贡献,请与我们联系。
安全漏洞
如果您在 Ukhu 中发现安全漏洞,请与我们联系。
联系方式
通过 franckmercado@gmail.com 联系。