Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
d82861a
Add reflection as post type
syzygy333 Feb 3, 2021
15ac863
Add reflection layout template
syzygy333 Feb 3, 2021
1002458
Add reflection content directory and md
syzygy333 Feb 3, 2021
d57cea2
Add reflection stylesheet
syzygy333 Feb 3, 2021
7e9bc70
Add spacer helper function and spacer
syzygy333 Feb 3, 2021
a9d5029
Setup header
syzygy333 Feb 3, 2021
6e185a7
Add hero image
syzygy333 Feb 3, 2021
db3399b
Add small nav height variable
syzygy333 Feb 3, 2021
103d43f
Rename files and add conditional for hero img
syzygy333 Feb 3, 2021
bb03d64
Move byline loop into include
syzygy333 Feb 3, 2021
b0acd4a
Style content elements
syzygy333 Feb 3, 2021
01ee755
Add floating
syzygy333 Feb 3, 2021
0049da3
Generalize byline include
syzygy333 Feb 4, 2021
f7a8986
Fix recirc loop and logic
syzygy333 Feb 4, 2021
a113c54
Add reflections landing page
syzygy333 Feb 4, 2021
bf34fb0
Add reflections landing page
syzygy333 Feb 4, 2021
0a0dac1
Update post link examples
syzygy333 Feb 4, 2021
eea89bd
Adjust classes, links, styles on recirc
syzygy333 Feb 4, 2021
43efe3e
Use variable for bg image
syzygy333 Feb 4, 2021
67d5256
Fix nav spacer height not adjusting
syzygy333 Feb 4, 2021
a17b31a
Fix body classes
syzygy333 Feb 4, 2021
cd5b8c1
Add body class to team layout
syzygy333 Feb 4, 2021
a9b85f2
Add reflections landing
syzygy333 Feb 4, 2021
68629e9
Add class to subtitle
syzygy333 Feb 4, 2021
17b579d
Refine byline include logic
syzygy333 Feb 8, 2021
71f061a
Tie font family to lead class
syzygy333 Feb 8, 2021
602850d
Fix spacing
syzygy333 Feb 8, 2021
7cfe8c9
Add notes to the example reflection
syzygy333 Feb 8, 2021
223fb2c
Restyle recirc title links
syzygy333 Feb 8, 2021
d5870a2
Sort reflection lists
syzygy333 Feb 8, 2021
27bbfb3
Add other reflections for test content
syzygy333 Feb 8, 2021
79de5ec
Fix indentation
syzygy333 Feb 8, 2021
a99c725
Add reflections block and nav item to homepage
syzygy333 Feb 8, 2021
3773c39
Use section classes for bg colors
syzygy333 Feb 8, 2021
26c3026
Add projects section to homepage
syzygy333 Feb 8, 2021
b0b7c79
Rename stylesheet
syzygy333 Feb 8, 2021
93a19b9
Remove tease variable
syzygy333 Feb 8, 2021
128d274
Add blue background option
syzygy333 Feb 8, 2021
a09c42b
Add project as content type
syzygy333 Feb 8, 2021
1cb6fe4
Add example project
syzygy333 Feb 8, 2021
1cf3fc8
Add project layout and stylesheet
syzygy333 Feb 8, 2021
7ac355b
Unpublish example reflections
syzygy333 Feb 9, 2021
3272611
Add and style sidebar
syzygy333 Feb 9, 2021
c69bb15
Adjust float for mobile
syzygy333 Feb 9, 2021
47cbfa0
Move generalized and repeated styles
syzygy333 Feb 9, 2021
4300c78
Fix spacing and sidebar link styling
syzygy333 Feb 9, 2021
a3ebd7d
Begin styling project recirc area
syzygy333 Feb 9, 2021
63edd4a
Make project recirc dynamic
syzygy333 Feb 9, 2021
280f21f
Add one more example
syzygy333 Feb 9, 2021
0e687db
Add landing page and links to landing page
syzygy333 Feb 9, 2021
eb0b21a
Switch to default URLs by filename
syzygy333 Feb 9, 2021
9743f68
Do the same for reflections
syzygy333 Feb 9, 2021
ee05a0a
Remove unused styles
syzygy333 Feb 9, 2021
e01e473
Remove 'More'
syzygy333 Feb 10, 2021
6b3e7ff
Fix permalink to be consistent
syzygy333 Feb 10, 2021
9e2bc8c
Use string for timeline value
syzygy333 Feb 12, 2021
403b81c
Remove abstract as variable
syzygy333 Feb 12, 2021
501583c
Fix projects link
syzygy333 Feb 12, 2021
c3e1555
Update byline logic to only link to team members
syzygy333 Feb 12, 2021
990b7d1
Merge pull request #42 from thepolicylab/BPL-20/build-reflection-page
syzygy333 Feb 16, 2021
bf25892
Remove extra example posts
syzygy333 Feb 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
thepolicylab.brown.edu
oomphbpl.surge.sh
6 changes: 6 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ collections:
events:
output: false
permalink: /events/:name
reflections:
output: true
permalink: /reflections/:name
projects:
output: true
permalink: /:collection/:name

