Skip to content

Commit

Permalink
Mark if all minimums repealed in details pages (#678)
Browse files Browse the repository at this point in the history
<img width="1329" alt="Screenshot 2024-12-28 at 3 19 58 PM"
src="https://github.com/user-attachments/assets/9c0aff90-bec3-41a9-8d61-1c48a40d3df4"
/>
  • Loading branch information
Eric-Arellano authored Dec 28, 2024
1 parent 69ba9f4 commit 7e7e13c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions eleventy.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default async function (eleventyConfig: any) {
placeId,
escapedPlaceId: escapePlaceId(placeId),
population: entry.place.pop.toLocaleString("en-us"),
repeal: entry.place.repeal,
};
if (
entry.add_max?.length ||
Expand Down
3 changes: 3 additions & 0 deletions scripts/11ty/template.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ layout: layout.liquid
</header>
<ul class="place-details">
<li>{{ entry.population }} residents</li>
{% if entry.repeal -%}
<li>All parking minimums removed</li>
{%- endif %}
</ul>
{% if entry.rmMin.size > 0 -%}
<section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1>Parking reforms in Abbottstown, PA</h1>
</header>
<ul class="place-details">
<li>1,022 residents</li>

</ul>

<section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1>Parking reforms in Abilene, TX</h1>
</header>
<ul class="place-details">
<li>125,182 residents</li>

</ul>

<section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1>Parking reforms in Auburn, ME</h1>
</header>
<ul class="place-details">
<li>23,414 residents</li>

</ul>
<section>
<h2>Parking minimum removal</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1>Parking reforms in Basalt, CO</h1>
</header>
<ul class="place-details">
<li>3,984 residents</li>

</ul>

<section>
Expand Down

0 comments on commit 7e7e13c

Please sign in to comment.