This repository is the container web site for https://evictionlab.org.
Clone this repo and run locally using Hugo v0.101.
hugo server -D
Note: use the
-D
flag to ensure that pages marked as "draft" are generated for development purposes. Draft pages will not be included in the staging / production build, but will be included on any Netlify builds.
Follow this branching flow when adding features or changes to the website:
- create a working branch off of the latest
development
, named relative to what you're working on.- any commits to your branch that are pushed to github will be auto deployed with a preview link at: branch-name--eviction-lab.netlify.app
- when your work is ready for preview, open pull request to merge your branch into the
development
branch- perform the necessary review of the feature, and if approved merge it into the
development
branch
- perform the necessary review of the feature, and if approved merge it into the
- when the new features in the
development
branch are ready to be deployed to the live site, mergedevelopment
intostaging
- this will trigger a build that can be previewed at https://staging.evictionlab.org/, make sure everything looks right on the staging domain and either:
- Wait for the autodeploy (daily at 3AM/3PM ET)
- manually merge
staging
toproduction
- this will trigger a build that can be previewed at https://staging.evictionlab.org/, make sure everything looks right on the staging domain and either:
When making content updates, use the CMS or use the following flow:
- create a branch off of the latest
staging
branch, named accordingly. - add your hotfix or update in the branch and then merge back into
staging
- review the change at https://staging.evictionlab.org/ and confirm everything is working as expected
- wait for the automated deploy (daily at 3AM/3PM ET) or manually merge
staging
intoproduction
- for hotfixes, cherry pick the commit containing the hotfix into the
development
branch.
The following data files are consumed by the eviction-lab repo to populate data in the /eviction-tracking page (rendered by its el-site app): site_metadata.csv, filing_data_by_site.csv, main_landing_page_data.csv, and main_landing_page_demographics.csv.
In order to keep /eviction-tracking up to date when data is updated here, this repo has Rebuild Landing Page actions that trigger rebuilds of the development, staging, and production sites of the eviction-lab repo when a commit is pushed to the corresponding branch of this repo.
The template is based on small, content-agnostic partials that can be mixed and matched. The pre-built pages showcase just a few of the possible combinations. Refer to the site/layouts/partials
folder for all available partials.
Use Hugo’s dict
functionality to feed content into partials and avoid repeating yourself and creating discrepancies.
The template uses a custom fork of Tachyons and PostCSS with cssnext and cssnano. To customize the template for your brand, refer to src/css/imports/_variables.css
where most of the important global variables like colors and spacing are stored.