2024,我写了一个博客

2024-03-25 20:30:45

2024,我写了一个博客

介绍

基于webman、webman-admin、tailwindcss、原生js 开发的响应式博客网站。

功能特性

 个人主页、项目展示、友情链接、登录、注册、评论等

 得益于tailwindcss,博客系统自适应pc、h5,支持一键切换主题色(黑暗模式)

 后台功能模块包括:文章标签、文章分类、文章管理、导航设置、系统配置、友情链接、项目管理等

安装使用

  • 安装blade
composer require psr/container ^1.1.1 webman/blade
  • 博客路由请根据自己需求手动添加至webman配置文件:
Route::any('/', [\plugin\pt_blog\app\controller\IndexController::class, 'index'])->name("PtBlog.index");
Route::any('/categories/{id:\d+}', [\plugin\pt_blog\app\controller\IndexController::class, 'categories'])->name("PtBlog.categories");
Route::any('/articles/{id:\d+}', [\plugin\pt_blog\app\controller\IndexController::class, 'articles'])->name("PtBlog.articles");
Route::any('/projects', [\plugin\pt_blog\app\controller\ProjectController::class, 'index'])->name("PtBlog.projects");
Route::any('/sites', [\plugin\pt_blog\app\controller\SiteController::class, 'index'])->name("PtBlog.sites");
Route::any('/me', [\plugin\pt_blog\app\controller\MeController::class, 'index'])->name("PtBlog.me");
  • github授权配置 callback url选项示例:https://www.putyy.com/app/pt_blog/user/github (非必须)
  • 重启webman 到这里就可以愉快的使用本系统了!
 
本文由"putyy"原创,转载无需和我联系,但请注明来自putyy
您的浏览器不支持canvas标签,请您更换浏览器