{"id":42998187,"url":"https://github.com/fthvgb1/wp-go","last_synced_at":"2026-01-31T03:36:07.340Z","repository":{"id":65408409,"uuid":"591680201","full_name":"fthvgb1/wp-go","owner":"fthvgb1","description":"a simple front of WordPress build with golang.","archived":false,"fork":false,"pushed_at":"2025-08-08T12:03:58.000Z","size":10832,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T13:33:54.599Z","etag":null,"topics":["golang","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fthvgb1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-21T14:19:21.000Z","updated_at":"2025-08-08T12:04:01.000Z","dependencies_parsed_at":"2023-02-18T07:45:26.491Z","dependency_job_id":"56f97ba1-ed0f-44b1-abe7-653117825882","html_url":"https://github.com/fthvgb1/wp-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fthvgb1/wp-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fthvgb1%2Fwp-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fthvgb1%2Fwp-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fthvgb1%2Fwp-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fthvgb1%2Fwp-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fthvgb1","download_url":"https://codeload.github.com/fthvgb1/wp-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fthvgb1%2Fwp-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28928148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T02:59:34.861Z","status":"ssl_error","status_checked_at":"2026-01-31T02:59:05.369Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","wordpress"],"created_at":"2026-01-31T03:36:06.660Z","updated_at":"2026-01-31T03:36:07.333Z","avatar_url":"https://github.com/fthvgb1.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## wp-go\n\n[en readme](https://github.com/fthvgb1/wp-go/blob/master/readme_en.md)\n\n一个go写的WordPress的前端，功能比较简单，只有列表页和详情页,rss2，主题只有twentyfifteen和twentyseventeen两套主题，插件的话只有一个简单的列表页的摘要生成和enlighter代码高亮。本身只用于展示文章及评论。要求go的版本在1.20以上，越新越好。。。\n\n#### 特色功能\n\n- 基本实现全站缓存，并且可防止缓存击穿\n- 列表页也可以高亮语法格式化显示代码\n- 简易插件扩展开发机制、配置后支持热加载更新\n- 使用.so扩展主题、插件、路由等\n- 丰富繁杂的配置，呃，配置是有点儿多，虽然大部分都是可选项。。。\n- 添加评论或panic时发邮件通知，包涵栈调用和请求信息\n- 简单的流量限制中间件，可以限制全瞬时最大请求数量\n- 除配置文件外将所有静态资源都打包到执行文件中\n- 支持密码查看，且cookie信息可被php版所验证\n- 支持rss2订阅\n- 热更新配置、切换主题、清空缓存\n    - kill -SIGUSR1 PID 更新配置和清空缓存\n    - kill -SIGUSR2 PID 清空缓存\n\n#### 运行\n```\ngo run app/cmd/main.go [-c configpath] [-p port]\n```\n\n#### 数据显示支持程度\n\n| 页表  | 支持程度                                        |\n|-----|---------------------------------------------|\n| 列表页 | 首页/搜索/归档/分类/标签/作者 分页列表                      |\n| 详情页 | 显示内容、评论并可以添加评论(转发的php处理，需要配置php版的添加评论的url)  |\n| 侧边栏 | 支持旧版  近期文章、近期评论、规档、分类、其它操作  显示及设置, 支持新版  分类 |\n\n#### 后台设置支持程度\n\n- 仪表盘\n    - 外观\n        - 小工具\n            - 搜索\n            - 规档\n            - 近期文章\n            - 近期评论\n            - 分类\n            - 其它操作\n\n- 设置-\n    - 常规\n        - 站点标题\n        - 副标题\n    - 阅读\n        - 博客页面至多显示数量\n        - Feed中显示最近数量\n    - 讨论\n      - 其他评论设置\n          - `启用|禁止`评论嵌套，最多嵌套层数\n          - 分页显示评论，每页显示评论条数，默认显示`最前/后`页\n          - 在每个页面顶部显示 `新旧`评论\n\n#### 主题支持程度\n\n| twentyfifteen | twentyseventeen |\n|---------------|-----------------|\n| 站点身份          | 站点身份            |\n| 颜色            | 颜色              |\n| 页眉图片          | 页眉媒体            |\n| 背景图片          | 额外css           |\n| 额外css         |                 |\n\n#### 插件机制\n\n分为对列表页文章数据的修改的插件和对影响整个程序表现的插件\n\n| 列表页文章数据插件           | 整个程序表现的插件                            |\n|---------------------|--------------------------------------|\n| digest  自动生成指定长度的摘要 | enlighter 代码高亮(需要在后台安装enlighterjs插件) |\n|                     | hiddenLogin 隐藏登录入口                   |\n\n#### 其它\n\n用的gin框架和sqlx,在外面封装了层查询的方法。\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffthvgb1%2Fwp-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffthvgb1%2Fwp-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffthvgb1%2Fwp-go/lists"}