From d878263ba46d69511b5d10ddf2e4ff7d5610b549 Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 10:30:13 -0400 Subject: [PATCH 01/14] add pagination --- Gemfile | 1 + _config.yml | 4 ++++ index.md => index.html | 23 ++++++++++++++--------- 3 files changed, 19 insertions(+), 9 deletions(-) rename index.md => index.html (55%) diff --git a/Gemfile b/Gemfile index b918dc4..8e11ae7 100644 --- a/Gemfile +++ b/Gemfile @@ -6,4 +6,5 @@ gem "jekyll-theme-so-simple" group :jekyll_plugin do gem "jekyll-remote-theme" + gem "jekyll-paginate" end diff --git a/_config.yml b/_config.yml index e2dcd7f..91ae1c9 100644 --- a/_config.yml +++ b/_config.yml @@ -1,6 +1,7 @@ remote_theme: mmistakes/so-simple-theme plugins: - jekyll-remote-theme +- jekyll-paginate title: Life is better by bike description: ... here are the receipts @@ -33,6 +34,9 @@ defaults: layout: post share: true +paginate: 15 +paginate_path: /page-:num/ + author: name: BikeSOMa_NJ picture: diff --git a/index.md b/index.html similarity index 55% rename from index.md rename to index.html index 072e217..f69bca8 100644 --- a/index.md +++ b/index.html @@ -2,16 +2,23 @@ title: The bike research cheatsheet layout: home excerpt: Life is better by bike, here are the receipts. -permalink: / +paginate: true entries_layout: list --- -Bike and safe streets advocates have our work cut out for us. To help, here is a cheatsheet of useful resources showing -some of the many ways in which more biking improves our neighborhoods and cities. - -_Maintained by_ BikeSOMa_NJ - -# _Research topic shortcuts_ +
+

+ Bike and safe streets advocates have our work cut out for us. To help, here is a cheatsheet of useful resources + showing some of the many ways in which more biking improves our neighborhoods and cities. +

+

+ Maintained by + +

+

Research topic shortcuts

+
@@ -24,5 +31,3 @@

