{"id":15130674,"url":"https://github.com/fechin/hexo-theme-diaspora","last_synced_at":"2025-09-28T20:31:56.712Z","repository":{"id":11264907,"uuid":"68993173","full_name":"Fechin/hexo-theme-diaspora","owner":"Fechin","description":"Hexo theme, Blog theme, Clean, Responsive theme","archived":true,"fork":false,"pushed_at":"2022-07-05T07:40:38.000Z","size":606,"stargazers_count":1263,"open_issues_count":49,"forks_count":246,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-05-20T09:15:57.835Z","etag":null,"topics":["blog","hexo","theme"],"latest_commit_sha":null,"homepage":"https://fech.in","language":"JavaScript","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/Fechin.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":"2016-09-23T05:50:40.000Z","updated_at":"2024-05-18T18:10:33.000Z","dependencies_parsed_at":"2022-07-16T05:30:41.499Z","dependency_job_id":null,"html_url":"https://github.com/Fechin/hexo-theme-diaspora","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fechin%2Fhexo-theme-diaspora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fechin%2Fhexo-theme-diaspora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fechin%2Fhexo-theme-diaspora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fechin%2Fhexo-theme-diaspora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fechin","download_url":"https://codeload.github.com/Fechin/hexo-theme-diaspora/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234563123,"owners_count":18853056,"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","hexo","theme"],"created_at":"2024-09-26T03:03:32.000Z","updated_at":"2025-09-28T20:31:56.236Z","avatar_url":"https://github.com/Fechin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hexo-theme-diaspora\n\n\n**[在线预览 | PREVIEW ](http://fech.in)**\n\n一款基于WP移植的Hexo主题，适合喜欢摄影，影评，乐评和玩弄文字的你，干净，清新； 响应式，Ajax，更多好玩的等你来发现。 \n\n\u003e 再次感谢原作者创作出这么精美的主题 [@Loeify](https://github.com/LoeiFy/Diaspora) 。如果你喜欢，请捐助原作者。\n\n![cover](https://fech.in/static/images/Diaspora.jpg)\n\n\n### 安装主题\n\n``` bash\n$ git clone https://github.com/Fechin/hexo-theme-diaspora.git themes/diaspora\n```\n\n\n### 启用主题\n\n修改Hexo配置文件 `_config.yml` 主题项设置为diaspora\n\n\n``` yaml\n\n...\ntheme: diaspora\n...\n```\n### 更新主题\n\n注意：请在更时主题时备份`_config.yml`配置文件\n\n``` bash\ncd themes/diaspora\ngit pull\n```\n\n\n### 新建文章模板\n\n``` markdown\n---\ntitle: My awesome title\ndate: 2016-10-12 18:38:45\ncategories: \n    - 分类1\n    - 分类2\ntags: \n    - 标签1\n    - 标签2\nmp3: http://domain.com/awesome.mp3\ncover: http://domain.com/awesome.jpg\n---\n```\n\n### 创建分类页\n1 新建一个页面，命名为 categories 。命令如下：\n```\nhexo new page categories\n```\n2 编辑刚新建的页面，将页面的类型设置为 categories\n``` \ntitle: categories\ndate: 2014-12-22 12:39:04\ntype: \"categories\"\n---\n```\n主题将自动为这个页面显示所有分类。\n\n### 创建标签页\n1 新建一个页面，命名为 tags 。命令如下：\n```\nhexo new page tags\n```\n2 编辑刚新建的页面，将页面的类型设置为 tags\n```\ntitle: tags\ndate: 2014-12-22 12:39:04\ntype: \"tags\"\n---\n```\n主题将自动为这个页面显示所有标签。\n\n### 创建搜索页\n\n1 需要安装hexo的搜索插件\n```\nnpm install hexo-generator-searchdb --save\n```\n\n2 配置hexo全局配置文件（请将生成的索引文件放在网站根目录或修改主题js文件的path值）\n```yml\nsearch:\n  path: search.xml\n  field: post\n  format: html\n  limit: 10000\n```\n\n3 新建一个页面，命名为 search 。命令如下：\n```\nhexo new page search\n```\n4 编辑刚新建的页面，将页面的类型设置为 search\n```\ntitle: search\ndate: 2014-12-22 12:39:04\ntype: \"search\"\n---\n```\n\n5 在主题配置文件启用本地搜索\n```yml\n#本地搜索,请将索引文件放在网站根目录\nlocal_search:\n    #是否启用\n    enable: true\n\n```\n\n主题将自动为这个页面显示搜索功能。\n\n\n\n### 主题配置\n```yml\n# 头部菜单，title: link\nmenu:\n  首页: /\n  分类: /categories\n  标签: /tags\n  归档: /archives  \n  关于: /about\n\n# 是否显示目录\nTOC: false\n\n# 是否自动播放音乐\nautoplay: false\n\n# 默认音乐（随机播放）\nmp3: \n    - http://link.hhtjim.com/163/425570952.mp3\n    - http://link.hhtjim.com/163/425570952.mp3\n\n# 首页封面图, 为空时取文章的cover作为封面(注意跨域问题,建议使用同源图片)\nwelcome_cover: /img/welcome-cover.jpg\n\n\n# 默认文章封面图（随机调用,支持外链）\ncover: \n  - /img/cover.jpg\n  - /img/welcome-cover.jpg\n\n# 是否显示Twitter分享卡片图像(图像尺寸要求：1200*600，creatorid不需要带@符号。注意：链接必须是完整url，否则Twitter将无法读取图片信息）\ntwitterpic:\n  enable: false\n  src: https://bangdream.moe/img/ident.png\n  creatorid: yourtwitteridhere\n\n# 是否关闭默认滚动条\nscrollbar: true\n\n# 本地搜索,请将索引文件放在网站根目录,或修改主题js文件的path值\nlocal_search:\n    # 是否启用\n    enable: false\n\n# 是否显示 一言(hitokoto)\nhitokoto: true\n\n# 链接(可选:facebook,twitter,github,wechat,email)\nlinks:\n    facebook: /\n    twitter: /\n    github: /\n    wechat: /img/logo.png\n    email: mailto:xxxx@gmail.com\n  \n# 备案\nbeian: \n    # 是否显示备案信息\n    enable: true\n    # 是否在主页面最底下显示备案信息(虽然丑，但是完全满足规定要求)\n    enableFooter: false\n    # 备案号\n    beianInfo: 冀ICP备xxxxxxx号\n    # 链接地址\n    link: http://www.beian.miit.gov.cn\n\n# 是否使用mathjax\nmathjax: false\n\n# Gitalk 评论插件（https://github.com/gitalk/gitalk）\ngitalk:\n    # 是否启用评论功能\n    enable: false\n    # 是否自动展开评论框\n    autoExpand: false\n    # 应用编号\n    clientID: ''\n    # 应用秘钥\n    clientSecret: ''\n    # issue仓库名\n    repo: ''\n    # Github名\n    owner: ''\n    # Github名\n    admin: ['']\n    # Ensure uniqueness and length less than 50\n    id: location.pathname\n    # Facebook-like distraction free mode\n    distractionFreeMode: false\n\n# 网站关键字\nkeywords: Fechin\n\n# 要使用google_analytics进行统计的话，这里需要配置ID\ngoogle_analytics: \n\n# 网站ico\nfavicon: /img/favicon.png\n\n# rss文件\nrss: atom.xml\n\n# 版权信息，要使用版权信息可以在这配置并设定许可方式，可以从 https://creativecommons.org/about/cclicenses/ 查询\ncopyright:\n    enable: false\n    license: \"CC BY-NC-ND\"\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffechin%2Fhexo-theme-diaspora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffechin%2Fhexo-theme-diaspora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffechin%2Fhexo-theme-diaspora/lists"}