When the new USAspending.gov – the taxpayer site built for taxpayer needs – is launched in May 2017, users will have an open window into government spending. Users will be able to track Federal spending from congressional appropriations down to purchases and grant details -- what was bought, from whom, when, and for how much.
Treasury will be making updates and adding proposed features to the site that looks to gain feedback from the public for how best to display how the Federal government is spending taxpayer money.
- Clone the repo into your project directory:
git clone https://github.com/fedspendingtransparency/openbeta.git
- Change the current directory:
cd openbeta
- This site uses Jekyll. To run it:
jekyll serve --watch
- Open your browser to
http://localhost:4000/dev/
Page content can be found in either a YAML or Markdown file.
/_data/header.yml
- To add new items to the navigation bar, add
- text:
url:
/_data/footer.yml
/_data/home.yml
- To add a new slide to the carousel, add the following under the
carousel
line item
- usa_intro:
banner_title:
banner_label:
banner_cta:
banner_cta_link:
banner_image:
banner_image_alt_text:
- The sections below the carousel are hard coded into position but the content can be updated.
/_data/about.yml
/_data/contact.yml
/_data/concepts-landing-page.yml
- Three (3) tabs: Active, Completed, Archived
- When adding a new category, it will auto-populate onto the page
Topics are using Jekyll's Collections feature. It works in the same way as blog posts except it has its own unique properties. Each file in the _concepts
folder pertains to one topics page.
The URL is determined by the file name.
This template contains logic that results in two (2) different looks:
The page can contain tabs which are specified in the topics Markdown page through this field: tabs_required: yes
.
Tab names are created from the title:
field.
To create a new Disqus comments section, include disqus_identifier
which can be any unique ID of your choosing. In order for Disqus to enable a unique comments section per tab, the url_hash
must contain #!
before the name of the tab.
This page does not contain tabs, which is specified by tabs_required: no
.
Travis uses Bundler and the Rakefiles to run tests on pull requests. To emulate this environment locally, run
bundle install --path vendor/bundle