Skip to content

Commit c34c51f

Browse files
committed
Fix Hugo deployment errors: update deprecated _build to build, fix citation template, and pin Hugo version
1 parent 0fe4bf9 commit c34c51f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Hugo
3636
uses: peaceiris/actions-hugo@v2
3737
with:
38-
hugo-version: 'latest'
38+
hugo-version: '0.145.0'
3939
extended: true
4040

4141
- name: Build with Hugo

content/authors/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
# To publish author profile pages, remove all the `_build` and `cascade` settings below.
3-
_build:
2+
# To publish author profile pages, remove all the `build` and `cascade` settings below.
3+
build:
44
render: never
55
cascade:
6-
_build:
6+
build:
77
render: never
88
list: always
99
---

layouts/partials/views/citation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="year-block {{ if $isMoatlabEra }}moatlab-era{{ else }}pre-moatlab-era{{ end }}">{{ $year }}</div>
88
<div class="publication-layout">
99
<div class="publication-number-column">
10-
<span class="publication-number">{{ add .index 1 }}</span>
10+
<span class="publication-number">{{ if .index }}{{ add .index 1 }}{{ else }}1{{ end }}</span>
1111
</div>
1212
<div class="publication-content">
1313
<div class="publication-title">

0 commit comments

Comments
 (0)