Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +01:00
forgejo/docs/layouts
John Olheiser bc784a705b
Override alias template to preserve anchor fragment (#24394)
This PR fixes an annoyance where docs aliases aren't preserving their
anchor fragments.

The refactor included aliases to keep old links from dying, but
currently they redirect without their anchor, which was used _often_ to
jump to sections.

This overrides the alias template with an alternative that preserves the
anchor fragment.

To note, this is just a copy of the [embedded
template](5c7b79cf7f/tpl/tplimpl/embedded/templates/alias.html),
but defaults to a JS redirect that preserves the anchor, and uses the
meta tag as a fallback for noscript users.

---------

Signed-off-by: jolheiser <john.olheiser@gmail.com>
2023-04-28 15:51:17 -05:00
..
_default Implement documentation search (#8937) 2019-11-13 18:03:18 +00:00
doc docs: move search input to navbar (#20551) 2022-08-08 15:27:04 +08:00
shortcodes Add node version variable to docs (#10620) 2020-03-05 16:36:22 -06:00
alias.html Override alias template to preserve anchor fragment (#24394) 2023-04-28 15:51:17 -05:00
index.html Import docs into main repository (#2874) 2017-11-26 23:44:32 +02:00