- -# _Latest research_ From 59e60895d317a4074b14df68c743bf928f54abc2 Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 10:40:34 -0400 Subject: [PATCH 02/14] rename ci job --- .github/workflows/ci.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1569c6d..d17cdc7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,12 +3,11 @@ on: push: jobs: - test: + linting: runs-on: ubuntu-latest steps: - uses: articulate/actions-markdownlint@v1 with: - config: - files: .markdownlint.yaml - version: 0.41.0 + config: .markdownlint.yaml + files: . From 3fcd64ff42ce49f3c45f5d972e8eb932a44b612e Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 10:44:49 -0400 Subject: [PATCH 03/14] add checkout --- .github/workflows/ci.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d17cdc7..093a447 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,7 +7,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: articulate/actions-markdownlint@v1 + - name: check out code + uses: actions/checkout@v4 + + - name: run markdown lin + uses: articulate/actions-markdownlint@v1 with: config: .markdownlint.yaml files: . + version: 0.41.0 From 4395a868d185572d9713551447445a205c1fce8c Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 10:46:24 -0400 Subject: [PATCH 04/14] keep defaults --- .github/workflows/ci.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 093a447..ea5cfa3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,9 +10,5 @@ jobs: - name: check out code uses: actions/checkout@v4 - - name: run markdown lin + - name: run markdown lint uses: articulate/actions-markdownlint@v1 - with: - config: .markdownlint.yaml - files: . - version: 0.41.0 From 295552ad66005ac1fbbcbc8ecc4f4a8a2808bd3b Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 10:51:34 -0400 Subject: [PATCH 05/14] manually specify config , --- .github/workflows/ci.yaml | 2 ++ README.md | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ea5cfa3..0a63725 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,3 +12,5 @@ jobs: - name: run markdown lint uses: articulate/actions-markdownlint@v1 + with: + config: .markdownlint.yaml diff --git a/README.md b/README.md index a350195..454396c 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,14 @@ Live site: [betterby.bike](https://betterby.bike) ## Stack -Runs on [git pages](https://pages.github.com/) using [jekyll](https://jekyllrb.com/docs/github-pages/) for styling. Keeping things as lightweight as possible. +Runs on [git pages](https://pages.github.com/) using [jekyll](https://jekyllrb.com/docs/github-pages/) for styling. +Keeping things as lightweight as possible. ## Local dev ### Running site locally -``` +```shell docker compose up ``` From 0427b22b6e2b7565e91e37ce2cd22007c839554f Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 10:55:38 -0400 Subject: [PATCH 06/14] try diff docker image --- .github/workflows/ci.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0a63725..13b3f80 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,6 +11,4 @@ jobs: uses: actions/checkout@v4 - name: run markdown lint - uses: articulate/actions-markdownlint@v1 - with: - config: .markdownlint.yaml + uses: docker://avtodev/markdown-lint:v1 From 872439e00efcff5aec7af3031fe7205ae52d131e Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 10:56:41 -0400 Subject: [PATCH 07/14] pass in md files --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 13b3f80..c8c5670 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,3 +12,5 @@ jobs: - name: run markdown lint uses: docker://avtodev/markdown-lint:v1 + with: + args: "**/*.md" From dd8887d9b7a2c4b0d45aab41270dde8e48dd1894 Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 10:58:52 -0400 Subject: [PATCH 08/14] name the config --- .github/workflows/ci.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c8c5670..20b51fb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,4 +13,7 @@ jobs: - name: run markdown lint uses: docker://avtodev/markdown-lint:v1 with: - args: "**/*.md" + args: + - "--config" + - ".markdownlint.yaml" + - "**/*.md" From 0d2d3668f434b2c5846e954bb73fadc9687d794f Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 11:01:52 -0400 Subject: [PATCH 09/14] key val --- .github/workflows/ci.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 20b51fb..081bd2b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,5 @@ jobs: - name: run markdown lint uses: docker://avtodev/markdown-lint:v1 with: - args: - - "--config" - - ".markdownlint.yaml" - - "**/*.md" + config: ".markdownlint.yaml" + args: "**/*.md" From 2feda904b19b7601f67a18584efb4791197ce6fd Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 11:05:30 -0400 Subject: [PATCH 10/14] where am i --- .github/workflows/ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 081bd2b..a246025 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,8 +10,10 @@ jobs: - name: check out code uses: actions/checkout@v4 + - run: ls -a + - name: run markdown lint uses: docker://avtodev/markdown-lint:v1 with: - config: ".markdownlint.yaml" + config: 'betterby-bike/.markdownlint.yaml' args: "**/*.md" From 20b2a46343831258c7340ce65a7fe12d432eca24 Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 11:07:03 -0400 Subject: [PATCH 11/14] silence inline html --- .github/workflows/ci.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a246025..20b27b5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,5 +15,8 @@ jobs: - name: run markdown lint uses: docker://avtodev/markdown-lint:v1 with: - config: 'betterby-bike/.markdownlint.yaml' - args: "**/*.md" + config: '.markdownlint.yaml' + args: + - "**/*.md" + - "--disable" + - "MD033" From 74e26b186d57a538c51099a85bce8a69aa0f97b8 Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 11:07:35 -0400 Subject: [PATCH 12/14] one line --- .github/workflows/ci.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 20b27b5..106416c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,4 @@ jobs: uses: docker://avtodev/markdown-lint:v1 with: config: '.markdownlint.yaml' - args: - - "**/*.md" - - "--disable" - - "MD033" + args: '**/*.md --disable MD033' From ef9d99a082997b76f3e6cdfa1e236d6fc8a0078a Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 11:15:30 -0400 Subject: [PATCH 13/14] move disable into config file --- .github/workflows/ci.yaml | 2 +- .markdownlint.yaml | 2 ++ .pre-commit-config.yaml | 3 +-- _myth-busting/bike-lanes-improve-traffic.md | 1 - _pages/contact.md | 4 +++- _posts/biz/2012-10-01-measuring-street.md | 2 +- _posts/safety/2010-12-01-cycle-track-vs-street.md | 3 ++- _posts/safety/2012-10-01-measuring-street.md | 4 ++-- .../safety/2012-12-01-route-infrastructure-bicyclist-risk.md | 3 ++- _posts/safety/2016-03-01-fhwa-first-responders.md | 5 +++-- _posts/safety/2023-09-21-bike-lanes-good-for-pedestrians.md | 4 ++-- 11 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 106416c..7de6ae1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,4 +16,4 @@ jobs: uses: docker://avtodev/markdown-lint:v1 with: config: '.markdownlint.yaml' - args: '**/*.md --disable MD033' + args: '**/*.md' diff --git a/.markdownlint.yaml b/.markdownlint.yaml index f90ed06..e3ef945 100644 --- a/.markdownlint.yaml +++ b/.markdownlint.yaml @@ -1,2 +1,4 @@ MD013: line_length: 120 + +MD033: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c1bc17..3f579d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,5 +9,4 @@ repos: hooks: - id: markdownlint args: - - "--disable" - - MD033 + - "--fix" diff --git a/_myth-busting/bike-lanes-improve-traffic.md b/_myth-busting/bike-lanes-improve-traffic.md index 71d1fbd..dd71c0e 100644 --- a/_myth-busting/bike-lanes-improve-traffic.md +++ b/_myth-busting/bike-lanes-improve-traffic.md @@ -6,7 +6,6 @@ Fact: Protected bike lanes _reduce_ car travel times ![cars go faster with PBLs](/images/img/2014-09-nyc-pbl/travel-time-columbus.png) - ![cars go faster with PBLs](/images/img/2014-09-nyc-pbl/travel-time-8th.png) _Source_: [NYC Protected Bike Lane Analysis](/images/research/2014-09-nyc-pbl-analysis.pdf), NYC DOT, 2014 diff --git a/_pages/contact.md b/_pages/contact.md index f9fa63b..a443bec 100644 --- a/_pages/contact.md +++ b/_pages/contact.md @@ -15,7 +15,9 @@ Bike SOMa NJ at either of the following. {%- else -%} {%- assign url = footer_link.url | relative_url -%} {%- endif -%} - + {%- endfor -%}
diff --git a/_posts/biz/2012-10-01-measuring-street.md b/_posts/biz/2012-10-01-measuring-street.md index bb12682..d134986 100644 --- a/_posts/biz/2012-10-01-measuring-street.md +++ b/_posts/biz/2012-10-01-measuring-street.md @@ -19,6 +19,6 @@ business, maybe even great. * retail vacancies down 49% - * rest of Manhattan vacancies down only 5% + * rest of Manhattan vacancies down only 5% _Source_: [Measuring the street](/images/research/2012-10-measuring-the-street.pdf), NYC DOT, 2012 diff --git a/_posts/safety/2010-12-01-cycle-track-vs-street.md b/_posts/safety/2010-12-01-cycle-track-vs-street.md index d90aae6..188f668 100644 --- a/_posts/safety/2010-12-01-cycle-track-vs-street.md +++ b/_posts/safety/2010-12-01-cycle-track-vs-street.md @@ -9,4 +9,5 @@ tags: Bicyclist injury risk is 28% lower on cycle tracks compared to streets without bike infrastructure. Cycle tracks also are much more desirable routes seeing 2.5x the bike volume. -_Source_: [Risk of injury for bicycling on cycle tracks versus in the street](/images/research/2010-12-risk-of-injury-on-cycle-tracks-vs-street.pdf), 2010 +_Source_: [Risk of injury for bicycling on cycle tracks versus in the street](/images/research/2010-12-risk-of-injury-on-cycle-tracks-vs-street.pdf), +2010 diff --git a/_posts/safety/2012-10-01-measuring-street.md b/_posts/safety/2012-10-01-measuring-street.md index 7db8137..ed64d1b 100644 --- a/_posts/safety/2012-10-01-measuring-street.md +++ b/_posts/safety/2012-10-01-measuring-street.md @@ -8,7 +8,7 @@ tags: Protected bike lanes decreased injuries for _all_ road users. - * 8th Ave: 35% reduction - * 9th Ave: 58% reduction +* 8th Ave: 35% reduction +* 9th Ave: 58% reduction _Source_: [Measuring the street](assets/research/2012-10-measuring-the-street.pdf), NYC DOT, 2012 diff --git a/_posts/safety/2012-12-01-route-infrastructure-bicyclist-risk.md b/_posts/safety/2012-12-01-route-infrastructure-bicyclist-risk.md index e2cdf7f..1a4f503 100644 --- a/_posts/safety/2012-12-01-route-infrastructure-bicyclist-risk.md +++ b/_posts/safety/2012-12-01-route-infrastructure-bicyclist-risk.md @@ -10,4 +10,5 @@ tags: Investigation of bicyclist injuries in Vancouver and Toronto show risk of injury is ~90% lower on streets with protected bike lanes compared to those no bike infrastructure. -_Source_: [Route Infrastructure and the Risk of Injuries to Bicyclists: A Case-Crossover Study](/images/research/2012-12-route-infrastructure-bicyclist-risk.pdf), 2012 +_Source_: [Route Infrastructure and the Risk of Injuries to Bicyclists: A Case-Crossover Study](/images/research/2012-12-route-infrastructure-bicyclist-risk.pdf), +2012 diff --git a/_posts/safety/2016-03-01-fhwa-first-responders.md b/_posts/safety/2016-03-01-fhwa-first-responders.md index 98bf728..dd94dfc 100644 --- a/_posts/safety/2016-03-01-fhwa-first-responders.md +++ b/_posts/safety/2016-03-01-fhwa-first-responders.md @@ -23,11 +23,12 @@ better accounted for. These combine to make a more easily navigable street for f Key quote ... > The new configuration is leaps and bounds safer. +> > - Brian Hopely, Police Traffic Sergeant, Ocean City Police #### Sources Road Diets and Emergency Response: Friends, Not Foes - * [pdf](/images/research/2016-fhwa-road-diet-response-times.pdf) - * [original link](https://safety.fhwa.dot.gov/road_diets/resources/pdf/fhwasa17020.pdf) +- [pdf](/images/research/2016-fhwa-road-diet-response-times.pdf) +- [original link](https://safety.fhwa.dot.gov/road_diets/resources/pdf/fhwasa17020.pdf) diff --git a/_posts/safety/2023-09-21-bike-lanes-good-for-pedestrians.md b/_posts/safety/2023-09-21-bike-lanes-good-for-pedestrians.md index c1be049..a15cb27 100644 --- a/_posts/safety/2023-09-21-bike-lanes-good-for-pedestrians.md +++ b/_posts/safety/2023-09-21-bike-lanes-good-for-pedestrians.md @@ -12,5 +12,5 @@ pedestrians the decline was 39%! #### Source - * [pdf](/images/news/2023-nycdot-bike-lanes-pedestrians.pdf) - * [original link](https://www.nyc.gov/html/dot/html/pr2023/east-ny-bike-lanes.shtml) +* [pdf](/images/news/2023-nycdot-bike-lanes-pedestrians.pdf) +* [original link](https://www.nyc.gov/html/dot/html/pr2023/east-ny-bike-lanes.shtml) From cee2696c30e03e172d89303b5e92fd62d82baff9 Mon Sep 17 00:00:00 2001 From: robhowley Date: Tue, 6 Aug 2024 11:16:10 -0400 Subject: [PATCH 14/14] remove ls a --- .github/workflows/ci.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7de6ae1..af96ecc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,8 +10,6 @@ jobs: - name: check out code uses: actions/checkout@v4 - - run: ls -a - - name: run markdown lint uses: docker://avtodev/markdown-lint:v1 with: