`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
Hugo bug causes authors not to be listed in the order in which they were defined in the front matter.
See Hugo bug report at https://github.com/gohugoio/hugo/issues/7213
This commit partially reverts f78feefee9 where the code was refactored to use Page.GetTerms for authors.
For example, now Chinese can be used in the names of tags, authors, and categories.
Previously, this was blocked due to bugs in Hugo.
As of Hugo v0.65, new functionality for taxonomies was introduced. The Hugo taxonomy feature powers authors, categories, and tags in Academic.
BREAKING CHANGE:
Requires Hugo v0.65+
The social sharing logic was attempting to use the legacy system of defining the avatar image name in `site.Params.avatar`, however since the author system was added to Academic, `site.Params.avatar` is now a group of params and the avatar itself is stored in the author's page bundle.
Hence, use the avatar in the author's page bundle (if it exists) to represent an author page.
This bug could affect the image used to represent a page in social sharing and RSS.