IviFoundation / ivifoundation.github.io

The future website of the IVI Foundation
https://ivifoundation.github.io
5 stars 4 forks source link

Oldsite redirects #66

Closed joseph-mueller closed 1 year ago

joseph-mueller commented 1 year ago

This adds the Gem for RedirectFrom, and adds the redirection indication to each md file, referencing the corresponding aspx file.

This seems to be the main thing necessary for redirection, but it is a little messy. The result quietly redirects the old aspx URLs to the new URL, but it creates a directory in the _site with the necessary http magic (seems bulky).

Not sure how else to ensure all links are forwarded but perhaps should be more surgical. Separate commits for the infrastructure change and the changes to the md files.

Also checked in the bash script (in scripts) that updates the md files in case we want to take some other approach.

Issue #47

joseph-mueller commented 1 year ago

There is a flaw in the script that updates the md files. Need to correct and re-run against clean files.

It grabs the second line with a '---' and inserts the new material correctly, but when subsequently finding new lines should write $0 instead of just ---. Oops.... fouls up all the tables :)