Commit Graph

6 Commits

Author SHA1 Message Date
897aeba927 Move to krk.tojnar.cz subdomain
for now.
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
f84fbc10f8 Remove pages subdirectory from URL
fixup
2022-01-19 19:05:41 +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
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
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