{"id":13545522,"url":"https://github.com/olOwOlo/hugo-theme-even","last_synced_at":"2025-04-02T15:31:21.509Z","repository":{"id":37978293,"uuid":"101626459","full_name":"olOwOlo/hugo-theme-even","owner":"olOwOlo","description":"🚀 A super concise theme for Hugo https://hugo-theme-even.netlify.app","archived":false,"fork":false,"pushed_at":"2024-12-02T13:37:53.000Z","size":1783,"stargazers_count":2074,"open_issues_count":2,"forks_count":730,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-27T00:05:33.531Z","etag":null,"topics":["hugo","hugo-blog-theme","hugo-theme","theme"],"latest_commit_sha":null,"homepage":"https://hugo-theme-even.netlify.app","language":"SCSS","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/olOwOlo.png","metadata":{"files":{"readme":"README-zh.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-08-28T09:20:45.000Z","updated_at":"2025-03-19T03:15:41.000Z","dependencies_parsed_at":"2024-01-18T02:37:17.348Z","dependency_job_id":"b7b274a7-130f-4201-8597-ff13ed8a445a","html_url":"https://github.com/olOwOlo/hugo-theme-even","commit_stats":{"total_commits":167,"total_committers":41,"mean_commits":4.073170731707317,"dds":"0.39520958083832336","last_synced_commit":"4e7f6a21ed8bd0edd01fcb0c12174700e4e80fe1"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olOwOlo%2Fhugo-theme-even","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olOwOlo%2Fhugo-theme-even/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olOwOlo%2Fhugo-theme-even/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olOwOlo%2Fhugo-theme-even/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olOwOlo","download_url":"https://codeload.github.com/olOwOlo/hugo-theme-even/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246841700,"owners_count":20842633,"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":["hugo","hugo-blog-theme","hugo-theme","theme"],"created_at":"2024-08-01T11:01:04.860Z","updated_at":"2025-04-02T15:31:16.500Z","avatar_url":"https://github.com/olOwOlo.png","language":"SCSS","funding_links":[],"categories":["Misc","SCSS (4)","SCSS"],"sub_categories":[],"readme":"# hugo-theme-even\n\n[![GitHub contributors](https://img.shields.io/github/contributors/olOwOlo/hugo-theme-even.svg?colorB=green)](https://github.com/olOwOlo/hugo-theme-even/contributors)\n[![GitHub release](https://img.shields.io/github/release/olOwOlo/hugo-theme-even.svg?colorB=green)](https://github.com/olOwOlo/hugo-theme-even/releases)\n[![GitHub commits (since latest release)](https://img.shields.io/github/commits-since/olOwOlo/hugo-theme-even/latest.svg?colorB=green)](https://github.com/olOwOlo/hugo-theme-even/compare)\n[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/olOwOlo/hugo-theme-even/blob/master/LICENSE.md)\n\nA super concise theme for Hugo\n\n\u003e 该主题移植自 [hexo-theme-even](https://github.com/ahonn/hexo-theme-even)\n\n[在线预览 Demo](https://hugo-theme-even.netlify.app)\n\n## Screenshots\n\n![even-showcase](https://raw.githubusercontent.com/olOwOlo/hugo-theme-even/master/images/showcase.png)\n\n## Installation\n\n```bash\n$ git clone https://github.com/olOwOlo/hugo-theme-even themes/even\n```\n\n**重要:** 在主题的 [`exampleSite`](https://github.com/olOwOlo/hugo-theme-even/tree/master/exampleSite) 目录下有一个 [`config.toml`](https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml) 文件，**将这个 [`config.toml`](https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml) 文件复制到你的站点目录下**，根据自己的需求更改即可。\n\n**重要:** 本主题用到了 [Hugo Pipes](https://gohugo.io/hugo-pipes/introduction/) 功能。如需修改 `assets` 目录下的文件，请安装 extended 版。\n\n**注意:** 对于这个主题，你应该使用 **post** 而不是 **posts**，即 `hugo new post/some-content.md`。\n\n## Language Support\n\n\u003e 翻译资源在 [`themes/even/i18n/`](https://github.com/olOwOlo/hugo-theme-even/tree/master/i18n) 文件夹（内置在主题中），以及站点根目录下的 `i18n/` 文件夹中。两个文件夹下的翻译资源将会被合并，且根目录下的优先级大于内置于主题中的。\n\n只需要正确的设置 [`defaultContentLanguage`](https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml#L3) 的值即可使用翻译资源。\n\n```toml\ndefaultContentLanguage = \"en\"  # en / zh-cn / other...\n```\n\n同样也支持其他语言。举例来说，为支持德语，在站点根目录下创建 `/i18n/de.yaml` 文件。参考 [`en.yaml`](https://github.com/olOwOlo/hugo-theme-even/tree/master/i18n/en.yaml) 文件查看如何编写翻译资源。\n\n附：在多语言模式下，当前正被用于渲染网站的语言会被用于匹配翻译资源。\n\n## Favicon\n\n为了定制 favicon，你需要在站点根目录的 `static` 文件夹下放置下述**所有**文件，这将覆盖 [`themes/even/static/`](https://github.com/olOwOlo/hugo-theme-even/tree/master/static) 文件夹下的那些文件。\n\n- android-chrome-192x192.png\n- android-chrome-512x512.png\n- apple-touch-icon.png\n- browserconfig.xml\n- favicon.ico\n- favicon-16x16.png\n- favicon-32x32.png\n- manifest.json\n- mstile-150x150.png\n- safari-pinned-tab.svg\n\n[favicon generator (Google)](https://www.google.com/search?q=favicon+generator) 能够帮助你生成这些文件。\n\n## Front Matter\n\n你可以通过 front-matter 针对每一篇文章单独进行设置。[`themes/even/archetypes/default.md`](https://github.com/olOwOlo/hugo-theme-even/tree/master/archetypes/default.md) 文件陈列了所有可用的参数。将该文件复制到站点根目录的 `archetypes` 文件夹下将会有所帮助。\n\n## Shortcodes\n\n主题提供了 `center`,` right`, `left`,` music`, `admonition` 这些 shortcodes，并支持为内置的 `figure` 设置 `center`,` right`, `left` 这三种 class 值。点击[这里](https://blog.olowolo.com/example-site/post/shortcodes/)查看详细内容。\n\n## Theme Color\n\n主题内置了五种颜色 ( Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet )，你可以通过改变 [`/assets/sass/_variable.scss`](https://github.com/olOwOlo/hugo-theme-even/blob/master/assets/sass/_variables.scss#L5-L8) 文件中 `$theme-color-config` 的值来改变主题的颜色。\n\n## Update Theme\n\n```bash\ncd ./themes/even/\ngit pull\n```\n\n**每当更新此主题时，都应检查 `CHANGELOG.md` 文件，可能会有一些重大更改。**\n\n\n## License\n\nReleased under the [MIT](https://github.com/olOwOlo/hugo-theme-even/blob/master/LICENSE.md) License.\n\n## Acknowledgements\n\n- [ananke](https://github.com/budparr/gohugo-theme-ananke)\n- [hexo-theme-even](https://github.com/ahonn/hexo-theme-even)\n- [hugo-nuo](https://github.com/laozhu/hugo-nuo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FolOwOlo%2Fhugo-theme-even","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FolOwOlo%2Fhugo-theme-even","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FolOwOlo%2Fhugo-theme-even/lists"}