Hugo Narrow provide common function by dock, include back to top, back to previous page, jump to comments, search, table of contents.

Dock has three display modes:

  • scroll: show on scroll up
  • always: always visible
  • float: show on floating
params.yaml
1dock: "scroll" # scroll | always | float
Click to expand and view more

Table of Contents

In the initial design, the table of contents was displayed in the middle of the page and controlled via the Dock, which aligns with the theme’s design philosophy and ensures consistent performance across different devices. However, multiple issues requesting a sidebar table of contents were submitted, so support for the sidebar table of contents and the parameter for configuring its position were added in version 1.2.

params.yaml
1toc:
2  enabled: true
3  position: "center" # center | side
Click to expand and view more

Copyright Notice

Author: Hugo Narrow

Link: https://hugo-narrow-docs.vercel.app/docs/dock/

License: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut