diff --git a/src/data/explore/index.vto b/src/data/explore/index.vto new file mode 100644 index 0000000..51f49b6 --- /dev/null +++ b/src/data/explore/index.vto @@ -0,0 +1,8 @@ +--- +title: Explore +colour: c5-bg +--- +
+{{ for page of search.pages('section=explore', 'title') }} + {{ comp.navgrid({ heading: page.title , link: page.url, colour: page.colour, desc: page.desc }) }} +{{ /for }} \ No newline at end of file diff --git a/src/data/affordability.md b/src/data/explore/pages/affordability.md similarity index 99% rename from src/data/affordability.md rename to src/data/explore/pages/affordability.md index ad72ee7..e9ed51e 100644 --- a/src/data/affordability.md +++ b/src/data/explore/pages/affordability.md @@ -1,7 +1,8 @@ --- title: Housing affordability -section: data +section: explore colour: c7-bg +url: /data/explore/affordability/ desc: Top 5 most and least affordable places to live in England --- We want to explore which local authorities are the most/least expensive to buy homes in, relative to wages. For this, we wll use the median house price to residence based earning ratio. diff --git a/src/data/tenure_voting.md b/src/data/explore/pages/tenure_voting.md similarity index 99% rename from src/data/tenure_voting.md rename to src/data/explore/pages/tenure_voting.md index 999474c..947f5c9 100644 --- a/src/data/tenure_voting.md +++ b/src/data/explore/pages/tenure_voting.md @@ -1,6 +1,6 @@ --- title: Elections and housing -section: data +section: explore colour: c11-bg desc: Exploring housing tenures and election results url: /data/elections-and-housing/ @@ -498,8 +498,7 @@ plt.show() Strip plot of percentage of homes owned outright coloured by winning constituency - - + Let's calculate the percentage of seats won by the three largest parties that had a higher than average number of people for each type of tenure. First, I'll define a function to calculate that, then call it below for different tenure types. diff --git a/src/data/vacant_homes_house_prices_to_wage_ratio.md b/src/data/explore/pages/vacant_homes_house_prices_to_wage_ratio.md similarity index 99% rename from src/data/vacant_homes_house_prices_to_wage_ratio.md rename to src/data/explore/pages/vacant_homes_house_prices_to_wage_ratio.md index 91cc2bb..bf3294d 100644 --- a/src/data/vacant_homes_house_prices_to_wage_ratio.md +++ b/src/data/explore/pages/vacant_homes_house_prices_to_wage_ratio.md @@ -1,6 +1,6 @@ --- title: House prices and vacant homes -section: data +section: explore colour: c4-bg desc: Exploring the relationship between real-terms house prices and the proportion of vacant homes url: /data/house-prices-vacant-homes/ diff --git a/src/data/index.vto b/src/data/index.vto index 738ed69..a41b773 100644 --- a/src/data/index.vto +++ b/src/data/index.vto @@ -4,7 +4,8 @@ colour: c5-bg navorder: 1 ---
-{{ for page of search.pages('section!=undefined', 'title') }} +{{ for page of search.pages('section=data', 'title') }} {{ comp.navgrid({ heading: page.title , link: page.url, colour: page.colour, desc: page.desc }) }} {{ /for }} + {{ comp.navgrid({ heading: 'Explorations' , link: '/data/explore/', colour: 'c12-bg', desc: 'Deeper dives into housing data' }) }}
\ No newline at end of file