docs: broken link in site/content/demos/thumbnails.md#1721
docs: broken link in site/content/demos/thumbnails.md#1721pascal-brand38 wants to merge 1 commit into
Conversation
Link to lightgallery options was set to ../../docs/options/#thumbnails-plugin It is now fixed as /docs/settings/#thumbnails-plugin, using similar link as the ones in react-video-gallery.md and video-gallery.md Signed-off-by: Pascal Brand <pascal.brand38@gmail.com>
WalkthroughA single markdown file had its hyperlink updated in the lead section, changing the thumbnails plugin documentation URL from a relative path to an absolute path. No other content or logic was altered. Changes
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
site/content/demos/thumbnails.md (1)
9-10: Prefer Hugo’sref/relrefshortcode to avoid future broken linksHard-coding the absolute path works, but it will break if the docs section is moved or the site is served from a sub-directory (e.g.
/lightgallery/).
Use Hugo’s built-in link shortcodes so the URL is auto-generated and verified at build time:- href="/docs/settings/#thumbnails-plugin"> docs </a>' + href='{{< relref "/docs/settings/#thumbnails-plugin" >}}'>docs</a>'This keeps the docs resilient to refactors and prevents regressions similar to the one you’re fixing now.
|
I do not know how to use shortcodes in Hugo's frontmatter as suggested by coderabbitai. Anybody knows whether this is possible or not? |
Link to lightgallery options was set to
../../docs/options/#thumbnails-plugin
It is now fixed as /docs/settings/#thumbnails-plugin, using similar link as the ones in react-video-gallery.md and video-gallery.md
Summary by CodeRabbit