From a7ef025fdfa2185d47575877646d2afcc92758c4 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Wed, 8 Jun 2016 11:45:53 -0700 Subject: [PATCH 1/7] add make targets for regional collections --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index afc25da90..86e42ae48 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,18 @@ all: db clean: rm -f $(db) +collections/states: data/_input/geo/states.csv + $(tito) -r csv --map 'd => {{id: d.abbr, title: d.name, FIPS: d.FIPS}}' $^ \ + | $(node_bin)to-jekyll-collection --format ndjson -i /dev/stdin -o _states + +collections/offshore_areas: data/_input/geo/offshore/areas.tsv + $(tito) -r tsv --map 'd => {{id: d.id, title: d.name, region: d.region.toLowerCase(), permalink: ["/offshore", d.region.toLowerCase(), d.id, ""].join("/")}}' $^ \ + | $(node_bin)to-jekyll-collection --format ndjson -i /dev/stdin -o _offshore_areas + +collections/offshore_regions: data/_input/geo/offshore/regions.tsv + $(tito) -r tsv --map 'd => {{id: d.id, title: d.region}}' $^ \ + | $(node_bin)to-jekyll-collection --format ndjson -i /dev/stdin -o _offshore_regions + site-data: \ data/jobs \ data/revenue \ From f1c171c48f057e1555669f34e862eff5024e0038 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Wed, 8 Jun 2016 11:47:00 -0700 Subject: [PATCH 2/7] add make targets for regional collections --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 86e42ae48..27d741475 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,11 @@ all: db clean: rm -f $(db) +collections/regional: \ + collections/states \ + collections/offshore_areas \ + collections/offshore_regions + collections/states: data/_input/geo/states.csv $(tito) -r csv --map 'd => {{id: d.abbr, title: d.name, FIPS: d.FIPS}}' $^ \ | $(node_bin)to-jekyll-collection --format ndjson -i /dev/stdin -o _states From 26c4e8c4b1b1454432a30a06b5246a10c5c960a2 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Wed, 8 Jun 2016 11:47:10 -0700 Subject: [PATCH 3/7] add to-jekyll-collection --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index a3f7d7bfe..6b699680d 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "tables": "github:shawnbot/tables#use-tito", "through2": "^0.6.5", "tito": "^0.6.1", + "to-jekyll-collection": "^0.1.1", "yargs": "^3.7.1" }, "scripts": { From 42136f396a900f189c2a01cfcc597d0499b1a8e3 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Wed, 8 Jun 2016 11:47:26 -0700 Subject: [PATCH 4/7] add offshore collections, nix pagegen plugin --- _config.yml | 35 ++++++--- _plugins/data_page_generator.rb | 125 -------------------------------- 2 files changed, 24 insertions(+), 136 deletions(-) delete mode 100644 _plugins/data_page_generator.rb diff --git a/_config.yml b/_config.yml index 38b613f25..22397acf8 100644 --- a/_config.yml +++ b/_config.yml @@ -55,18 +55,26 @@ collections: case-studies: output: true permalink: /case-studies/:path/ + downloads: + output: true + permalink: /downloads/:path/ explore: output: true permalink: /explore/:path/ + federal-revenue-by-company: + output: true + permalink: /explore/federal-revenue-by-company/:path/ how-it-works: output: true permalink: /how-it-works/:path/ - downloads: + offshore_areas: output: true - permalink: /downloads/:path/ - federal-revenue-by-company: + offshore_regions: output: true - permalink: /explore/federal-revenue-by-company/:path/ + permalink: /offshore/:path/ + states: + output: true + permalink: /states/:path/ defaults: - scope: @@ -75,14 +83,19 @@ defaults: values: layout: federal-revenue-by-company -page_gen: - - data: 'states' - template: 'state-page' - name: 'id' - dir: 'states' - extension: 'html' + - scope: + path: '' + collection: states + values: + layout: state-page + offshore: false -page_gen_dirs: true + - scope: + path: '' + collection: offshore_regions + values: + layout: state-page + offshore: true shruggie: - d8394cf27efbf8ae2f96ee12788eb257f4358a42 diff --git a/_plugins/data_page_generator.rb b/_plugins/data_page_generator.rb deleted file mode 100644 index dd67464ab..000000000 --- a/_plugins/data_page_generator.rb +++ /dev/null @@ -1,125 +0,0 @@ -# Generate pages from individual records in yml files -# (c) 2014-2016 Adolfo Villafiorita -# Distributed under the conditions of the MIT License - -module Jekyll - - module Sanitizer - # strip characters and whitespace to create valid filenames, also lowercase - def sanitize_filename(name) - if(name.is_a? Integer) - return name.to_s - end - return name.strip.gsub(' ', '-').gsub(/[^\w.-]/, '') - end - end - - # this class is used to tell Jekyll to generate a page - class DataPage < Page - include Sanitizer - - # - site and base are copied from other plugins: to be honest, I am not sure what they do - # - # - `index_files` specifies if we want to generate named folders (true) or not (false) - # - `dir` is the default output directory - # - `data` is the data defined in `_data.yml` of the record for which we are generating a page - # - `name` is the key in `data` which determines the output filename - # - `template` is the name of the template for generating the page - # - `extension` is the extension for the generated file - def initialize(site, base, index_files, dir, data, name, template, extension) - @site = site - @base = base - - # @dir is the directory where we want to output the page - # @name is the name of the page to generate - # - # the value of these variables changes according to whether we - # want to generate named folders or not - filename = sanitize_filename(data[name]).to_s - if index_files - @dir = dir + (index_files ? "/" + filename + "/" : "") - @name = "index." + extension.to_s - else - @dir = dir - @name = filename + "." + extension.to_s - end - - self.process(@name) - self.read_yaml(File.join(base, '_layouts'), template + ".html") - self.data['title'] = data[name] - # add all the information defined in _data for the current record to the - # current page (so that we can access it with liquid tags) - self.data['data'] = data - end - end - - class DataPagesGenerator < Generator - safe true - - # generate loops over _config.yml/page_gen invoking the DataPage - # constructor for each record for which we want to generate a page - - def generate(site) - # page_gen_dirs determines whether we want to generate index pages - # (name/index.html) or standard files (name.html). This information - # is passed to the DataPage constructor, which sets the @dir variable - # as required by this directive - index_files = site.config['page_gen_dirs'] == true - - # data contains the specification of the data for which we want to generate - # the pages (look at the README file for its specification) - data = site.config['page_gen'] - if data - data.each do |data_spec| - template = data_spec['template'] || data_spec['data'] - name = data_spec['name'] - dir = data_spec['dir'] || data_spec['data'] - extension = data_spec['extension'] || "html" - - if site.layouts.key? template - # records is the list of records defined in _data.yml - # for which we want to generate different pages - records = site.data[data_spec['data']] - if records - records.each do |record| - site.pages << DataPage.new(site, site.source, index_files, dir, record, name, template, extension) - end - else - puts "no data for '#{data_spec['data']}'" - end - else - puts "error. could not find template #{template}" if not site.layouts.key? template - end - end - end - end - end - - module DataPageLinkGenerator - include Sanitizer - - # use it like this: {{input | datapage_url: dir}} - # to generate a link to a data_page. - # - # the filter is smart enough to generate different link styles - # according to the data_page-dirs directive ... - # - # ... however, the filter is not smart enough to support different - # extensions for filenames. - # - # Thus, if you use the `extension` feature of this plugin, you - # need to generate the links by hand - def datapage_url(input, dir) - @gen_dir = Jekyll.configuration({})['page_gen-dirs'] - if @gen_dir then - dir + "/" + sanitize_filename(input) + "/index.html" - else - dir + "/" + sanitize_filename(input) + ".html" - end - end - end - -end - -Liquid::Template.register_filter(Jekyll::DataPageLinkGenerator) - From 70bb49543fc56003705c5b7904c286b081eaca48 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Wed, 8 Jun 2016 11:48:04 -0700 Subject: [PATCH 5/7] add regional collections per #1476 --- _offshore_areas/ALA.md | 6 ++++++ _offshore_areas/ALB.md | 6 ++++++ _offshore_areas/BFT.md | 6 ++++++ _offshore_areas/BOW.md | 6 ++++++ _offshore_areas/CEC.md | 6 ++++++ _offshore_areas/CGM.md | 6 ++++++ _offshore_areas/CHU.md | 6 ++++++ _offshore_areas/COK.md | 6 ++++++ _offshore_areas/EGM.md | 6 ++++++ _offshore_areas/FLS.md | 6 ++++++ _offshore_areas/GEO.md | 6 ++++++ _offshore_areas/GOA.md | 6 ++++++ _offshore_areas/HOP.md | 6 ++++++ _offshore_areas/KOD.md | 6 ++++++ _offshore_areas/MAT.md | 6 ++++++ _offshore_areas/MDA.md | 6 ++++++ _offshore_areas/NAL.md | 6 ++++++ _offshore_areas/NAV.md | 6 ++++++ _offshore_areas/NOA.md | 6 ++++++ _offshore_areas/NOC.md | 6 ++++++ _offshore_areas/NOR.md | 6 ++++++ _offshore_areas/SHU.md | 6 ++++++ _offshore_areas/SOA.md | 6 ++++++ _offshore_areas/SOC.md | 6 ++++++ _offshore_areas/WAO.md | 6 ++++++ _offshore_areas/WGM.md | 6 ++++++ _offshore_regions/alaska.md | 4 ++++ _offshore_regions/atlantic.md | 4 ++++ _offshore_regions/gulf.md | 4 ++++ _offshore_regions/pacific.md | 4 ++++ _states/AK.md | 5 +++++ _states/AL.md | 5 +++++ _states/AR.md | 5 +++++ _states/AZ.md | 5 +++++ _states/CA.md | 5 +++++ _states/CO.md | 5 +++++ _states/CT.md | 5 +++++ _states/DC.md | 5 +++++ _states/DE.md | 5 +++++ _states/FL.md | 5 +++++ _states/GA.md | 5 +++++ _states/HI.md | 5 +++++ _states/IA.md | 5 +++++ _states/ID.md | 5 +++++ _states/IL.md | 5 +++++ _states/IN.md | 5 +++++ _states/KS.md | 5 +++++ _states/KY.md | 5 +++++ _states/LA.md | 5 +++++ _states/MA.md | 5 +++++ _states/MD.md | 5 +++++ _states/ME.md | 5 +++++ _states/MI.md | 5 +++++ _states/MN.md | 5 +++++ _states/MO.md | 5 +++++ _states/MS.md | 5 +++++ _states/MT.md | 5 +++++ _states/NC.md | 5 +++++ _states/ND.md | 5 +++++ _states/NE.md | 5 +++++ _states/NH.md | 5 +++++ _states/NJ.md | 5 +++++ _states/NM.md | 5 +++++ _states/NV.md | 5 +++++ _states/NY.md | 5 +++++ _states/OH.md | 5 +++++ _states/OK.md | 5 +++++ _states/OR.md | 5 +++++ _states/PA.md | 5 +++++ _states/RI.md | 5 +++++ _states/SC.md | 5 +++++ _states/SD.md | 5 +++++ _states/TN.md | 5 +++++ _states/TX.md | 5 +++++ _states/UT.md | 5 +++++ _states/VA.md | 5 +++++ _states/VT.md | 5 +++++ _states/WA.md | 5 +++++ _states/WI.md | 5 +++++ _states/WV.md | 5 +++++ _states/WY.md | 5 +++++ 81 files changed, 427 insertions(+) create mode 100644 _offshore_areas/ALA.md create mode 100644 _offshore_areas/ALB.md create mode 100644 _offshore_areas/BFT.md create mode 100644 _offshore_areas/BOW.md create mode 100644 _offshore_areas/CEC.md create mode 100644 _offshore_areas/CGM.md create mode 100644 _offshore_areas/CHU.md create mode 100644 _offshore_areas/COK.md create mode 100644 _offshore_areas/EGM.md create mode 100644 _offshore_areas/FLS.md create mode 100644 _offshore_areas/GEO.md create mode 100644 _offshore_areas/GOA.md create mode 100644 _offshore_areas/HOP.md create mode 100644 _offshore_areas/KOD.md create mode 100644 _offshore_areas/MAT.md create mode 100644 _offshore_areas/MDA.md create mode 100644 _offshore_areas/NAL.md create mode 100644 _offshore_areas/NAV.md create mode 100644 _offshore_areas/NOA.md create mode 100644 _offshore_areas/NOC.md create mode 100644 _offshore_areas/NOR.md create mode 100644 _offshore_areas/SHU.md create mode 100644 _offshore_areas/SOA.md create mode 100644 _offshore_areas/SOC.md create mode 100644 _offshore_areas/WAO.md create mode 100644 _offshore_areas/WGM.md create mode 100644 _offshore_regions/alaska.md create mode 100644 _offshore_regions/atlantic.md create mode 100644 _offshore_regions/gulf.md create mode 100644 _offshore_regions/pacific.md create mode 100644 _states/AK.md create mode 100644 _states/AL.md create mode 100644 _states/AR.md create mode 100644 _states/AZ.md create mode 100644 _states/CA.md create mode 100644 _states/CO.md create mode 100644 _states/CT.md create mode 100644 _states/DC.md create mode 100644 _states/DE.md create mode 100644 _states/FL.md create mode 100644 _states/GA.md create mode 100644 _states/HI.md create mode 100644 _states/IA.md create mode 100644 _states/ID.md create mode 100644 _states/IL.md create mode 100644 _states/IN.md create mode 100644 _states/KS.md create mode 100644 _states/KY.md create mode 100644 _states/LA.md create mode 100644 _states/MA.md create mode 100644 _states/MD.md create mode 100644 _states/ME.md create mode 100644 _states/MI.md create mode 100644 _states/MN.md create mode 100644 _states/MO.md create mode 100644 _states/MS.md create mode 100644 _states/MT.md create mode 100644 _states/NC.md create mode 100644 _states/ND.md create mode 100644 _states/NE.md create mode 100644 _states/NH.md create mode 100644 _states/NJ.md create mode 100644 _states/NM.md create mode 100644 _states/NV.md create mode 100644 _states/NY.md create mode 100644 _states/OH.md create mode 100644 _states/OK.md create mode 100644 _states/OR.md create mode 100644 _states/PA.md create mode 100644 _states/RI.md create mode 100644 _states/SC.md create mode 100644 _states/SD.md create mode 100644 _states/TN.md create mode 100644 _states/TX.md create mode 100644 _states/UT.md create mode 100644 _states/VA.md create mode 100644 _states/VT.md create mode 100644 _states/WA.md create mode 100644 _states/WI.md create mode 100644 _states/WV.md create mode 100644 _states/WY.md diff --git a/_offshore_areas/ALA.md b/_offshore_areas/ALA.md new file mode 100644 index 000000000..e42458998 --- /dev/null +++ b/_offshore_areas/ALA.md @@ -0,0 +1,6 @@ +--- +id: ALA +title: Aleutian Arc +region: alaska +permalink: /offshore/alaska/ALA/ +--- diff --git a/_offshore_areas/ALB.md b/_offshore_areas/ALB.md new file mode 100644 index 000000000..b08e978e1 --- /dev/null +++ b/_offshore_areas/ALB.md @@ -0,0 +1,6 @@ +--- +id: ALB +title: Aleutian Basin +region: alaska +permalink: /offshore/alaska/ALB/ +--- diff --git a/_offshore_areas/BFT.md b/_offshore_areas/BFT.md new file mode 100644 index 000000000..0c971875a --- /dev/null +++ b/_offshore_areas/BFT.md @@ -0,0 +1,6 @@ +--- +id: BFT +title: Beaufort Sea +region: alaska +permalink: /offshore/alaska/BFT/ +--- diff --git a/_offshore_areas/BOW.md b/_offshore_areas/BOW.md new file mode 100644 index 000000000..4658fb6a3 --- /dev/null +++ b/_offshore_areas/BOW.md @@ -0,0 +1,6 @@ +--- +id: BOW +title: Bowers Basin +region: alaska +permalink: /offshore/alaska/BOW/ +--- diff --git a/_offshore_areas/CEC.md b/_offshore_areas/CEC.md new file mode 100644 index 000000000..e4f2308c3 --- /dev/null +++ b/_offshore_areas/CEC.md @@ -0,0 +1,6 @@ +--- +id: CEC +title: Central California +region: pacific +permalink: /offshore/pacific/CEC/ +--- diff --git a/_offshore_areas/CGM.md b/_offshore_areas/CGM.md new file mode 100644 index 000000000..2322f94b0 --- /dev/null +++ b/_offshore_areas/CGM.md @@ -0,0 +1,6 @@ +--- +id: CGM +title: Central Gulf of Mexico +region: gulf +permalink: /offshore/gulf/CGM/ +--- diff --git a/_offshore_areas/CHU.md b/_offshore_areas/CHU.md new file mode 100644 index 000000000..116b8dfcc --- /dev/null +++ b/_offshore_areas/CHU.md @@ -0,0 +1,6 @@ +--- +id: CHU +title: Chukchi Sea +region: alaska +permalink: /offshore/alaska/CHU/ +--- diff --git a/_offshore_areas/COK.md b/_offshore_areas/COK.md new file mode 100644 index 000000000..0f5bf2710 --- /dev/null +++ b/_offshore_areas/COK.md @@ -0,0 +1,6 @@ +--- +id: COK +title: Cook Inlet +region: alaska +permalink: /offshore/alaska/COK/ +--- diff --git a/_offshore_areas/EGM.md b/_offshore_areas/EGM.md new file mode 100644 index 000000000..42cdffb92 --- /dev/null +++ b/_offshore_areas/EGM.md @@ -0,0 +1,6 @@ +--- +id: EGM +title: Eastern Gulf of Mexico +region: gulf +permalink: /offshore/gulf/EGM/ +--- diff --git a/_offshore_areas/FLS.md b/_offshore_areas/FLS.md new file mode 100644 index 000000000..b999e46bb --- /dev/null +++ b/_offshore_areas/FLS.md @@ -0,0 +1,6 @@ +--- +id: FLS +title: Florida Straits +region: atlantic +permalink: /offshore/atlantic/FLS/ +--- diff --git a/_offshore_areas/GEO.md b/_offshore_areas/GEO.md new file mode 100644 index 000000000..2636de7a1 --- /dev/null +++ b/_offshore_areas/GEO.md @@ -0,0 +1,6 @@ +--- +id: GEO +title: St. George Basin +region: alaska +permalink: /offshore/alaska/GEO/ +--- diff --git a/_offshore_areas/GOA.md b/_offshore_areas/GOA.md new file mode 100644 index 000000000..3c370578c --- /dev/null +++ b/_offshore_areas/GOA.md @@ -0,0 +1,6 @@ +--- +id: GOA +title: Gulf of Alaska +region: alaska +permalink: /offshore/alaska/GOA/ +--- diff --git a/_offshore_areas/HOP.md b/_offshore_areas/HOP.md new file mode 100644 index 000000000..78e570f89 --- /dev/null +++ b/_offshore_areas/HOP.md @@ -0,0 +1,6 @@ +--- +id: HOP +title: Hope Basin +region: alaska +permalink: /offshore/alaska/HOP/ +--- diff --git a/_offshore_areas/KOD.md b/_offshore_areas/KOD.md new file mode 100644 index 000000000..775c131f3 --- /dev/null +++ b/_offshore_areas/KOD.md @@ -0,0 +1,6 @@ +--- +id: KOD +title: Kodiak +region: alaska +permalink: /offshore/alaska/KOD/ +--- diff --git a/_offshore_areas/MAT.md b/_offshore_areas/MAT.md new file mode 100644 index 000000000..2243b0b2b --- /dev/null +++ b/_offshore_areas/MAT.md @@ -0,0 +1,6 @@ +--- +id: MAT +title: St. Matthew-Hall +region: alaska +permalink: /offshore/alaska/MAT/ +--- diff --git a/_offshore_areas/MDA.md b/_offshore_areas/MDA.md new file mode 100644 index 000000000..ef49d488a --- /dev/null +++ b/_offshore_areas/MDA.md @@ -0,0 +1,6 @@ +--- +id: MDA +title: Mid Atlantic +region: atlantic +permalink: /offshore/atlantic/MDA/ +--- diff --git a/_offshore_areas/NAL.md b/_offshore_areas/NAL.md new file mode 100644 index 000000000..48f776b28 --- /dev/null +++ b/_offshore_areas/NAL.md @@ -0,0 +1,6 @@ +--- +id: NAL +title: North Aleutian Basin +region: alaska +permalink: /offshore/alaska/NAL/ +--- diff --git a/_offshore_areas/NAV.md b/_offshore_areas/NAV.md new file mode 100644 index 000000000..e55673c63 --- /dev/null +++ b/_offshore_areas/NAV.md @@ -0,0 +1,6 @@ +--- +id: NAV +title: Navarin Basin +region: alaska +permalink: /offshore/alaska/NAV/ +--- diff --git a/_offshore_areas/NOA.md b/_offshore_areas/NOA.md new file mode 100644 index 000000000..5068e56ab --- /dev/null +++ b/_offshore_areas/NOA.md @@ -0,0 +1,6 @@ +--- +id: NOA +title: North Atlantic +region: atlantic +permalink: /offshore/atlantic/NOA/ +--- diff --git a/_offshore_areas/NOC.md b/_offshore_areas/NOC.md new file mode 100644 index 000000000..254d09076 --- /dev/null +++ b/_offshore_areas/NOC.md @@ -0,0 +1,6 @@ +--- +id: NOC +title: Northern California +region: pacific +permalink: /offshore/pacific/NOC/ +--- diff --git a/_offshore_areas/NOR.md b/_offshore_areas/NOR.md new file mode 100644 index 000000000..279728fd3 --- /dev/null +++ b/_offshore_areas/NOR.md @@ -0,0 +1,6 @@ +--- +id: NOR +title: Norton Basin +region: alaska +permalink: /offshore/alaska/NOR/ +--- diff --git a/_offshore_areas/SHU.md b/_offshore_areas/SHU.md new file mode 100644 index 000000000..35fb81b37 --- /dev/null +++ b/_offshore_areas/SHU.md @@ -0,0 +1,6 @@ +--- +id: SHU +title: Shumagin +region: alaska +permalink: /offshore/alaska/SHU/ +--- diff --git a/_offshore_areas/SOA.md b/_offshore_areas/SOA.md new file mode 100644 index 000000000..0b4d8c45d --- /dev/null +++ b/_offshore_areas/SOA.md @@ -0,0 +1,6 @@ +--- +id: SOA +title: South Atlantic +region: atlantic +permalink: /offshore/atlantic/SOA/ +--- diff --git a/_offshore_areas/SOC.md b/_offshore_areas/SOC.md new file mode 100644 index 000000000..06faa57b1 --- /dev/null +++ b/_offshore_areas/SOC.md @@ -0,0 +1,6 @@ +--- +id: SOC +title: Southern California +region: pacific +permalink: /offshore/pacific/SOC/ +--- diff --git a/_offshore_areas/WAO.md b/_offshore_areas/WAO.md new file mode 100644 index 000000000..079328dbb --- /dev/null +++ b/_offshore_areas/WAO.md @@ -0,0 +1,6 @@ +--- +id: WAO +title: Washington-Oregon +region: pacific +permalink: /offshore/pacific/WAO/ +--- diff --git a/_offshore_areas/WGM.md b/_offshore_areas/WGM.md new file mode 100644 index 000000000..091ea31f7 --- /dev/null +++ b/_offshore_areas/WGM.md @@ -0,0 +1,6 @@ +--- +id: WGM +title: Western Gulf of Mexico +region: gulf +permalink: /offshore/gulf/WGM/ +--- diff --git a/_offshore_regions/alaska.md b/_offshore_regions/alaska.md new file mode 100644 index 000000000..2f03abb78 --- /dev/null +++ b/_offshore_regions/alaska.md @@ -0,0 +1,4 @@ +--- +id: alaska +title: Alaska +--- diff --git a/_offshore_regions/atlantic.md b/_offshore_regions/atlantic.md new file mode 100644 index 000000000..2566f55d7 --- /dev/null +++ b/_offshore_regions/atlantic.md @@ -0,0 +1,4 @@ +--- +id: atlantic +title: Atlantic +--- diff --git a/_offshore_regions/gulf.md b/_offshore_regions/gulf.md new file mode 100644 index 000000000..9d276bb2e --- /dev/null +++ b/_offshore_regions/gulf.md @@ -0,0 +1,4 @@ +--- +id: gulf +title: Gulf +--- diff --git a/_offshore_regions/pacific.md b/_offshore_regions/pacific.md new file mode 100644 index 000000000..9e714e486 --- /dev/null +++ b/_offshore_regions/pacific.md @@ -0,0 +1,4 @@ +--- +id: pacific +title: Pacific +--- diff --git a/_states/AK.md b/_states/AK.md new file mode 100644 index 000000000..1e9879620 --- /dev/null +++ b/_states/AK.md @@ -0,0 +1,5 @@ +--- +id: AK +title: Alaska +FIPS: '02' +--- diff --git a/_states/AL.md b/_states/AL.md new file mode 100644 index 000000000..159b4bc8e --- /dev/null +++ b/_states/AL.md @@ -0,0 +1,5 @@ +--- +id: AL +title: Alabama +FIPS: '01' +--- diff --git a/_states/AR.md b/_states/AR.md new file mode 100644 index 000000000..3280ae7f0 --- /dev/null +++ b/_states/AR.md @@ -0,0 +1,5 @@ +--- +id: AR +title: Arkansas +FIPS: '05' +--- diff --git a/_states/AZ.md b/_states/AZ.md new file mode 100644 index 000000000..23cc06650 --- /dev/null +++ b/_states/AZ.md @@ -0,0 +1,5 @@ +--- +id: AZ +title: Arizona +FIPS: '04' +--- diff --git a/_states/CA.md b/_states/CA.md new file mode 100644 index 000000000..1f76790ed --- /dev/null +++ b/_states/CA.md @@ -0,0 +1,5 @@ +--- +id: CA +title: California +FIPS: '06' +--- diff --git a/_states/CO.md b/_states/CO.md new file mode 100644 index 000000000..de0c3c9ff --- /dev/null +++ b/_states/CO.md @@ -0,0 +1,5 @@ +--- +id: CO +title: Colorado +FIPS: 08 +--- diff --git a/_states/CT.md b/_states/CT.md new file mode 100644 index 000000000..a1e6f4deb --- /dev/null +++ b/_states/CT.md @@ -0,0 +1,5 @@ +--- +id: CT +title: Connecticut +FIPS: 09 +--- diff --git a/_states/DC.md b/_states/DC.md new file mode 100644 index 000000000..e983832f0 --- /dev/null +++ b/_states/DC.md @@ -0,0 +1,5 @@ +--- +id: DC +title: District of Columbia +FIPS: '11' +--- diff --git a/_states/DE.md b/_states/DE.md new file mode 100644 index 000000000..4d2042796 --- /dev/null +++ b/_states/DE.md @@ -0,0 +1,5 @@ +--- +id: DE +title: Delaware +FIPS: '10' +--- diff --git a/_states/FL.md b/_states/FL.md new file mode 100644 index 000000000..6b34e962d --- /dev/null +++ b/_states/FL.md @@ -0,0 +1,5 @@ +--- +id: FL +title: Florida +FIPS: '12' +--- diff --git a/_states/GA.md b/_states/GA.md new file mode 100644 index 000000000..a2ebf5ffe --- /dev/null +++ b/_states/GA.md @@ -0,0 +1,5 @@ +--- +id: GA +title: Georgia +FIPS: '13' +--- diff --git a/_states/HI.md b/_states/HI.md new file mode 100644 index 000000000..ba22ad6b0 --- /dev/null +++ b/_states/HI.md @@ -0,0 +1,5 @@ +--- +id: HI +title: Hawaii +FIPS: '15' +--- diff --git a/_states/IA.md b/_states/IA.md new file mode 100644 index 000000000..6f30aa560 --- /dev/null +++ b/_states/IA.md @@ -0,0 +1,5 @@ +--- +id: IA +title: Iowa +FIPS: '19' +--- diff --git a/_states/ID.md b/_states/ID.md new file mode 100644 index 000000000..aa6277b3f --- /dev/null +++ b/_states/ID.md @@ -0,0 +1,5 @@ +--- +id: ID +title: Idaho +FIPS: '16' +--- diff --git a/_states/IL.md b/_states/IL.md new file mode 100644 index 000000000..57653b396 --- /dev/null +++ b/_states/IL.md @@ -0,0 +1,5 @@ +--- +id: IL +title: Illinois +FIPS: '17' +--- diff --git a/_states/IN.md b/_states/IN.md new file mode 100644 index 000000000..1af78b17a --- /dev/null +++ b/_states/IN.md @@ -0,0 +1,5 @@ +--- +id: IN +title: Indiana +FIPS: '18' +--- diff --git a/_states/KS.md b/_states/KS.md new file mode 100644 index 000000000..48d02eb09 --- /dev/null +++ b/_states/KS.md @@ -0,0 +1,5 @@ +--- +id: KS +title: Kansas +FIPS: '20' +--- diff --git a/_states/KY.md b/_states/KY.md new file mode 100644 index 000000000..218567992 --- /dev/null +++ b/_states/KY.md @@ -0,0 +1,5 @@ +--- +id: KY +title: Kentucky +FIPS: '21' +--- diff --git a/_states/LA.md b/_states/LA.md new file mode 100644 index 000000000..6f62b13a8 --- /dev/null +++ b/_states/LA.md @@ -0,0 +1,5 @@ +--- +id: LA +title: Louisiana +FIPS: '22' +--- diff --git a/_states/MA.md b/_states/MA.md new file mode 100644 index 000000000..e61f2c84b --- /dev/null +++ b/_states/MA.md @@ -0,0 +1,5 @@ +--- +id: MA +title: Massachusetts +FIPS: '25' +--- diff --git a/_states/MD.md b/_states/MD.md new file mode 100644 index 000000000..47c7d297c --- /dev/null +++ b/_states/MD.md @@ -0,0 +1,5 @@ +--- +id: MD +title: Maryland +FIPS: '24' +--- diff --git a/_states/ME.md b/_states/ME.md new file mode 100644 index 000000000..4a6703626 --- /dev/null +++ b/_states/ME.md @@ -0,0 +1,5 @@ +--- +id: ME +title: Maine +FIPS: '23' +--- diff --git a/_states/MI.md b/_states/MI.md new file mode 100644 index 000000000..290dc9a00 --- /dev/null +++ b/_states/MI.md @@ -0,0 +1,5 @@ +--- +id: MI +title: Michigan +FIPS: '26' +--- diff --git a/_states/MN.md b/_states/MN.md new file mode 100644 index 000000000..95460ad00 --- /dev/null +++ b/_states/MN.md @@ -0,0 +1,5 @@ +--- +id: MN +title: Minnesota +FIPS: '27' +--- diff --git a/_states/MO.md b/_states/MO.md new file mode 100644 index 000000000..1d6fd4313 --- /dev/null +++ b/_states/MO.md @@ -0,0 +1,5 @@ +--- +id: MO +title: Missouri +FIPS: '29' +--- diff --git a/_states/MS.md b/_states/MS.md new file mode 100644 index 000000000..03a455137 --- /dev/null +++ b/_states/MS.md @@ -0,0 +1,5 @@ +--- +id: MS +title: Mississippi +FIPS: '28' +--- diff --git a/_states/MT.md b/_states/MT.md new file mode 100644 index 000000000..6b955d168 --- /dev/null +++ b/_states/MT.md @@ -0,0 +1,5 @@ +--- +id: MT +title: Montana +FIPS: '30' +--- diff --git a/_states/NC.md b/_states/NC.md new file mode 100644 index 000000000..b75b65163 --- /dev/null +++ b/_states/NC.md @@ -0,0 +1,5 @@ +--- +id: NC +title: North Carolina +FIPS: '37' +--- diff --git a/_states/ND.md b/_states/ND.md new file mode 100644 index 000000000..271e5c97d --- /dev/null +++ b/_states/ND.md @@ -0,0 +1,5 @@ +--- +id: ND +title: North Dakota +FIPS: '38' +--- diff --git a/_states/NE.md b/_states/NE.md new file mode 100644 index 000000000..2cb1d19a6 --- /dev/null +++ b/_states/NE.md @@ -0,0 +1,5 @@ +--- +id: NE +title: Nebraska +FIPS: '31' +--- diff --git a/_states/NH.md b/_states/NH.md new file mode 100644 index 000000000..5cbe20b0b --- /dev/null +++ b/_states/NH.md @@ -0,0 +1,5 @@ +--- +id: NH +title: New Hampshire +FIPS: '33' +--- diff --git a/_states/NJ.md b/_states/NJ.md new file mode 100644 index 000000000..5ad7596c3 --- /dev/null +++ b/_states/NJ.md @@ -0,0 +1,5 @@ +--- +id: NJ +title: New Jersey +FIPS: '34' +--- diff --git a/_states/NM.md b/_states/NM.md new file mode 100644 index 000000000..c5928664c --- /dev/null +++ b/_states/NM.md @@ -0,0 +1,5 @@ +--- +id: NM +title: New Mexico +FIPS: '35' +--- diff --git a/_states/NV.md b/_states/NV.md new file mode 100644 index 000000000..b112205b3 --- /dev/null +++ b/_states/NV.md @@ -0,0 +1,5 @@ +--- +id: NV +title: Nevada +FIPS: '32' +--- diff --git a/_states/NY.md b/_states/NY.md new file mode 100644 index 000000000..815987492 --- /dev/null +++ b/_states/NY.md @@ -0,0 +1,5 @@ +--- +id: NY +title: New York +FIPS: '36' +--- diff --git a/_states/OH.md b/_states/OH.md new file mode 100644 index 000000000..478df6b90 --- /dev/null +++ b/_states/OH.md @@ -0,0 +1,5 @@ +--- +id: OH +title: Ohio +FIPS: '39' +--- diff --git a/_states/OK.md b/_states/OK.md new file mode 100644 index 000000000..c16a319bb --- /dev/null +++ b/_states/OK.md @@ -0,0 +1,5 @@ +--- +id: OK +title: Oklahoma +FIPS: '40' +--- diff --git a/_states/OR.md b/_states/OR.md new file mode 100644 index 000000000..0ad7dec93 --- /dev/null +++ b/_states/OR.md @@ -0,0 +1,5 @@ +--- +id: OR +title: Oregon +FIPS: '41' +--- diff --git a/_states/PA.md b/_states/PA.md new file mode 100644 index 000000000..e45d308f0 --- /dev/null +++ b/_states/PA.md @@ -0,0 +1,5 @@ +--- +id: PA +title: Pennsylvania +FIPS: '42' +--- diff --git a/_states/RI.md b/_states/RI.md new file mode 100644 index 000000000..a05d11b2a --- /dev/null +++ b/_states/RI.md @@ -0,0 +1,5 @@ +--- +id: RI +title: Rhode Island +FIPS: '44' +--- diff --git a/_states/SC.md b/_states/SC.md new file mode 100644 index 000000000..feaf1f56d --- /dev/null +++ b/_states/SC.md @@ -0,0 +1,5 @@ +--- +id: SC +title: South Carolina +FIPS: '45' +--- diff --git a/_states/SD.md b/_states/SD.md new file mode 100644 index 000000000..5afb128ce --- /dev/null +++ b/_states/SD.md @@ -0,0 +1,5 @@ +--- +id: SD +title: South Dakota +FIPS: '46' +--- diff --git a/_states/TN.md b/_states/TN.md new file mode 100644 index 000000000..79e638c18 --- /dev/null +++ b/_states/TN.md @@ -0,0 +1,5 @@ +--- +id: TN +title: Tennessee +FIPS: '47' +--- diff --git a/_states/TX.md b/_states/TX.md new file mode 100644 index 000000000..33d935577 --- /dev/null +++ b/_states/TX.md @@ -0,0 +1,5 @@ +--- +id: TX +title: Texas +FIPS: '48' +--- diff --git a/_states/UT.md b/_states/UT.md new file mode 100644 index 000000000..eb0b8d82f --- /dev/null +++ b/_states/UT.md @@ -0,0 +1,5 @@ +--- +id: UT +title: Utah +FIPS: '49' +--- diff --git a/_states/VA.md b/_states/VA.md new file mode 100644 index 000000000..2b851b584 --- /dev/null +++ b/_states/VA.md @@ -0,0 +1,5 @@ +--- +id: VA +title: Virginia +FIPS: '51' +--- diff --git a/_states/VT.md b/_states/VT.md new file mode 100644 index 000000000..5d07864eb --- /dev/null +++ b/_states/VT.md @@ -0,0 +1,5 @@ +--- +id: VT +title: Vermont +FIPS: '50' +--- diff --git a/_states/WA.md b/_states/WA.md new file mode 100644 index 000000000..6bb0d3be8 --- /dev/null +++ b/_states/WA.md @@ -0,0 +1,5 @@ +--- +id: WA +title: Washington +FIPS: '53' +--- diff --git a/_states/WI.md b/_states/WI.md new file mode 100644 index 000000000..ac899034c --- /dev/null +++ b/_states/WI.md @@ -0,0 +1,5 @@ +--- +id: WI +title: Wisconsin +FIPS: '55' +--- diff --git a/_states/WV.md b/_states/WV.md new file mode 100644 index 000000000..0352b4723 --- /dev/null +++ b/_states/WV.md @@ -0,0 +1,5 @@ +--- +id: WV +title: West Virginia +FIPS: '54' +--- diff --git a/_states/WY.md b/_states/WY.md new file mode 100644 index 000000000..99f80c2e7 --- /dev/null +++ b/_states/WY.md @@ -0,0 +1,5 @@ +--- +id: WY +title: Wyoming +FIPS: '56' +--- From 5b826a5c30f96c7987e16af0d6f6b77e6465ac9b Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Wed, 8 Jun 2016 11:48:47 -0700 Subject: [PATCH 6/7] don't build offshore areas + regions for now --- _config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 22397acf8..446e36a22 100644 --- a/_config.yml +++ b/_config.yml @@ -68,9 +68,9 @@ collections: output: true permalink: /how-it-works/:path/ offshore_areas: - output: true + output: false offshore_regions: - output: true + output: false permalink: /offshore/:path/ states: output: true From 91ae75af9f95472c9746e2438857b1852bfd17c9 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Wed, 8 Jun 2016 11:59:31 -0700 Subject: [PATCH 7/7] point at the right name and id --- _layouts/state-page.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_layouts/state-page.html b/_layouts/state-page.html index b146a3e38..f645e4d6f 100644 --- a/_layouts/state-page.html +++ b/_layouts/state-page.html @@ -21,8 +21,8 @@ title: Disbursements --- -{% assign state_name = page.data.name %} -{% assign state_id = page.data.id %} +{% assign state_name = page.title %} +{% assign state_id = page.id %} {% assign year = '2013' %} {% assign oilgas = 'Oil & Gas (Non-Royalty)' %} {% assign commodity_names = site.data.commodity_names %}