File tree Expand file tree Collapse file tree 3 files changed +45
-4
lines changed
Expand file tree Collapse file tree 3 files changed +45
-4
lines changed Original file line number Diff line number Diff line change 1+ # Featured topics to display on the homepage
2+ # Each topic should match a slug from _data/tags.yml
3+ topics :
4+ - slug : democracy
5+ title : Democracy
6+ - slug : climate
7+ title : Climate
8+ - slug : housing
9+ title : Housing
10+ - slug : open-data
11+ title : Open Data
12+ - slug : public-engagement
13+ title : Public Engagement
14+ - slug : artificial-intelligence
15+ title : Artificial Intelligence
Original file line number Diff line number Diff line change @@ -198,6 +198,24 @@ permalink: "/"
198198
199199</section >
200200
201+ <!-- === Featured Topics === -->
202+
203+ <section >
204+ <header >
205+ <h2>Explore Topics</h2>
206+ </header >
207+ <div class =" feautured-topic-links " >
208+ {% for topic in site.data.featured_topics.topics %}
209+ <a role="button" class="outline" href="{{ '/tags/topic/' | append: topic.slug | append: '/' | relative_url }}">
210+ {{ topic.title }}
211+ </a>
212+ {% endfor %}
213+ </div >
214+ <div class =" frontpage-action " >
215+ <a href="{{ '/tags/topic' | relative_url }}">See all topics here.</a>
216+ </div >
217+ </section >
218+
201219<!-- === Call to Actions === -->
202220
203221<section >
Original file line number Diff line number Diff line change 100100}
101101
102102/* Breadcrumb */
103- nav [aria-label = ' breadcrumb' ] {
103+ nav [aria-label = " breadcrumb" ] {
104104 margin-bottom : var (--pico-spacing );
105105}
106106
@@ -345,8 +345,8 @@ header.sticky {
345345.main-with-sidebar {
346346 display : grid;
347347 grid-template-areas :
348- ' main'
349- ' sidebar' ;
348+ " main"
349+ " sidebar" ;
350350 grid-template-columns : 1fr ;
351351 gap : 1.5rem ;
352352 margin-bottom : 2rem ;
@@ -363,7 +363,7 @@ header.sticky {
363363/* Two-column layout on tablet+ */
364364@media (min-width : 1024px ) {
365365 .main-with-sidebar {
366- grid-template-areas : ' main sidebar' ;
366+ grid-template-areas : " main sidebar" ;
367367 grid-template-columns : 2fr 1fr ; /* or 3fr 1fr depending on your balance */
368368 }
369369}
@@ -521,3 +521,11 @@ aside .ogimage {
521521.listed {
522522 max-width : 450px ;
523523}
524+
525+ .feautured-topic-links {
526+ /* Home page featured topic links */
527+ display : flex;
528+ flex-wrap : wrap;
529+ gap : 0.5rem ;
530+ padding-bottom : 1rem ;
531+ }
You can’t perform that action at this time.
0 commit comments