New
v12
This is pretty large breaking release in theme, partially discussed in #748
Breaking changes
- Theme now requires Hugo version
0.146.0that has updated templating system and many templates have been moved around. If you do not have custom template overrides you should not be affected. BookCommitPathandBookEditPathare not templates and need to be updated.- Release branch have been moved from
mastertomain
Notable new features
- Support for automated previous and next pages in documentation.
- Support for
.Site.Copyright. - New shortcodes
image,card,badge,asciinema. - Image shortcode allows to zoom in on image with pure CSS!
- Improved whitespace handling in shortcodes, so they work nicely when nested.
- Updated portable links and images with better support for page and site resources.
- Icons support in menus, bring your own icons in
assets/iconsfolder, limited tosvgfor now. - A landing page layout!
- Codeblocks support for
mermaidandkatex. - Custom font have been removed from the theme, relying on
system-uifrom now on. - Thumbnail support and redesign of blog pages.
- Support for Github style hint / notices in markdown
Contributions
- Add BookFavicon param to readme by @mrled in https://github.com/alex-shpak/hugo-book/pull/726
- Feature: Add next and previous page links by @alex-shpak in https://github.com/alex-shpak/hugo-book/pull/747
- Create sw.yaml by @mtemakuni320 in https://github.com/alex-shpak/hugo-book/pull/732
- Added support for ```mermaid by @CharlesPhilippeLabbe in https://github.com/alex-shpak/hugo-book/pull/729
- use fonts from static/fonts instead of google fonts by @jrpie in https://github.com/alex-shpak/hugo-book/pull/724
- toc-show.html: enforce default value true for .Site.Params.BookToc by @dilyanpalauzov in https://github.com/alex-shpak/hugo-book/pull/755
- i18n: Add Bulgarian translation by @dilyanpalauzov in https://github.com/alex-shpak/hugo-book/pull/754
Full Changelog: https://github.com/alex-shpak/hugo-book/compare/v11.0.0...v12.0.0