{"id":13431053,"url":"https://github.com/iTimeTraveler/hexo-theme-hiero","last_synced_at":"2025-03-16T06:32:01.912Z","repository":{"id":75886754,"uuid":"72822823","full_name":"iTimeTraveler/hexo-theme-hiero","owner":"iTimeTraveler","description":"An awesome magazine, blog theme for your Hexo site.","archived":false,"fork":false,"pushed_at":"2018-12-09T06:49:05.000Z","size":44072,"stargazers_count":222,"open_issues_count":25,"forks_count":138,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-05-20T09:18:35.440Z","etag":null,"topics":["hexo","hexo-theme"],"latest_commit_sha":null,"homepage":"https://itimetraveler.github.io/hexo-theme-hiero/","language":"CSS","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/iTimeTraveler.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":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-11-04T07:05:36.000Z","updated_at":"2024-05-01T07:36:27.000Z","dependencies_parsed_at":"2024-01-18T14:41:20.159Z","dependency_job_id":"38d63a2e-e60b-4cb4-87a0-ae44d209bda6","html_url":"https://github.com/iTimeTraveler/hexo-theme-hiero","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTimeTraveler%2Fhexo-theme-hiero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTimeTraveler%2Fhexo-theme-hiero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTimeTraveler%2Fhexo-theme-hiero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTimeTraveler%2Fhexo-theme-hiero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iTimeTraveler","download_url":"https://codeload.github.com/iTimeTraveler/hexo-theme-hiero/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835952,"owners_count":20355611,"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":["hexo","hexo-theme"],"created_at":"2024-07-31T02:01:00.144Z","updated_at":"2025-03-16T06:32:01.468Z","avatar_url":"https://github.com/iTimeTraveler.png","language":"CSS","funding_links":[],"categories":["Content"],"sub_categories":[],"readme":"# Hiero\n\n[![Gitter](https://camo.githubusercontent.com/079d8764b5eebffbb7158fb375df0959029ab2c3/68747470733a2f2f6261646765732e6769747465722e696d2f6865786f2d7468656d652d696e6469676f2f4c6f6262792e737667)](https://gitter.im/hexo-theme-hiker/Lobby?utm_source=share-link\u0026utm_medium=link\u0026utm_campaign=share-link)       [![Build Status](https://travis-ci.org/iTimeTraveler/hexo-theme-hiero.svg?branch=master)](https://travis-ci.org/iTimeTraveler/hexo-theme-hiero)\t\t[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/iTimeTraveler/hexo-theme-hiero/blob/master/LICENSE)\n\n\nHiero is an awesome magazine theme for your [Hexo] site.\n\n[**☞ 点击预览**](https://itimetraveler.github.io/hexo-theme-hiero/)  |  [**Hiero问题交流**](https://gitter.im/hexo-theme-hiker/Lobby?utm_source=share-link\u0026utm_medium=link\u0026utm_campaign=share-link)\n\n\n![](https://raw.githubusercontent.com/iTimeTraveler/iTimeTraveler.github.io/master/gallery/hiero-demo-screen.png)\n\n![](https://raw.githubusercontent.com/iTimeTraveler/hexo-theme-hiero/master/source/preview/mobile-preview.png)\n\n![](https://raw.githubusercontent.com/iTimeTraveler/hexo-theme-hiero/master/source/preview/Hiero_home.png)\n\n\n以上Demo站点的源文件在这里，大家有需要的可以参考：https://github.com/iTimeTraveler/hexo-theme-hiero/tree/site-source\n\n\u003c!--more--\u003e\n\n## 安装步骤\n\n 1. 从Github上获取代码\n\n ```shell\n $ git clone https://github.com/iTimeTraveler/hexo-theme-hiero.git themes/hiero\n ```\n 2. 启用主题\n\n Modify `theme` setting in `_config.yml` to `hiero`.\n ```\n # Extensions\n ## Plugins: http://hexo.io/plugins/\n ## Themes: http://hexo.io/themes/\n theme: hiero\n ```\n 3. 更新主题\n\n ```shell\n $ cd themes/hiero\n $ git pull\n ```\n\n\n## 特性\n\n\n### 支持图片Logo\n\n就像下面这样：\n\n![](https://raw.githubusercontent.com/iTimeTraveler/hexo-theme-hiero/master/source/preview/logo-preview.jpg)\n\n只用在hiero/_config.yml中设置 `avatar`字段的`eanble`为true，然后设置图片的`url`就好了。\n\n```yml\n# Put your avatar.jpg into `hexo-site/themes/hiero/source/` directory.\n# url is target link (E.g. `url: https://hexo.io/logo.svg` or `url: css/images/mylogo.jpg`)\navatar: \n  enable: true\n  width: 124\n  height: 124\n  bottom: 10\n  url: https://hexo.io/logo.svg\n```\n\n\n### 代码高亮\n\nHiero 使用[Tomorrow Theme](https://github.com/chriskempson/tomorrow-theme) 作为代码主题. 共有以下六种选项: `default`, `normal`, `night`, `night blue`, `night bright`, `night eighties`\n\n![code `default` theme Preview](https://raw.githubusercontent.com/iTimeTraveler/hexo-theme-hiero/master/source/preview/code-default-preview.png)\n\n默认高亮配色如上图，另外的五种配色如下.\n\n![code themes](https://github.com/iTimeTraveler/hexo-theme-hiero/blob/master/source/preview/code-theme.jpg?raw=true)\n\n您可以在本主题的 hiero/_config.yml 文件中更改 `highlight_theme` 字段来选择.\n\n```yml\n# Code Highlight theme\n# Available value:\n#    default | normal | night | night eighties | night blue | night bright\n# https://github.com/chriskempson/tomorrow-theme\nhighlight_theme: default\n```\n\n\n\n### 侧边栏\n\n主题_config.yml文件中的 `sidebar` 字段可以设置为 `left`或`right`，用来控制侧边栏显示在页面左侧还是右侧。\nHipaper 有以下7个侧边栏组件:\n\n- search （搜索框）\n- social （社交网站链接）\n- recent_posts （最新文章）\n- category （分类）\n- tag （标签）\n- tagcloud （标签云）\n- archive （归档栏）\n\n以上组件在主题中均已默认启用. 您可以在 `widget` 字段中设置显示哪些以及顺序。\n\n\n### 站内搜索\n\nHiero  使用 `Insight Search` 来帮助大家使用站内搜索.\n\n```yml\n# Search\nsearch:\n    insight: true # you need to install `hexo-generator-json-content` before using Insight Search\n    swiftype: # enter swiftype install key here\n    baidu: false # you need to disable other search engines to use Baidu search, options: true, false\n```\n\n\u003e ！！注意: 使用搜索工具之前您必须使用 `hexo-generator-json-content` 来安装，在Hexo根目录下执行命令如下：\n\n```bash\n$ npm install -S hexo-generator-json-content\n```\n\n\n### Fancybox\n\nHiero 使用 [Fancybox] 来提供文章图片预览.\n\n```\n![img caption](img url)\n\n{% fancybox img_url [img_thumbnail] [img_caption] %}\n```\n\n### 打赏捐赠按钮\n\n![](https://github.com/iTimeTraveler/hexo-theme-hiker/blob/master/source/preview/donation-btn.png)\n\n每篇文章最后显示打赏按钮，目前仅支持微信支付和支付宝两种打赏方式。您可以在文件 `hiero/_config.yml` 中配置您的微信、支付宝付款二维码图片的URL:\n\n\n```yml\n# donation button\ndonate:\n    enable: true\n    message: '如果觉得我的文章对您有用，请随意打赏。您的支持将鼓励我继续创作!'\n    wechatImage: https://your_WECHAT_PAY_ImageUrl\n    alipayImage: https://your_ALIPAY_ImageUrl\n```\n\n### 评论功能\n\nHiero 已完全支持网易云跟帖、多说、 Disqus评论功能. 您可以在 `hiero/_config.yml` 文件中更改以下字段:\n\n```yml\n# comment ShortName, you can choose only ONE to display.\ngentie_productKey: #网易云跟帖your-gentie-product-key\nduoshuo_shortname: iTimeTraveler\ndisqus_shortname: \n```\n\n- #### 网易云跟帖说明\n\n登陆 [网易云跟帖](https://gentie.163.com/) 获取你的 Product Key。请注意，您在**`云跟帖管理后台设置的域名必须跟您站点的域名一致`**。在本地测试时，需要做两步骤前置设定：\n\n1. 修改 hosts 文件，将您域名的请求指向本地。例如：127.0.0.1 yoursite.com\n2. 修改 Hexo 监听的端口为 80：`hexo s --debug -p 80`\n\n测试完成后请将 hosts 文件中的域名映射删除即可。\n\n\n## 支持的浏览器\n\n![](https://github.com/iTimeTraveler/hexo-theme-hiero/blob/master/source/preview/browser-support.png?raw=true)\n\n\n## 贡献\n\n欢迎大家提issue或者pull request，开源项目也离不开大家的批评指正。\n\n\n\u003e 特别感谢Wordpress作者 ATHEMES, 本主题源于他们的 [Hiero for Wordpress](http://athemes.com/theme/hiero/).\n\n\n## License\n\nHiero is under the MIT license. See the [LICENSE](https://github.com/iTimeTraveler/hexo-theme-hiero/blob/master/LICENSE) file for details.\n\n\n[Hexo]: https://hexo.io/\n[Fancybox]: http://fancyapps.com/fancybox/\n[Font Awesome]: http://fontawesome.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FiTimeTraveler%2Fhexo-theme-hiero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FiTimeTraveler%2Fhexo-theme-hiero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FiTimeTraveler%2Fhexo-theme-hiero/lists"}