Skip to content

hxxxer/hugo-theme-musing

 
 

Repository files navigation

Hugo Theme Musing

A Hugo theme ported from SumiMakito/hexo-theme-Journal.

Features

Features of this theme

  • 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.

Features in new version

更新日志

1.3.1

  • 添加搜索功能,参考来源是GitHub Gist的一篇文章

1.3.0.1:

  • 更改config.tomlhugo.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查看。

Quick Start

Click to expand

If your website is using Git as version control, please do as follows:

  1. 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
  1. Update git repository.

Then update the git repository from the root of your site:

git submodule update --remote --merge
  1. Run example site.

From the root of themes/diary/exampleSite:

hugo server --themesDir ../..

Personalization

Example config

See /exampleSite/config.toml

Customization

Screenshots

Index Page

Post

Dark Mode

Mobile View

About

修改以使其和新版本接轨

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 37.5%
  • SCSS 33.5%
  • XSLT 15.8%
  • JavaScript 13.2%