17 Commits

Author SHA1 Message Date
897aeba927 Move to krk.tojnar.cz subdomain
for now.
2022-01-19 19:05:41 +01:00
78b62c04d3 Use new tojnar.cz links
We moved this web under a separate subdomain so we need to update all the links to the root.
2022-01-19 19:05:41 +01:00
b746cbc337 test: Switch to live server 2022-01-19 19:05:41 +01:00
e89a44c4f8 Use REQUEST_URI for route matching
This will simplify the .htaccess/nginx config.
2022-01-19 19:05:41 +01:00
b3507e139e Remove pages subdirectory from links 2022-01-19 19:05:41 +01:00
f84fbc10f8 Remove pages subdirectory from URL
fixup
2022-01-19 19:05:41 +01:00
242e4aadbd Change links to new addressing scheme 2022-01-19 19:05:40 +01:00
697d9d1f9c Use better addressing scheme for old pages
The subsection indexes should be addressed as directories (URLs ending with a slash).
Instead of the non-canonical `section.html` vs `section/section.html`.
(Have not yet updated the links.)

Also:
- Moved the legacy redirects from index.php to .htaccess.
- Made the test runner return 1 on failure and print number of failed tests.
- Improve test failure message on missing expected redirect.
2022-01-19 19:05:40 +01:00
c451f3a257 Fix some broken links 2022-01-19 19:05:40 +01:00
63a183c7f9 Remove google tracking 2022-01-19 19:05:40 +01:00
3cb6156f82 Switch to new URI scheme
We still need to canonize section pages (e.g. krk/mcr_2009/mcr_2009.html vs krk/mcr_2009/)
2022-01-19 19:05:40 +01:00
f9ade4fc36 Get rid of separate print pages
Those should be handled by CSS.
2022-01-19 19:05:40 +01:00
fc450e4984 Add htaccess for clean URLs
Also rename main files to index.php to avoid the need for custom directory indices.

Attached is a script for testing.
2022-01-19 19:05:40 +01:00
0ec0fda566 Make the old code compatible with modern PHP 2022-01-19 19:05:40 +01:00
87df496efd Format old PHP files 2022-01-19 19:05:40 +01:00
0ad86228e9 Merge in old tojnar.cz/krk (mostly) as is
The SupportIT server www.tojnar.cz is hosted on is being decommissioned.
To make the migration faster, we will just copy the current state
and convert it to Hakyll incrementally.

This mostly imports the tree as is minus accidentally misplaced files.
Additionally, the following changes were made:

- line separators were converted using dos2unix
- file encodings were changed from windows-1250 to utf-8
- highslide and related files are now loaded from root instead of per-gallery copy
- uppercase JPG extensions were changed to lowercase

remove private
2022-01-19 19:05:40 +01:00
8db618c057 Add gitignore files 2022-01-18 04:40:52 +01:00