Update LGA page to generate Federal Divisions page.

This commit is contained in:
Kim Taylor
2025-03-04 21:58:26 +11:00
parent 0bddcb7520
commit f5f04d01eb
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ foreach ($lga_files as $config_file) {
print('<!-- wp:list-item {"style":{"typography":{"fontStyle":"normal","fontWeight":"');
print($font_weight . '"}}} -->' . "\n");
print('<li style="font-style:normal;font-weight:' . $font_weight . '">');
print('<a href="' . $config['slug'] . '">' . $config['councilName'] . "</a></li>\n");
print('<a href="' . $config['slug'] . '">' . $config['divisionName'] . "</a></li>\n");
print('<!-- /wp:list-item -->' . "\n");
}

View File

@@ -4,7 +4,7 @@
# The folder containing data for each council.
# Includes the list of candidates and any media.
DATA_PATH="../spl-data"
DATA_PATH="../spl-data/federal_2025"
# Iterate over folders in data path
candidates_files=()
@@ -22,4 +22,4 @@ done
content=$(php lga-page.php --candidates-files "${candidates_files[*]}" \
--lga-files "${lga_files[*]}")
echo "$content" | wp post update 465 -
echo "$content" | wp post update 245813 -