Skip to content

Commit f743617

Browse files
authored
Merge pull request #188 from cmu-delphi/sgratzl/covidcast_pages
individual covidcast mode pages
2 parents 7ee2b2f + 3e86d73 commit f743617

File tree

9 files changed

+37
-5
lines changed

9 files changed

+37
-5
lines changed

content/covidcast/export.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: COVIDCast Export Data
3+
linkTitle: Export Data
4+
description: Use COVIDcast data in your own analysis
5+
layout: covidcast_app
6+
---

content/covidcast/single.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: COVIDCast Region Details
3+
linkTitle: Region Details
4+
description: COVIDcast tracks and forecasts the spread of COVID-19. By Carnegie Mellon's Delphi Research Group.
5+
layout: covidcast_app
6+
---

content/covidcast/timelapse.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: COVIDCast Timelapse
3+
linkTitle: Timelapse
4+
layout: covidcast_app
5+
---

content/covidcast/top10.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: COVIDCast Top 10
3+
linkTitle: Top 10
4+
layout: covidcast_app
5+
---

package-lock.json

Lines changed: 10 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"highlight.js": "^10.4.1",
88
"katex": "^0.12.0",
99
"uikit": "^3.5.9",
10-
"www-covidcast": "https://github.com/cmu-delphi/www-covidcast/releases/download/v1.11.1/www-covidcast-1.11.1.tgz"
10+
"www-covidcast": "github:cmu-delphi/www-covidcast#d2f57d281bc1d7d60b47a7aac5a9ce2df39ff735"
1111
},
1212
"devDependencies": {
1313
"hugo-bin": "^0.66.2",

themes/delphi/assets/js/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ UIkit.use(plugin);
44

55
// re export for COVIDCast
66
window.UIkit = UIkit;
7+
// define for covidcast at which base url it is embedded
8+
window.DELPHI_COVIDCAST_PAGE = "/covidcast/";

themes/delphi/layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</head>
99
<body class="{{ block "body_class" . }}{{ end }}">
1010
{{ partial "nav.html" . }}
11-
{{ partial "menu/breadcrumb.html" . }}
11+
{{ block "breadcrumb" . }}{{ partial "menu/breadcrumb.html" . }}{{ end }}
1212
{{ block "main" . }} {{ end }}
1313
{{ partial "footer.html" . }}
1414
{{ partial "scripts.html" . }}

themes/delphi/layouts/_default/covidcast_app.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<script src="{{ "./covidcast/styles.js" | relURL }}"></script>
88
<script src="{{ "./covidcast/bundle.js" | relURL }}"></script>
99
{{ end }}
10+
{{ define "breadcrumb" }}<!--no breadcrumb -->{{ end }}
1011
{{ define "body_class" }}covidcast_wrapper{{ end }}
1112
{{ define "main" }}
1213
<div id="vizbox">

0 commit comments

Comments
 (0)