Move default media library from static/img/ to static/media/ as it can now contain audio, video, and other kinds of media in addition to images.
BREAKING CHANGE:
Either rename your site's static/img/ to static/media/ (and update any references to this folder in your Markdown files);
Or, add `media_dir = "img"` to `params.toml` to continue using the legacy location.
Increase performance.
To enable, add the following to bottom of `params.toml`:
[icon.pack]
ai = true # Academicons icon pack https://jpswalsh.github.io/academicons/
Similar to the Docs layout but much easier to use.
Add `type: book` to a page's front matter and place Markdown files within a folder hierarchy to automatically create the book sidebar navigation.
Introduces {{< list_children >}} shortcode for listing children of a book chapter.
Introduces `design.clip_path` widget option.
Refer to CSS docs on `clip-path` for use.
E.g. to create a slanted bottom to a widget:
```
[design]
clip_path = "polygon(0 0,100% 0,100% 80%,0% 100%)"
[design.background]
color = "navy"
text_color_light = true
```
`class="lazyload"` was earlier removed but the `data-src` was not reverted to `src`.
Fixes gallery images not loading from `static/img/` or from remote URL.
Fix#1771
`highlight_active_link` and `show_language` added to `main_menu` in `params.toml`:
`main_menu = {align = "l", show_logo = true, highlight_active_link = true, show_language = false}`
For example, enables disabling highlighting active main menu links on scroll if it's found to be inaccurate in a certain case, such as towards the end of a homepage with lots of very short widgets that are linked in the menu.
Provides an experience similar to popular blogging platforms.
Make it easier for the visitor to click through and more obvious that it's just a excerpt of the page.
Close#1751
Fixes data type inconsistency between `isDarkTheme` (int) in `academic.js` and
`isSiteThemeDark` (bool) in `site_js.html` that might prevent proper initialization of Mermaid diagrams.
See #1745Fixes#1742
To highlight the site author (superuser) in author lists, set the following in `params.toml`:
highlight_superuser = true
Author notes can be added to a page's front matter in the form:
author_notes:
- "Equal contribution"
- "Equal contribution"
The following option has been added to `params.toml` to control related content on pages:
`show_related = {docs = true, page = false, post = true, project = true, publication = true, talk = true}`
# To use custom SVG icons.
# Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary.
[[feature]]
icon = "beach-sunset"
icon_pack = "custom"
name = "Surfing"
description = "90%"
See #1692
Enables adding Creative Commons copyright licenses on both site wide and per page basis with the new option:
`copyright_license = {enable = false, allow_derivatives = false, share_alike = true, allow_commercial = false, notice = "This work is licensed under {license}"}`
Close#1670