{"id":19168575,"url":"https://github.com/xanthous-tech/cn-website","last_synced_at":"2026-06-11T23:31:25.055Z","repository":{"id":40711407,"uuid":"287733430","full_name":"xanthous-tech/cn-website","owner":"xanthous-tech","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-07T04:54:11.000Z","size":710,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-22T23:28:45.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/xanthous-tech.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}},"created_at":"2020-08-15T11:27:43.000Z","updated_at":"2021-08-05T11:51:53.000Z","dependencies_parsed_at":"2023-02-06T12:30:40.425Z","dependency_job_id":null,"html_url":"https://github.com/xanthous-tech/cn-website","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xanthous-tech/cn-website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanthous-tech%2Fcn-website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanthous-tech%2Fcn-website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanthous-tech%2Fcn-website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanthous-tech%2Fcn-website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xanthous-tech","download_url":"https://codeload.github.com/xanthous-tech/cn-website/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanthous-tech%2Fcn-website/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34222709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-09T09:43:08.225Z","updated_at":"2026-06-11T23:31:24.796Z","avatar_url":"https://github.com/xanthous-tech.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 语雀NextJS博客\n\n这个博客生成器利用了 [语雀API](https://www.yuque.com/yuque/developer/api) 和 [NextJS的SSG功能](https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation) 搭建，搭建部署之后不需要额外进行更新，只需要在语雀发布文章即可更新。\n\n博客的样式参考了 [etch主题](https://github.com/LukasJoswiak/etch) 。如果需要进行修改，可以fork之后使用 `styled-components` 自行替换对应的组件。\n\n# Demo\n\nhttps://yuque-blog.now.sh\n\n# 语雀的准备工作\n\n- 生成一个 [语雀API Token](https://www.yuque.com/yuque/developer/api#785a3731) \n- 创建一个知识库，并把路径设置成 `blog`。项目只拉路径为 `blog` 的知识库下面的全部已发布的文章\n\n# 本地开发\n\n首先复制 `.env.example` 到 `.env` 并把语雀的API Token填到 `YUQUE_TOKEN` 环境变量\n\n项目使用标准的NextJS开发流程。请查阅 [package.json](./package.json) 查看对应的 `scripts` 部分。\n\n# 部署\n\n[![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/xanthous-tech/yuque-blog/tree/master)\n\n推荐使用 [Vercel](https://vercel.com) （原Zeit NOW）进行部署。也可以选用 [腾讯云](https://github.com/serverless-components/tencent-nextjs) 或者 [阿里云](https://developer.aliyun.com/article/703315) 部署。\n\n部署时候需要根据云平台把语雀的API Token写到 `YUQUE_TOKEN` 的环境变量里。\n\n# 通过Webhook部署更新内容\n\n如果使用Vercel，或者其他支持Deploy Hook的云平台，推荐把 [博客知识库的Webhook](https://www.yuque.com/yuque/developer/doc-webhook) 配置成Deploy Hook。这样文章发布的时候可以自动部署。\n\n[以Vercel为例](https://vercel.com/docs/v2/more/deploy-hooks)\n\n# 开源证书\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxanthous-tech%2Fcn-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxanthous-tech%2Fcn-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxanthous-tech%2Fcn-website/lists"}