Commit graph

104 commits

Author SHA1 Message Date
b8e5fb8dc5
nofollow to fandom.com (adding one that I missed) 2022-12-10 19:16:28 +13:00
31bac8ab56
nofollow to fandom.com 2022-12-10 18:57:05 +13:00
f216a1996a
Stop redirecting pages if there's a redirect=no parameter 2022-12-05 00:15:03 +13:00
99b5d8d8f6
Allow breaking lines in the URL in the footer 2022-12-04 23:55:18 +13:00
9fd2b4699d
Optimise update-tree-wiki somewhat 2022-12-04 23:46:24 +13:00
ba3b39242c
Rename ref parameter to next_location 2022-12-04 23:44:35 +13:00
a661ddb313
Make the search box magically fit the space 2022-11-30 00:37:07 +13:00
50a3bc819a
Fix tests by providing a fake req 2022-11-30 00:36:53 +13:00
9afccbb9cd
Support light/dark themes as per Fandom's styles 2022-11-30 00:03:54 +13:00
92591a5eab
Fix some special characters in titles like ? and ; 2022-11-17 23:25:06 +13:00
1c83c0b4d3
Support X-Canonical-Origin for instance admins 2022-11-15 22:21:12 +13:00
324e34eb72
Remove unused imports 2022-11-15 20:50:07 +13:00
bf6efde979
Add countdown timer for gacha enthusiasts 2022-11-15 20:46:56 +13:00
ef12faf72d
Uncollapse more wiki sections 2022-11-15 20:45:44 +13:00
8c7a045830
NIWA notice: say brought to you by breezewiki 2022-11-13 22:52:29 +13:00
565d0a439a
Add types to Link header 2022-11-11 23:33:56 +13:00
cea9d2082b
Try to add Link header to preload resources 2022-11-11 23:08:06 +13:00
ac17f40329
Fix font local definitions (?) 2022-11-11 22:34:45 +13:00
b0e90f5cf9
Use Source Sans Pro font, selfhosted 2022-11-10 23:55:31 +13:00
02819a7459
Allow searching for nothing on BreezeWiki homepage 2022-11-10 23:20:09 +13:00
aab52bd92b
Use <!DOCTYPE html> standards mode on all pages 2022-11-05 23:40:05 +13:00
1219334d06
New icon, specifically designed for small size 2022-10-31 20:03:50 +13:00
e812f2082c
Deduplicate body-class logic into head-data struct 2022-10-31 19:39:19 +13:00
645fe1beee
Search results page use query as title 2022-10-31 00:03:13 +13:00
15b41c24f7
Add breezewiki-icon.svg 2022-10-31 00:00:07 +13:00
63d37d5e4f
Fix: "Cache-busting" for static files 2022-10-30 23:56:25 +13:00
d3c5498d47
"Cache-busting" for static files 2022-10-30 23:51:15 +13:00
8b200d621a
Link out to NIWA's wikis where available 2022-10-30 23:15:26 +13:00
3c7a2f8453
Rewrite search suggestions module 2022-10-24 18:13:54 +13:00
d8d4e4375e
Fix imports in wiki name downloader 2022-10-24 18:13:14 +13:00
bf055836cc
Add download wiki names script 2022-10-24 00:22:47 +13:00
e709b3cea5
New configuration: feature_search_suggestions
Default true. Set this to false to disable search suggestions for the
whole instance.
2022-10-23 00:35:34 +13:00
07db44e732 Add search suggestions 2022-10-23 00:26:27 +13:00
71705d6e74
Fix used in links that have a namespace in file pages
Example: /ben10/wiki/File:OS_Timespan.png
fe60579a53/includes/Title.php (L1266)
2022-10-13 22:55:36 +13:00
722b0589cb
Update minimum wikiname length to 1
Example: https://m.fandom.com/no/wiki/Forside
2022-10-13 22:54:46 +13:00
9c05e95f07
Test for proxy links with class image 2022-10-13 22:53:05 +13:00
2e6fa6088b Proxy links with class image
Some images don't have an image-thumbnail class, for example:
https://breezewiki.pussthecat.org/minecraft/wiki/Enchanting%20Table#Usage
2022-10-13 09:46:17 +00:00
5b4efdd292
Add a funny redirect that I can make use of later 2022-10-13 22:40:14 +13:00
4968dc2a49
strict proxy false in test as requested by blankie 2022-10-10 22:54:05 +13:00
7a8a1cd40f
Remove noscript versions of images
Script versions are likely better quality, and BreezeWiki makes them
viewable without requiring scripts anyway.
2022-10-10 22:52:35 +13:00
58d6a652d8
Style tweaks to file page, add copyright notice 2022-10-10 21:59:33 +13:00
07074dccfc
Add support for File: pages
Fixes https://lists.sr.ht/~cadence/breezewiki-discuss/%3Cb2835a70-5118-4df0-90c9-4333486a4b69%40nixnetmail.com%3E
2022-10-09 22:11:53 +07:00
5813c49261
Refactor Referrer-Policy header
- Change the variable to always-headers so it can be extended in the future
- New function build-headers that assists combining complex logic headers
  together with less mess
- Also apply headers to the proxy
2022-10-09 23:45:55 +13:00
adc4b47b83 Set Referrer-Policy to no-referrer
Fandom sends a fake 404 to media if there's a Referer header that has an origin
that's not Fandom. However, we can choose not to send the header by setting
Referrer-Policy. See also:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
2022-10-09 10:45:48 +00:00
ade7878f7b
Redirect to actual wiki main page 2022-10-09 22:54:59 +13:00
59332fd9d1
Pass siteinfo through code; show sitename in title 2022-10-09 22:50:50 +13:00
9aba3ad432
Refactor siteinfo/license fetching 2022-10-09 20:54:49 +13:00
6b176e3f8f
Migrate config.rkt to Typed Racket 2022-10-04 22:00:44 +13:00
79f04565c7
Rename wikiname-regex to px-wikiname
I find prefix notation more natural to represent the type/kind of the thing.
2022-10-04 21:19:13 +13:00
57e700cef5 Deduplicate the wiki name regex 2022-10-04 08:19:05 +00:00