Skip to content

Commit 623339e

Browse files
authored
Update Hugo (#175)
2 parents 662b96a + 589504b commit 623339e

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set Hugo up
3131
uses: peaceiris/actions-hugo@v2
3232
with:
33-
hugo-version: '0.119.0'
33+
hugo-version: '0.147.1'
3434
extended: true # Prevent error building site: POSTCSS: failed to transform, see https://gohugo.io/troubleshooting/faq/#i-get-this-feature-is-not-available-in-your-current-hugo-version
3535

3636
- name: Clean public dir

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set Hugo up
2727
uses: peaceiris/actions-hugo@v2
2828
with:
29-
hugo-version: '0.119.0'
29+
hugo-version: '0.147.1'
3030
extended: true # Prevent error building site: POSTCSS: failed to transform, see https://gohugo.io/troubleshooting/faq/#i-get-this-feature-is-not-available-in-your-current-hugo-version
3131
- name: Build with Hugo
3232
run: npm run build

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,25 @@ Pages and sections are ordered on the “end user” to “core team member” s
1010

1111
### Dependencies
1212

13-
This website is built using [Hugo](https://gohugo.io), a static website editor, and uses [Node.js](https://nodejs.org).
13+
#### Hugo
1414

15-
To build it, [install Hugo](https://gohugo.io/getting-started/installing/) (>= v0.114.0) and [Node.js](https://nodejs.org), and then:
15+
[Install Hugo](https://gohugo.io/getting-started/installing/) in version `0.147.1` edition `extended`.
16+
17+
##### With Homebrew
18+
19+
1. Add Open Terms Archive homebrew tap: `brew tap OpenTermsArchive/homebrew-tap https://github.com/OpenTermsArchive/homebrew-tap`
20+
2. Install Hugo: `brew install [email protected]`
21+
22+
See [Open Terms Archive homebrew tap](https://github.com/OpenTermsArchive/homebrew-tap) for more information.
23+
24+
#### Node.js and npm dependencies
25+
26+
[Install Node.js](https://nodejs.org), then install npm dependencies with the following commands:
1627

1728
```sh
1829
git clone https://github.com/OpenTermsArchive/docs
1930
cd docs
2031
npm install
21-
hugo
2232
```
2333

2434
## Usage

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
[context.deploy-preview.environment]
99
HUGO_ENV = "preview"
10-
HUGO_VERSION = "0.119.0"
10+
HUGO_VERSION = "0.147.1"

themes/opentermsarchive/layouts/partials/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<head>
22
<meta charset="utf-8" />
33
<title>{{ with .Param "html_title" }}{{ . }}{{ else }}{{ .Title }}{{ end }}</title>
4-
<meta name="description" content="{{ .Description }}" />
4+
<meta name="description" content="{{ with .Param "html_description"}}{{ . }}{{ else }}{{ .Summary | truncate 160 }}{{ end }}">
55
<meta name="viewport" content="width=device-width,initial-scale=1" />
66
{{ $styles := resources.Get "css/loader.css" | toCSS | postCSS (dict "config" "./assets/css/postcss.config.js" "inlineImports" true) }}
77
{{ if hugo.IsProduction }}{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}{{ end }}

0 commit comments

Comments
 (0)