QUICK FIND

搜索站点内容

输入关键词开始搜索,无需连接服务器。

⌘ K 随时打开,按 Esc 关闭

2024,我写了一个博客

作为一个程序员是否应该写一个属于自己的博客呢?

2024,我写了一个博客封面

作为一个程序员是否应该写一个属于自己的博客呢?

介绍

https://github.com/putyy/blog#%E4%BB%8B%E7%BB%8D

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

功能特性

https://github.com/putyy/blog#%E5%8A%9F%E8%83%BD%E7%89%B9%E6%80%A7

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

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

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

安装使用

https://github.com/putyy/blog#%E5%AE%89%E8%A3%85%E4%BD%BF%E7%94%A8

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 到这里就可以愉快的使用本系统了!

Conversation

讨论这篇内容

评论由 GitHub Discussions 提供 · 打开讨论仓库