A Hugo theme ported from SumiMakito/hexo-theme-Journal.
- Customizable: Easy to customize with detailed project wiki.
- Adaptive: Mobile-friendly & widescreen-friendly.
- Abundant: 3rd. service intergration (Gitalk, LiveRe, Disqus, Waline, Twikoo, Google Search, Analytics... ).
- Convenient: Table of Contents with scroll spy.
- Professional: LaTeX support (disabled by default).
- Graceful: Dark mode (automatic or manual switch).
- International: English, Chinese (CHS/CHT), French, German, Portuguese(Brazil) support.
- ...
For details, please visit project wiki.
更新日志
1.3.1
- 添加搜索功能,参考来源是GitHub Gist的一篇文章。
1.3.0.1:
- 更改
config.toml
为hugo.toml
以跟上新版本hugo,同时补充分页配置和修改侧栏配置信息。
更新详细
-
使用了hugo自带的功能导出
index.json
, 然后使用fuse模糊搜索,然后内容展示在/search
,所以需要在文章路径添加search.md
,以及layouts/_default/search.html
。 -
实现搜索功能的js是
static/js/search.js
,还有一些位于layouts/_default/extended_head.html
的js、css。 -
hugo.toml
也要修改成输出内容到index.json
,这个文件可以在/index.json
查看。
Click to expand
If your website is using Git as version control, please do as follows:
- Fetch the theme dir.
From the root of your Hugo site, open the terminal and execute:
git submodule add https://github.com/AmazingRise/hugo-theme-diary.git themes/diary
- Update git repository.
Then update the git repository from the root of your site:
git submodule update --remote --merge
- Run example site.
From the root of themes/diary/exampleSite:
hugo server --themesDir ../..
- Wiki Home
- Configurations
- 3rd. party services
- Writing
- Styling
- Troubleshooting