Hugo 主题
Tella
Tella,一个为公司设计的 Hugo 主题。
演示可以在这里看到:https://tella.pages.dev
功能
- 响应式
- 轮播图
- 谷歌分析
- 分页
- 语法高亮
- 支持分类
- Disqus
安装
方法 1
在你的 Hugo 站点文件夹中运行
$ git clone https://github.com/opera7133/tella themes/tella
更新主题
$ cd themes/tella
$ git pull
方法 2
在你的 Hugo 站点文件夹中运行
$ git submodule add https://github.com/opera7133/tella.git themes/tella
更新主题
$ git submodule update --remote --merge
安装依赖
至少将以下文件从 themes/tella/exampleSite
复制到站点的根文件夹。
- package.json
- tailwind.config.js
- postcss.config.js
之后,运行此命令。
$ npm install
更多信息请阅读 Hugo 的官方设置指南。
开始使用
成功安装主题后,只需几个步骤即可让你的网站运行起来。
更新配置文件
将 exampleSite 中的 config.toml 复制到你的 Hugo 站点的根目录。根据你的喜好更改字符串。
检查你的站点
为了查看你的站点是否正常运行,运行 Hugo 的内置本地服务器。
$ npm run start
现在在你的浏览器地址栏中输入 localhost:1313
。
更新主题
在你的 Hugo 站点文件夹中运行
$ git submodule update --remote --merge
构建你的站点
$ npm run build
贡献
如果你发现了一个错误或对某个功能有想法,请随时提出问题或进行 PR。
许可证
此主题在 MIT 许可证下发布。