From d26bbb3738995552ed0caa02d74db17e977dee7b Mon Sep 17 00:00:00 2001 From: TomNUSDS <74203452+TomNUSDS@users.noreply.github.com> Date: Tue, 7 May 2024 14:23:24 -0700 Subject: [PATCH] Initial support if there's a "impact_statement", then render it at the end of the report. ``` # Impact statement (Edit this) impact_statement: ``` --- _includes/_template--report-to-congress.html | 58 +++++++++++++------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/_includes/_template--report-to-congress.html b/_includes/_template--report-to-congress.html index f8928c67..f12e874b 100644 --- a/_includes/_template--report-to-congress.html +++ b/_includes/_template--report-to-congress.html @@ -44,34 +44,52 @@

{{ page.title }}

{{ content }} + {% if page.impact_statement %} + +
+

By the Numbers

+
+ {% for item in page.impact_statement %} +
+
+ {{ item.figure }}{{ item.unit}} +
+
{{ item.description | replace: 'site.baseurl', site.baseurl | markdownify }}
+
+ {% endfor %} +
+
+ {% endif %} + {% if page.previous_entry %} - {% assign previous_entry = site.reports_to_congress | where: "url", page.previous_entry | first %} - {% if previous_entry %} -

This project was previously chronicled in our {{ previous_entry.report }} Report to Congress.

- {% endif %} + {% assign previous_entry = site.reports_to_congress | where: "url", page.previous_entry | first %} + {% if previous_entry %} +

This project was previously chronicled in our {{ previous_entry.report }} Report to Congress.

+ {% endif %} {% endif %}
-
- -

Reports to Congress

- -
+

Reports to Congress

+ - \ No newline at end of file + +