And I recently learned there’s a CSS property to handle this: scroll-margin-top. Baseline available since 2021, so my grays are showing a bit not having known that.
I feel like this should be added to every anchor tag though, so I’m not sure what the appropriate place for that style is – will leave it to @HongDa then
EDIT:
Also got some more missing localization warnings while testing:
missing translation key viewoption:ptsRefsEnabled
missing translation key viewoption:ptsRefsDisabled
and indeed those don’t seem to exist in bilara-data
EDIT2:
For this particular page, HongDa had a PR to improve this last year: Fixed title and style issues on publication pages. by ihongda · Pull Request #3492 · suttacentral/suttacentral · GitHub
But it seems to still be the case on certain pages, like https://suttacentral.net/edition/pli-tv-vi/brahmali/bu-vb-1-introduction/bi-vb-introduction, gives me publicationEditionMatter—SuttaCentral with the default meta description as well.
It also seems to glitch out and stop updating titles if I click on enough ones without them.
The generic code for this tries to localize the route name, but there is no localization for interface:publicationEditionMatter.
HongDa’s PR above gave a more specific metadata path for the publication-edition component, but not the publication-edition-matter component, which could probably use a very similar PR