1 Star 0 Fork 1

zws / hugo-theme-we

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

hugo-theme-even

GitHub contributors GitHub release GitHub commits (since latest release) GitHub

A super concise theme for Hugo

该主题移植自 hexo-theme-even

在线预览 Demo

Screenshots

even-showcase

Installation

$ git clone https://github.com/olOwOlo/hugo-theme-even themes/even

重要: 在主题的 exampleSite 目录下有一个 config.toml 文件,将这个 config.toml 文件复制到你的站点目录下,根据自己的需求更改即可。

重要: 本主题用到了 Hugo Pipes 功能。如需修改 assets 目录下的文件,请安装 extended 版。

注意: 对于这个主题,你应该使用 post 而不是 posts,即 hugo new post/some-content.md

Language Support

翻译资源在 themes/even/i18n/ 文件夹(内置在主题中),以及站点根目录下的 i18n/ 文件夹中。两个文件夹下的翻译资源将会被合并,且根目录下的优先级大于内置于主题中的。

只需要正确的设置 defaultContentLanguage 的值即可使用翻译资源。

defaultContentLanguage = "en"  # en / zh-cn / other...

同样也支持其他语言。举例来说,为支持德语,在站点根目录下创建 /i18n/de.yaml 文件。参考 en.yaml 文件查看如何编写翻译资源。

附:在多语言模式下,当前正被用于渲染网站的语言会被用于匹配翻译资源。

Favicon

为了定制 favicon,你需要在站点根目录的 static 文件夹下放置下述所有文件,这将覆盖 themes/even/static/ 文件夹下的那些文件。

  • android-chrome-192x192.png
  • android-chrome-512x512.png
  • apple-touch-icon.png
  • browserconfig.xml
  • favicon.ico
  • favicon-16x16.png
  • favicon-32x32.png
  • manifest.json
  • mstile-150x150.png
  • safari-pinned-tab.svg

favicon generator (Google) 能够帮助你生成这些文件。

Front Matter

你可以通过 front-matter 针对每一篇文章单独进行设置。themes/even/archetypes/default.md 文件陈列了所有可用的参数。将该文件复制到站点根目录的 archetypes 文件夹下将会有所帮助。

Shortcodes

主题提供了 center, right, left, music, admonition 这些 shortcodes,并支持为内置的 figure 设置 center, right, left 这三种 class 值。点击这里查看详细内容。

Theme Color

主题内置了五种颜色 ( Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet ),你可以通过改变 /assets/sass/_variable.scss 文件中 $theme-color-config 的值来改变主题的颜色。

Update Theme

cd ./themes/even/
git pull

每当更新此主题时,都应检查 CHANGELOG.md 文件,可能会有一些重大更改。

License

Released under the MIT License.

Acknowledgements

The MIT License (MIT) Copyright (c) 2017 olOwOlo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

hugo theme just for love. base on hugo-theme-even 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
HTML
1
https://gitee.com/nooldey/hugo-theme-we.git
git@gitee.com:nooldey/hugo-theme-we.git
nooldey
hugo-theme-we
hugo-theme-we
master

搜索帮助