{"id":21894595,"url":"https://github.com/dmoosocool/hexo-theme-diaspora","last_synced_at":"2025-06-30T11:33:25.533Z","repository":{"id":98795363,"uuid":"134898590","full_name":"dmoosocool/hexo-theme-diaspora","owner":"dmoosocool","description":"diaspora for hexo","archived":false,"fork":false,"pushed_at":"2021-05-28T01:09:58.000Z","size":370,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-28T12:53:54.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Stylus","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/dmoosocool.png","metadata":{"files":{"readme":"README.cn.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-25T19:49:47.000Z","updated_at":"2023-08-18T02:15:28.000Z","dependencies_parsed_at":"2023-05-25T11:00:12.744Z","dependency_job_id":null,"html_url":"https://github.com/dmoosocool/hexo-theme-diaspora","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dmoosocool/hexo-theme-diaspora","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fhexo-theme-diaspora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fhexo-theme-diaspora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fhexo-theme-diaspora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fhexo-theme-diaspora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmoosocool","download_url":"https://codeload.github.com/dmoosocool/hexo-theme-diaspora/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fhexo-theme-diaspora/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262765831,"owners_count":23360984,"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":[],"created_at":"2024-11-28T13:26:39.342Z","updated_at":"2025-06-30T11:33:25.461Z","avatar_url":"https://github.com/dmoosocool.png","language":"Stylus","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ehexo-theme-diaspora\u003c/h1\u003e\n\n\u003e 一个漂亮的 hexo 主题.\n\n- [Chinese Documentation](https://github.com/dmoosocool/hexo-theme-diaspora/blob/master/README.cn.md) | [English Documentation](https://github.com/dmoosocool/hexo-theme-diaspora/blob/master/README.md).\n\n## 案例\n\n- [dmoo.cool](https://www.github.com/dmoosocool/dmoo.cool)\n\n\n\n## 在线浏览\n\n- [kya.cc](https://kya.cc)\n- [dmoo.cool](https://dmoo.cool)\n\n\n\n## 介绍\n\ndiaspora的hexo主题.\n\n一个漂亮的 hexo 主题, 重写于 [diaspora](https://github.com/LoeiFy/Diaspora). 非常感谢[@LoeiFy](https://github.com/LoeiFy/diaspora).\n\n\n\n## 安装\n\n**1.** 创建一个hexo博客. (如何安装请看 [hexo](https://github.com/hexojs/hexo).)\n\n```shell\n$ hexo init Lolita\n$ cd Lolita\n```\n\n**2.** 检查你的hexo主目录，这里必须包含node_modules, source, themes 和其他文件夹.\n\n```shell\n$ ls\n_config.yml  node_modules  package.json  public  scaffolds  source  themes\n```\n\n**3.** 下载主题\n\n```shell\n$ git clone https://github.com/dmoosocool/hexo-theme-diaspora themes/diaspora\n```\n\n**4.** 拷贝 `default._config.yml` 文件到你的 **hexo** 的主目录.\n\n```sh\n$ mv _config.yml bak._config.yml\n$ cp themes/diaspora/default._config.yml ./_config.yml\n```\n\n**5.** 修改`post.md` 脚手架 (${hexo_root}/scaffolds/post.md).\n\n```shell\n$ cd ${hexo_root}\n$ vi _config.yml\n```\n\n```yaml\n---\ntitle: {{ title }}\ndate: {{ date }}\ntags: \nmp3:\npic:\n---\n\n```\n\n**6.** 根据配置文件信息修改 `_config.yml`.\n\n**7.** 添加关于和友情链接页面.\n\n```shell\n$ hexo new page about \u0026\u0026 hexo new page links\n```\n- 添加 `layout` 属性.\n${hexo_root}/source/about/index.md\n```yaml\n---\ntitle: about\ndate: 2018-06-08 02:52:14\nlayout: about\n---\n```\n${hexo_root}/source/links/links.md\n```yaml\n---\ntitle: links\ndate: 2018-06-08 02:52:14\nlayout: links\n---\n```\n\n**7.** 启动hexo\n\n```shell\n$ cd ${hexo_root}\n$ hexo clean \u0026\u0026 hexo g \u0026\u0026 hexo s\n```\n\n**8.** 恭喜\n\n看看你漂亮的hexo博客吧~ 打开浏览器访问: http://localhost:4000\n\n\n\n## 升级主题\n\n```shell\n$ cd themes/diaspora\n$ git pull\n```\n\n\n\n## 已完成的功能项\n\n**1.** UI 重写于[diaspora](https://github.com/LoeiFy/Diaspora).\n\n**2.** 使用[Valine](https://github.com/xCss/Valine)评论系统.\n\n**3.** Helper: [getCategoryList.js](https://github.com/dmoosocool/hexo-theme-diaspora/blob/master/scripts/helper/getCategoryList.js). 关联相关文章.\n\n**4.** Helper: [getArticleCount.js](https://github.com/dmoosocool/hexo-theme-diaspora/blob/master/scripts/helper/getArticleCount.js). 计算文章文字数.\n\n**5.** Helper: [getArticlePic.js](https://github.com/dmoosocool/hexo-theme-diaspora/blob/master/scripts/helper/getArticlePic.js). 动态获取文章图片, 如果你使用了[七牛云存储](https://www.qiniu.com).\n\n**6.** Lib: [leancloud.js](https://github.com/dmoosocool/hexo-theme-diaspora/blob/master/source/lib/leancloud.js). 使用[LeanCloud](https://leancloud.cn/)存储文章的阅读数, 喜欢数.\n\n**7.** 友链页面.\n\n**8.** 关于页面.\n\n\n\n## 问题\u0026需求\n\n如果你发现任何问题或者有需求,  请尽可能的写一个详细的 [issue](https://github.com/dmoosocool/hexo-theme-diaspora/issues).\n\n\n\n## 感谢\n\n- [hexo](https://github.com/hexojs/hexo)\n- [@LoeiFy](https://github.com/LoeiFy/diaspora)\n- [Valine](https://github.com/xCss/Valine) ( **一个漂亮的评论系统**)\n- [七牛](https://www.qiniu.com)\n- [LeanCloud](https://leancloud.cn/)\n- 并且感谢使用这个主题的可爱的你. (≧∇≦)ﾉ \n\n\n\n## 作者\n\n**hexo-theme-diaspora** © [dmoosocool](https://github.com/dmoosocool),  根据[MIT](https://github.com/dmoosocool/hexo-theme-diaspora/blob/master/LICENSE)许可证发布.\n\n\u003e Blog [@dmoosocool](https://www.kya.cc) · GitHub [@dmoosocool](https://github.com/dmoosocool) ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmoosocool%2Fhexo-theme-diaspora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmoosocool%2Fhexo-theme-diaspora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmoosocool%2Fhexo-theme-diaspora/lists"}