{"id":15594980,"url":"https://github.com/innei/candy","last_synced_at":"2025-10-13T08:31:58.226Z","repository":{"id":38201269,"uuid":"292977322","full_name":"Innei/candy","owner":"Innei","description":"Simple and cute static blog generator.","archived":true,"fork":false,"pushed_at":"2024-07-30T04:19:54.000Z","size":1928,"stargazers_count":23,"open_issues_count":20,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-21T12:33:20.382Z","etag":null,"topics":["blog","generator","nextjs","react","typescript"],"latest_commit_sha":null,"homepage":"https://candy-git-demo.innei.vercel.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Innei.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}},"created_at":"2020-09-05T01:13:27.000Z","updated_at":"2024-08-03T12:13:32.000Z","dependencies_parsed_at":"2023-02-15T03:00:53.500Z","dependency_job_id":"2d673888-bc18-427a-bc70-58600bff90f9","html_url":"https://github.com/Innei/candy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fcandy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fcandy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fcandy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fcandy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Innei","download_url":"https://codeload.github.com/Innei/candy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236323412,"owners_count":19130632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["blog","generator","nextjs","react","typescript"],"created_at":"2024-10-03T00:42:29.685Z","updated_at":"2025-10-13T08:31:52.778Z","avatar_url":"https://github.com/Innei.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Candy\n\nDemo: [Candy](https://candy-git-demo.innei.vercel.app/)\n\n静态博客生成器, 最小化版本的 [Kami](https://github.com/mx-space/kami).\n\nA simple static space generator. Minified version [Kami](https://github.com/mx-space/kami).\n\n## Ready\n\n开始之前, 你需要确保已经安装 Node, Yarn.\n\nBefore you start, you need to make sure you have Node, Yarn, installed.\n\n```\nNode \u003e 12\nYarn \u003e 1.19\n```\n\n## Usage\n\n根目录下的 `_posts` 文件夹是用来存放文章的.\n\n`articles` 文件夹是放博文的\n\n`notes` 是放日记的\n\n`pages` 是存放独立页面的\n\n只支持 YAML Markdown 格式.\n\nThe `_posts` folder in the root directory is for posts.\n\nThe `articles` folder is for blog posts.\n\nThe `notes` folder is for diaries.\n\nThe `pages` folder is for separate page.\n\nOnly YAML Markdown format is supported.\n\n### MetaData\n\n每种类型的文章都有 Metadata, 也就是 YAML 类型的文件头部, 每种类型支持的 MetaData 不相同.\n\n但是他们全部支持如下 MetaData:\n\nEach type of article has a Metadata, which is a YAML-type file header, and each type supports a different MetaData.\n\nHowever, they all support the following MetaData:\n\n```yaml\ntitle: 这是一个标题 (不推荐省略, 可选, 默认使用文件名)\ncreated: 这个文件何时被创建 (可选, 默认文件创建时间)\nmodified: 这个文件何时被修改 (可选, 默认文件修改时间)\n```\n\n`Article` 还支持如下额外的属性:\n\n`Article` also supports the following additional attributes:\n\n```yaml\nslug: 地址栏映射 (可选, 默认为时间戳)\n```\n\n`Note` 还支持如下额外的属性:\n\n`Note` also supports the following additional attributes:\n\n```yaml\ntitle: 文章名 (必选)\nmood: 心情 (可选)\nweather: 天气 (可选)\nnid: 当前的日记序号 (可选, 默认自动按照创建时间排序)\n```\n\n`Page` 还支持如下额外的属性:\n\n`Page` also supports the following additional attributes:\n\n```yaml\nsubtitle: 子标题 (可选)\norder: 页面顺序 (可选)\nslug: 地址栏映射 (必选)\n```\n\n### Example\n\n一个完整的 Article Markdown.\n\nA complete version of `Article` Markdown.\n\n```markdown\n---\ndate: 2020-07-27T05:11:45.989Z\nupdated: 2020-09-04T16:12:36.186Z\ntitle: Test\nslug: test-1\ntype: Post\n---\n\n这是内容\n```\n\n一个完整的 Note Markdown.\n\nA complete version of `Note` Markdown.\n\n```markdown\n---\ndate: 2020-01-15T11:29:00.000Z\nupdated: 2020-08-27T05:21:27.231Z\ntitle: 新的开始\nnid: 54\nweather: 晴\nmood: 开心\n---\n\n最近忙着准备\u003cdel\u003e考试\u003c/del\u003e玩，到了新的一年也没能挤出时间来去写\u003cdel\u003e水\u003c/del\u003e一篇杂谈。其实也不是因为考试，但是就是所有的事情好像挤到了一条线上，有点喘不过气起来。我想着，在新的一年里，我总要有所改变。\n\n巴拉巴拉..\n```\n\n一个完整的 Page Markdown.\n\nA complete version of `Page` Markdown.\n\n```markdown\n---\ndate: 2020-05-08T12:25:36.390Z\nupdated: 2020-08-17T09:04:51.399Z\ntitle: 留言\nslug: message\nsubtitle: 在这里，悄悄的留下点什么呢\norder: 3\n---\n\n嘿，远方的朋友。\n\n你可以在这里畅所欲言。\n\n我都会倾听你的诉说。\n\n申请友链请前往 \u003chttps://innei.ren/friends\u003e\n```\n\n## Build\n\n只需要执行 `yarn build`, 输出的文件在 `out` 目录下.\n\nJust run `yarn build`, the output file is in the `out` directory.\n\n## Deploy\n\n### Host on Github\n\n你需要在 Github 上新建一个仓库, 然后把 `out` 目录下的文件上传, 开启 GitHub Pages 托管即可.\n\n## Markdown Additional Syntax\n\n支持全部 GFM Markdown 语法, 在此基础上增加了如下语法\n\n- Spoiler 防剧透\n\n语法:\n\n`|| ||`\n\n用两个 `||` 包裹\n\n- Mention 链接 GitHub Profile\n\n语法:\n\n`(@username)`\n\nexample: `(@Innei)` 将会渲染成 [@Innei](https://github.com/Innei)\n\nThe full GFM Markdown syntax is supported, with the following syntax additions\n\n- Spoiler. Spoiler-proof.\n\nSyntax:\n\n`|| ||`\n\nContent wrapped in two `||` packages\n\n- Mention link to GitHub Profile\n\nSyntax:\n\n`(@username)`\n\nexample: `(@Innei)` will be rendered as [@Innei](https://github.com/Innei)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fcandy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnei%2Fcandy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fcandy/lists"}