Commit graph

2 commits

Author SHA1 Message Date
6ec64b6d15 Add language detection
Check `navigator.language` and suggest going to that language's page.

This JS file is not required for the page to run, and the notices can easily be disabled using the button that is alongside the notice.

The status if the redirect notice is saved in localStorage under the `i18n:no_redirect_notice` key.
2023-04-20 23:02:49 +02:00
8876c53ecb Implement comments
Based on https://berglyd.net/blog/2023/03/mastodon-comments/

Scripts are loaded only on blog posts. DOMPurify comes from the 0.3.1 release (dist/ on their GitHub repo)
2023-03-17 00:41:51 +01:00