Skip to content

Commit 891cc34

Browse files
authored
Merge pull request #399 from cmu-delphi/sgratzl/prettier
build: update dependencies
2 parents 0c0e164 + 153a266 commit 891cc34

File tree

19 files changed

+92
-57
lines changed

19 files changed

+92
-57
lines changed

package-lock.json

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

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
"@fortawesome/fontawesome-free": "^5.15.3",
77
"highlight.js": "^11.0.1",
88
"katex": "^0.13.11",
9-
"uikit": "^3.6.22",
9+
"uikit": "^3.7.0",
1010
"www-covidcast": "https://github.com/cmu-delphi/www-covidcast/releases/download/v2.5.2/www-covidcast-2.5.2.tgz",
1111
"www-epivis": "https://github.com/cmu-delphi/www-epivis/releases/download/v2.0.1/www-epivis-2.0.1.tgz"
1212
},
1313
"devDependencies": {
14-
"hugo-bin": "^0.72.3",
15-
"husky": "^6.0.0",
14+
"hugo-bin": "^0.72.4",
15+
"husky": "^7.0.0",
1616
"lint-staged": "^11.0.0",
17-
"prettier": "~2.2.1",
18-
"prettier-plugin-go-template": "^0.0.10",
17+
"prettier": "^2.3.2",
18+
"prettier-plugin-go-template": "^0.0.11",
1919
"rimraf": "^3.0.2",
2020
"shx": "^0.3.3"
2121
},

themes/delphi/layouts/_default/baseof.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<head>
55
{{ partial "head/meta.html" . }}
66
{{ partial "head/styles.html" . }}
7-
{{ block "styles" . }} {{ end }}
7+
{{ block "styles" . }}{{ end }}
88
</head>
99
<body class="{{ block "body_class" . }}{{ end }}">
1010
{{ partial "nav.html" . }}
1111
{{ block "breadcrumb" . }}{{ partial "menu/breadcrumb.html" . }}{{ end }}
12-
{{ block "main" . }} {{ end }}
12+
{{ block "main" . }}{{ end }}
1313
{{ partial "footer.html" . }}
1414
{{ partial "scripts.html" . }}
15-
{{ block "scripts" . }} {{ end }}
15+
{{ block "scripts" . }}{{ end }}
1616
</body>
1717
</html>

themes/delphi/layouts/_default/coe.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ <h2>We work closely with</h2>
2222

2323
{{ partial "coe/research-papers.html" . }}
2424

25+
2526
<div class="about-collaborators coe-section about-collaborators-v2">
2627
<div class="uk-container">
2728
<h2>Supporters</h2>

themes/delphi/layouts/_default/team.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ <h1 class="team-header">
2020

2121
{{ .Content }}
2222

23+
2324
<hr />
2425

2526
<strong>Abbreviations</strong>

themes/delphi/layouts/_internal/pagination.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{{ $pag := $.Paginator }}
22
{{ if gt $pag.TotalPages 1 -}}
33
<ul class="uk-pagination uk-flex-center">
4-
<li class="{{ if not $pag.HasPrev }} uk-disabled{{ end }}">
4+
<li class="{{ if not $pag.HasPrev }}uk-disabled{{ end }}">
55
{{ if $pag.HasPrev }}
66
<a href="{{ $pag.Prev.URL }}" aria-label="Previous"><span uk-pagination-previous></span></a>
7-
{{ else }}
7+
{{ else }}
88
<a aria-label="Previous"><span uk-pagination-previous></span></a>
99
{{ end }}
1010
</li>
@@ -18,24 +18,24 @@
1818
{{- if $showNumber -}}
1919
{{- $ellipsed = false -}}
2020
{{- $shouldEllipse = false -}}
21-
{{- else -}}
21+
{{- else -}}
2222
{{- $shouldEllipse = not $ellipsed -}}
2323
{{- $ellipsed = true -}}
2424
{{- end -}}
2525
{{- if $showNumber }}
26-
<li class="{{ if eq . $pag }} uk-active{{ end }}">
26+
<li class="{{ if eq . $pag }}uk-active{{ end }}">
2727
<a href="{{ .URL }}">{{ .PageNumber }}</a>
2828
</li>
29-
{{- else if $shouldEllipse }}
29+
{{- else if $shouldEllipse }}
3030
<li class="uk-disabled">
3131
<span aria-hidden="true">&nbsp;&hellip;&nbsp;</span>
3232
</li>
3333
{{- end -}}
3434
{{- end }}
35-
<li class="{{ if not $pag.HasNext }} uk-disabled{{ end }}">
35+
<li class="{{ if not $pag.HasNext }}uk-disabled{{ end }}">
3636
{{ if $pag.HasNext }}
3737
<a href="{{ $pag.Next.URL }}" aria-label="Next"><span uk-pagination-next></span></a>
38-
{{ else }}
38+
{{ else }}
3939
<a aria-label="Next"><span uk-pagination-next></span></a>
4040
{{ end }}
4141
</li>

