Skip to content

Commit 4e31944

Browse files
committed
fix: use relative shortcode links
1 parent aa62bc6 commit 4e31944

File tree

3 files changed

+22
-30
lines changed

3 files changed

+22
-30
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ In order to convert the Rmd files to HTML files for Hugo you also need to:
8686
- `local=TRUE` similar to `-D` to process draft files
8787
- `run_hugo=FALSE` to manually run hugo
8888
- `build_rmd=TRUE` force a (re)build of the Rmd pages
89+
1. Run blogdown to convert a single file to HTML: `Rscript -e 'blogdown::build_site(local=TRUE, run_hugo=FALSE, build_rmd="content/blog/<NAME>.Rmd")'`
8990
1. Alternatively, run `npm run build:blog`
9091
1. Run Hugo server as usual
9192

content/blog/2021-01-22-holiday-surveys.Rmd

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ tags:
99
summary: |
1010
How did Thanksgiving and Christmas affect travel, social, and preventative
1111
behaviors in the USA during the COVID-19 pandemic?
12+
heroImage: /blog/images/blog-lg-img_hello-world.jpg
13+
heroImageThumb: /blog/images/blog-thumb-img_hello-world.jpg
1214
authors:
1315
- lmorinishi
1416
- kbarkume
@@ -36,21 +38,17 @@ gatherings during the holidays and a number of states expanded COVID-19
3638
restrictions to prevent further escalation in cases.
3739
[Reports](https://www.washingtonpost.com/travel/2020/12/21/christmas-flights-cdc-restrictions-covid/)
3840
from airlines suggest air travel was up significantly during the holiday season,
39-
but [Delphi’s COVID-19 Surveys](https://delphi.cmu.edu/covidcast/surveys/) can
41+
but `r blogdown::shortcode("reflink", "surveys", "Delphi’s COVID-19 Surveys")` can
4042
provide a broader picture of the travel Americans took during the holiday
4143
season. In taking greater risks with travel, did Americans change their
4244
behaviors in other preventative measures like mask wearing during this time?
4345

4446
For the following analyses, we use publicly available aggregate data from the
45-
[COVIDcast Epidata
46-
API](https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html) that have
47-
been [weighted to better match state
48-
demographics](https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/fb-survey.html#survey-weighting).
47+
`r blogdown::shortcode("apireflink", "api/covidcast.html", "COVIDcast Epidata API")` that have
48+
been `r blogdown::shortcode("apireflink", "api/covidcast-signals/fb-survey.html#survey-weighting", "weighted to better match state demographics")`.
4949
Here we focus on behavioral signals which have been available since September 8,
50-
2020, when [Wave 4 of the survey was
51-
deployed](https://delphi.cmu.edu/blog/2020/10/12/new-and-improved-covid-symptom-survey-tracks-testing-and-mask-wearing/),
52-
and are now visible in the [Delphi Group’s survey
53-
dashboard](https://delphi.cmu.edu/covidcast/survey-results/). Additionally, we
50+
2020, when `r blogdown::shortcode("reflink", "2020-10-06-survey-wave-4", "Wave 4 of the survey was deployed")`,
51+
and are now visible in the `r blogdown::shortcode("reflink", "survey-results", "Delphi Group’s survey dashboard")`. Additionally, we
5452
only consider data after November 11, 2020 to avoid any major effects due to the
5553
US election on November 3. All data below will be based on 7-day rolling
5654
averages of survey responses.
@@ -395,15 +393,13 @@ Since April 2020, Carnegie Mellon University’s Delphi Group and Facebook’s D
395393
for Good have partnered to conduct large-scale daily surveys to monitor the
396394
spread and impact of the COVID-19 pandemic in the United States. To date, the
397395
survey has collected more than 50 million responses. In this post, we show how
398-
the data from the [COVID-19 survey](https://delphi.cmu.edu/covidcast/surveys/)
396+
the data from the `r blogdown::shortcode("reflink", "surveys", "COVID-19 survey")`
399397
can be used to provide a broader picture of how American’s risk behaviors and
400398
sentiments amidst a global pandemic.
401399

402400
All of the above plots were built using aggregate data for the United States
403-
that CMU/Delphi Group & Facebook provide to the public through the [COVIDcast
404-
Epidata API](https://cmu-delphi.github.io/delphi-epidata/symptom-survey/), and
405-
visualize in the [Delphi Group's survey
406-
dashboard](https://delphi.cmu.edu/covidcast/). Public, aggregate data for the
401+
that CMU/Delphi Group & Facebook provide to the public through the `r blogdown::shortcode("apireflink", "symptom-survey/", "COVIDcast Epidata API")`, and
402+
visualize in the `r blogdown::shortcode("reflink", "/covidcast", "Delphi Group’s survey dashboard")`. Public, aggregate data for the
407403
global COVID-19 survey can be accessed via [University of Maryland's
408404
API](https://covidmap.umd.edu/api.html). We encourage researchers, public health
409405
officials, and the public to use the survey data and tools for their own

content/blog/2021-01-22-holiday-surveys.html

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
summary: |
1010
How did Thanksgiving and Christmas affect travel, social, and preventative
1111
behaviors in the USA during the COVID-19 pandemic?
12+
heroImage: /blog/images/blog-lg-img_hello-world.jpg
13+
heroImageThumb: /blog/images/blog-thumb-img_hello-world.jpg
1214
authors:
1315
- lmorinishi
1416
- kbarkume
@@ -27,8 +29,7 @@
2729
toc: true
2830
---
2931

30-
<link href="/rmarkdown-libs/anchor-sections/anchor-sections.css" rel="stylesheet" />
31-
<script src="/rmarkdown-libs/anchor-sections/anchor-sections.js"></script>
32+
<script src="/rmarkdown-libs/header-attrs/header-attrs.js"></script>
3233

3334
<div id="TOC">
3435
<ul>
@@ -47,20 +48,16 @@
4748
restrictions to prevent further escalation in cases.
4849
<a href="https://www.washingtonpost.com/travel/2020/12/21/christmas-flights-cdc-restrictions-covid/">Reports</a>
4950
from airlines suggest air travel was up significantly during the holiday season,
50-
but <a href="https://delphi.cmu.edu/covidcast/surveys/">Delphi’s COVID-19 Surveys</a> can
51+
but {{% reflink "surveys" "Delphi’s COVID-19 Surveys" %}} can
5152
provide a broader picture of the travel Americans took during the holiday
5253
season. In taking greater risks with travel, did Americans change their
5354
behaviors in other preventative measures like mask wearing during this time?</p>
5455
<p>For the following analyses, we use publicly available aggregate data from the
55-
<a href="https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html">COVIDcast Epidata
56-
API</a> that have
57-
been <a href="https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/fb-survey.html#survey-weighting">weighted to better match state
58-
demographics</a>.
56+
{{% apireflink "api/covidcast.html" "COVIDcast Epidata API" %}} that have
57+
been {{% apireflink "api/covidcast-signals/fb-survey.html#survey-weighting" "weighted to better match state demographics" %}}.
5958
Here we focus on behavioral signals which have been available since September 8,
60-
2020, when <a href="https://delphi.cmu.edu/blog/2020/10/12/new-and-improved-covid-symptom-survey-tracks-testing-and-mask-wearing/">Wave 4 of the survey was
61-
deployed</a>,
62-
and are now visible in the <a href="https://delphi.cmu.edu/covidcast/survey-results/">Delphi Group’s survey
63-
dashboard</a>. Additionally, we
59+
2020, when {{% reflink "2020-10-06-survey-wave-4" "Wave 4 of the survey was deployed" %}},
60+
and are now visible in the {{% reflink "survey-results" "Delphi Group’s survey dashboard" %}}. Additionally, we
6461
only consider data after November 11, 2020 to avoid any major effects due to the
6562
US election on November 3. All data below will be based on 7-day rolling
6663
averages of survey responses.</p>
@@ -383,14 +380,12 @@ <h2>See the Data Yourself!</h2>
383380
for Good have partnered to conduct large-scale daily surveys to monitor the
384381
spread and impact of the COVID-19 pandemic in the United States. To date, the
385382
survey has collected more than 50 million responses. In this post, we show how
386-
the data from the <a href="https://delphi.cmu.edu/covidcast/surveys/">COVID-19 survey</a>
383+
the data from the {{% reflink "surveys" "COVID-19 survey" %}}
387384
can be used to provide a broader picture of how American’s risk behaviors and
388385
sentiments amidst a global pandemic.</p>
389386
<p>All of the above plots were built using aggregate data for the United States
390-
that CMU/Delphi Group &amp; Facebook provide to the public through the <a href="https://cmu-delphi.github.io/delphi-epidata/symptom-survey/">COVIDcast
391-
Epidata API</a>, and
392-
visualize in the <a href="https://delphi.cmu.edu/covidcast/">Delphi Group’s survey
393-
dashboard</a>. Public, aggregate data for the
387+
that CMU/Delphi Group &amp; Facebook provide to the public through the {{% apireflink "symptom-survey/" "COVIDcast Epidata API" %}}, and
388+
visualize in the {{% reflink "/covidcast" "Delphi Group’s survey dashboard" %}}. Public, aggregate data for the
394389
global COVID-19 survey can be accessed via <a href="https://covidmap.umd.edu/api.html">University of Maryland’s
395390
API</a>. We encourage researchers, public health
396391
officials, and the public to use the survey data and tools for their own

0 commit comments

Comments
 (0)