Skip to content

Process to archive prior year

Reid Otsuji edited this page Sep 18, 2024 · 5 revisions

Before a new year's website is created, the prior year's website is archived. Sites for previous years are accessible via a drop down list from the main page header:

image

Previous years are also retrievable by adding /YYYY after the main base URL. For example https://uc-love-data-week.github.io/2023/.

Archiving process:

1) Update permalinks for all .html files in _YYYY_pages folder to include archive site year.

For current live site, permalinks are named to correspond to named page on website, such as https://uc-love-data-week.github.io/agenda. For archiving, permalinks include the associated year in /YYYY/ prior to the named page, such as https://uc-love-data-week.github.io/2023/agenda.

Edit .html file headers permalink to be: permalink: /YYYY/agenda

image

2) Update header menu to reflect year

Similar to above, live site header menu is default named to not include year. Header menu on archived site needs to include year, to keep year's site self-contained, rather than redirect back to live/current year site.

In header-menu.html in that year's _includes/YYYY_includes folder, update all header options - workshops, calendar, contacts, etc. - to include year.

image

Be sure to also add the year to the dropdown menu for 'previous years'.

image

Also need to update workshops_info.html in includes to reflect year:

image

3) Run _utilities/feedbuilder.py to update content in feeds to include that year's workshops.

See scripts readme file (FEEDME.md) for full details.