# Exclude from _site build
exclude: ['.git',
Expand Down
12 changes: 12 additions & 0 deletions _includes/byline.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{%- assign length = forloop.length -%}
{%- assign secondtolast = length | minus: 1 -%}
{%- assign team_member = site.team | where:"title", author | first -%}
{%- if team_member.title == author -%}
<a href="{{ '/team/' | relative_url }}{{ author | slugify }}" class="author__link">{{ author }}</a>
{%- else -%}
<span class="author__no-link">{{ author }}</span>
{%- endif -%}
{%- unless forloop.last -%}
{% if length > 2 %}{{ ', ' }}{% endif %}
{%- endunless -%}
{% if forloop.index == secondtolast %}{{ ' and ' }}{% endif %}
8 changes: 4 additions & 4 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
</li>

<li class="nav-item nav__item">
<a href="{% if page.permalink != '/' %}{{ '/index.html' | relative_url }}{% endif %}#connect" class="nav-link nav__link js-smoothscroll">Get Updates</a>
<a href="{% if page.permalink != '/' %}{{ '/index.html' | relative_url }}{% endif %}#projects" class="nav-link nav__link js-smoothscroll">Projects</a>
</li>

<li class="nav-item nav__item">
<a href="{% if page.permalink != '/' %}{{ '/index.html' | relative_url }}{% endif %}#events" class="nav-link nav__link js-smoothscroll">Events</a>
</li>

<li class="nav-item nav__item">
<a href="{% if page.permalink != '/' %}{{ '/index.html' | relative_url }}{% endif %}#theory" class="nav-link nav__link js-smoothscroll">Theory of Change</a>
<a href="{% if page.permalink != '/' %}{{ '/index.html' | relative_url }}{% endif %}#reflections" class="nav-link nav__link js-smoothscroll">Reflections</a>
</li>

<li class="nav-item nav__item">
<a href="{% if page.permalink != '/' %}{{ '/index.html' | relative_url }}{% endif %}#team" class="nav-link nav__link js-smoothscroll">Our Team</a>
<a href="{% if page.permalink != '/' %}{{ '/index.html' | relative_url }}{% endif %}#connect" class="nav-link nav__link js-smoothscroll">Get Updates</a>
</li>

<li class="nav-item nav__item">
Expand Down
4 changes: 2 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{% include head.html %}

<body class="layout__{{ page.layout }} page__{{ page.body-class }}" data-spy="scroll" data-target="#main-nav">
<body class="layout__{{ page.layout }} page__{{ page.body-class }} page__{{ layout.body-class }}" data-spy="scroll" data-target="#main-nav">
<div id="top" class="l-wrapper">

{% unless page.show-nav == false %}
Expand All @@ -19,4 +19,4 @@

{% include subfooter.html %}
</body>
</html>
</html>
103 changes: 103 additions & 0 deletions _layouts/project.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
---
layout: default
body-class: project presentation
---
{% comment %}

Reflection items in object:
- page.title
- page.permalink
- page.content

{% endcomment %}

<section id="content" class="layout__main s__white project">
<div class="project__content u__vspacing">
<header class="project__content__header u__spacing">
<div class="row u__container justify-content-center text-center">
<div class="col-12 project__content__landing-link-wrapper">
<hr />
<a href="{% link projects.html %}" class="project__content__landing-link">Projects</a>
</div>
<div class="col-9 project__content__title-wrapper">
<h1 class="project__content__title display-5 my-4">{{ page.title }}</h1>
{% if page.subtitle %}
<p class="project__content__subtitle">{{ page.subtitle }}</p>
{% endif %}
</div>
</div>
</header>

<div class="row flex-row-reverse u__container">
<article class="col-lg-9 project__content__body">
<div class="s__blue project__content__body__summary mb-4 mb-lg-5">
<h2 class="lead">Project Summary</h2>
{{ page.excerpt }}
</div>
{{ content | remove: page.excerpt }}

</article>

<div class="col-lg-3">
<aside class=" s__light project__content__aside">
<ul class="project__content__aside__list">
{% for meta in page.aside %}
<li>
<p class="lead">{{ meta[0] | capitalize }}</p>
{% for inner_meta in meta[1] %}
{% if inner_meta.link %}
<p><a href="{{ inner_meta.link }}">{{ inner_meta.name }}</a></p>
{% else %}
<p>{{ inner_meta }}</p>
{% endif %}
{% endfor %}
</li>
{% endfor %}
</ul>
</aside>
</div>
</div>

</div>

<aside class="u__vspacing s__primary project__recirc">
<div class="u__container u__spacing">
<div class="row justify-content-center">
<div class="col-12 text-center">
<h2 class="h1">More Projects</h2>
</div>
{% assign counter = 0 %}
{% assign projects_most_recent = site.projects | reverse %}
{% for project in projects_most_recent %}
{% if project.title != page.title and counter <= 5 %}
<div class="col-sm-4 project__recirc__post d-flex flex-column text-center">
<span class="project__recirc__post__meta">{{ project.aside.method }}</span>
<h3 class="project__recirc__post__title h4"><a href="{{ project.url }}">{{ project.title }}</a></h3>
</div>
{% endif %}
{% assign counter = counter | plus:1 %}
{% endfor %}
<div class="col-12 pt-5 text-center">
<a href="{% link projects.html %}" class="project__recirc__landing-link h4">All Projects</a>
</div>
</div>
</div>
</aside>

<aside class="u__vspacing s__light s__primary-clean">
<div class="u__container u__spacing connect">
<div class="row">
<div class="col-md-3 col-lg-4">
<h2 class="h1">Get Updates</h2>
</div>
<div class="col-md-9 col-lg-8">
<p class="lead">Sign up to get updates on projects, events, and new episodes of our podcast, <a href="https://thirtythousandleagues.com/">30,000 Leagues</a></p>

{% include mailchimp.html %}

</div>
</div>
</div>
</aside>

</section>
101 changes: 101 additions & 0 deletions _layouts/reflection.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
---
layout: default
body-class: reflection presentation
---
{% comment %}

Reflection items in object:
- page.title
- page.permalink
- page.img (example.jpg)
- page.authors
- page.content

{% endcomment %}

<section id="content" class="layout__main s__white reflection">
<div class="reflection__content">
{% if page.img %}
<div class="reflection__content__img-wrapper">
{% assign bg_image_url = '/assets/img/reflections/' | append: page.img %}
<div style="background-image: url('{{ bg_image_url }}')" class="img--rwd reflection__content__img">
</div>
</div>
{% endif %}
<header class="reflection__content__header u__spacing">
<div class="row u__container">
<div class="col-sm-7 reflection__content__title-wrapper">
<a href="{% link reflections.html %}" class="reflection__content__landing-link">Reflections</a>
<h1 class="reflection__content__title display-5 pt-4 mb-2">{{ page.title }}</h1>
</div>
</div>
<div class="row u__container">
<div class="col-sm-8 reflection__content__authors-wrapper">
<p class="reflection__content__authors">
By
{% for author in page.authors %}
{% include byline.html %}
{% endfor %}
</p>
</div>
</div>
</header>

<article class="container u__container u__vspacing reflection__content__body">
<div class="row">
<div class="col-sm-9 col-lg-8">

{{ content }}

</div>
</div>
</article>
</div>

<aside class="u__vspacing s__light reflection__recirc">
<div class="u__container u__spacing">
<div class="row">
<div class="col-12">
<h2 class="h1">More Reflections</h2>
</div>
{% assign counter = 0 %}
{% assign reflections_most_recent = site.reflections | reverse %}
{% for reflection in reflections_most_recent %}
{% if reflection.title != page.title and counter <= 4 %}
<div class="col-sm-6 reflection__recirc__post">
<h3 class="reflection__recirc__post__title h4"><a href="{{ reflection.url }}">{{ reflection.title }}</a></h3>
<p class="reflection__recirc__post__authors">
By
{% for author in reflection.authors %}
{% include byline.html %}
{% endfor %}
</p>
{{ reflection.excerpt }}
</div>
{% endif %}
{% assign counter = counter | plus:1 %}
{% endfor %}
<div class="col-12">
<a href="{% link reflections.html %}" class="reflection__recirc__landing-link h4">All Reflections</a>
</div>
</div>
</div>
</aside>

<aside class="u__vspacing s__primary s__primary-clean">
<div class="u__container u__spacing connect">
<div class="row">
<div class="col-md-3 col-lg-4">
<h2 class="h1">Get Updates</h2>
</div>
<div class="col-md-9 col-lg-8">
<p class="lead">Sign up to get updates on projects, events, and new episodes of our podcast, <a href="https://thirtythousandleagues.com/">30,000 Leagues</a></p>

{% include mailchimp.html %}

</div>
</div>
</div>
</aside>

</section>
2 changes: 1 addition & 1 deletion _layouts/team.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: default
body-class: team
body-class: team presentation
---
{% comment %}

Expand Down
70 changes: 70 additions & 0 deletions _projects/2021-02-01-discounted-transit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
layout: project
title: "Can discounted transit improve mobility and well-being for low-income residents"
subtitle: As Lab staff have been detailed to support Mayor Muriel Bowser's comprehensive response to the District of Columbia's coronavirus (COVID-19) public health emergency, several Lab projects have been delayed. When the District resumes regular operations, project timelines will be updated accordingly. For more information on the public health emergency, please visit coronavirus.dc.gov.
date: 2021-02-01
aside:
partners:
- name: District Department of Transportation
link: https://ddot.dc.gov/
- name: The Abdul Lafif Jameel Poverty Action Lab (J-PAL)
link: https://jpal.org
timeline: "2019 - 2023"
status: Design
method: Randomized Evaluation
links:
- name: Open Science Framework
link: https://osf.io/wherever
- name: Washington Post
link: https://example.com
- name: WAMU
link: https://example.com
- name: WTOP
link: https://example.com
- name: The Hill
link: https://example.com
- name: "94.7"
link: https://example.com
- name: Greater Greater Washington
link: https://example.com
- name: Press Release
link: https://example.com
published: false
---

The cost of transportation presents a number of challenges for low-income Washingtonians: making it harder to get a job, maintain a job, access social services, obtain healthcare, and care for their families. Building on the district's other initiatives to address cost as a barrier to transit equity, such as the Mayor's 2019 Free Circulator bus trial and Kids Ride Free program, the District and WMATA are conducting a randomized evaluation of free and discounted transit fares. We will look at the impact of cost on low-income residents' public transit use and overall well-being. The findings may inform intiatives that make public transit more accessible to low-income residents.
{: .summary}

<!-- An image that spans the full width of the content -->
<!-- To make it span half the width, either left or right, -->
<!-- add 'class="float-left"' or 'class="float-right"' to the <figure> tag -->
<!-- <figure class="float-left"> or <figure class="float-right"> -->
<figure class="float-right">
<img class="img--rwd" src="/assets/img/reflections/reflection-example-img.jpg" alt="The first draft of the United Way 211 dashboard">
<figcaption>An early visual design mockup of what the dashboard might look like</figcaption>
</figure>

## Why is this issue important in DC?
{: .lead}

Although some DC government programs and nonprofits provide transit stipends, low-income adults in DV are not currently eligible as a group for a discounted fare. Lowering the cost of fares for low-income riders can increase public transit use and job search activity, but what does increased access to transit mean for residents' quality of life? Given that providing this type of discount is costly, it's important that DC first study its impact and cost-effectiveness before considering a wider roll-out.

## What are we doing?
{: .lead}

Although some DC government programs and nonprofits provide transit stipends, low-income adults in DV are not currently eligible as a group for a discounted fare. Lowering the cost of fares for low-income riders can increase public transit use and job search activity, but what does increased access to transit mean for residents' quality of life? Given that providing this type of discount is costly, it's important that DC first study its impact and cost-effectiveness before considering a wider roll-out.

## What have we learned?
{: .lead}

Although some DC government programs and nonprofits provide transit stipends, low-income adults in DV are not currently eligible as a group for a discounted fare. Lowering the cost of fares for low-income riders can increase public transit use and job search activity, but what does increased access to transit mean for residents' quality of life? Given that providing this type of discount is costly, it's important that DC first study its impact and cost-effectiveness before considering a wider roll-out.

## What comes next?
{: .lead}

Although some DC government programs and nonprofits provide transit stipends, low-income adults in DV are not currently eligible as a group for a discounted fare. Lowering the cost of fares for low-income riders can increase public transit use and job search activity, but what does increased access to transit mean for residents' quality of life? Given that providing this type of discount is costly, it's important that DC first study its impact and cost-effectiveness before considering a wider roll-out.

## What happened behind the scenes?
{: .lead}

Although some DC government programs and nonprofits provide transit stipends, low-income adults in DV are not currently eligible as a group for a discounted fare. Lowering the cost of fares for low-income riders can increase public transit use and job search activity, but what does increased access to transit mean for residents' quality of life? Given that providing this type of discount is costly, it's important that DC first study its impact and cost-effectiveness before considering a wider roll-out.
Loading