themes/delphi/layouts/blog/single.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
<link rel="stylesheet" href="{{ $blog_style.RelPermalink }}" />
44
{{ end }}
55
{{ define "scripts" }}
6-
{{ $script_blog := resources.Get "js/blog/index.js" | js.Build | minify | fingerprint -}}
7-
<script src="{{ $script_blog.RelPermalink }}"></script>
6+
{{ $script_blog := resources.Get "js/blog/index.js" | js.Build | minify | fingerprint -}} <script src="{{ $script_blog.RelPermalink }}"></script>
87
{{ end }}
98
{{ define "main" }}
109
{{ $currentPage := . }}
@@ -33,7 +32,7 @@ <h1>{{ .Title }}</h1>
3332
<span class="uk-icon-button">
3433
{{ if gt (len .Params.authors) 1 }}
3534
{{ partial "font-awesome.html" "solid/users" }}
36-
{{ else }}
35+
{{ else }}
3736
{{ partial "font-awesome.html" "solid/user" }}
3837
{{ end }}
3938
</span>
@@ -78,7 +77,7 @@ <h5>Outline</h5>
7877
{{ with (partial "get-person.html" (dict "Site" $currentPage.Site "key" .)) }}
7978
{{ if isset . "link" }}
8079
<a href="{{ .link }}" class="uk-text-bold-600 uk-link-text">{{ .name | safeHTML }}</a>
81-
{{ else }}
80+
{{ else }}
8281
<span>{{ .name | safeHTML }}</span>
8382
{{ end }}
8483
{{ .description }}

themes/delphi/layouts/partials/about/collaborators.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h2 class="uk-text-center">Collaborators</h2>
66
<ul>
77
{{ range .Params.collaborators }}
88
<li>
9-
{{ if eq .group "sponsor" }}With support from {{ end }}
9+
{{ if eq .group "sponsor" }}With support from{{ end }}
1010

1111
{{ .name }}
1212
</li>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<div class="blog-license">
22
&#169; <span id="js-current-year">{{ now.Format "2006" }}</span> Delphi group authors. Text and figures released under
33
<a href="https://creativecommons.org/licenses/by/4.0">
4-
CC BY 4.0 {{ partial "font-awesome.html" "brands/creative-commons" }}
4+
CC BY 4.0
5+
{{ partial "font-awesome.html" "brands/creative-commons" }}
56
{{ partial "font-awesome.html" "brands/creative-commons-by" }} </a
67
>; code under the <a href="https://opensource.org/licenses/MIT">MIT license</a>.
78
</div>

themes/delphi/layouts/partials/font-awesome.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{- $localPath := path.Join "./themes/delphi/assets/" $fileName -}}
55
{{- if fileExists $localPath -}}
66
{{ readFile $localPath | safeHTML }}
7-
{{- else -}}
7+
{{- else -}}
88
{{ readFile $faPath | safeHTML }}
99
{{- end -}}
1010
</span>

0 commit comments

Comments
 (0)