Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc updates #2352

Merged
merged 4 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en/getting-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ See [Configure Taxonomies](/content-management/taxonomies#configure-taxonomies).

### theme

: See [module configuration](/hugo-modules/configuration/#module-configuration-imports) for how to import a theme.
See [module configuration](/hugo-modules/configuration/#module-configuration-imports) for how to import a theme.

### themesDir

Expand Down
6 changes: 3 additions & 3 deletions content/en/hosting-and-deployment/hosting-on-github/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.120.2
HUGO_VERSION: 0.120.4
steps:
- name: Install Hugo CLI
run: |
Expand All @@ -114,7 +114,7 @@ jobs:
fetch-depth: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v3
{{< /code >}}

Step 7
Expand Down
21 changes: 16 additions & 5 deletions content/en/installation/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,24 @@ sudo dnf install hugo

### Gentoo

Builds from source using Portage package manager. Customize how it builds (stardard or extended edition) easily with [USE flags] :
Derivatives of the [Gentoo] distribution of Linux include [Calculate Linux], [Funtoo], and others. Follow the instructions below to install the extended edition of Hugo:

```sh
sudo emerge www-apps/hugo
```
1. Specify the `sass` [USE] flag in /etc/portage/package.use/mysql:

```text
www-apps/hugo sass
```

2. Build using the Portage package manager:

```sh
sudo emerge www-apps/hugo
```

[USE flags]: https://wiki.gentoo.org/wiki/USE_flag
[Calculate Linux]: https://www.calculate-linux.org/
[Funtoo]: https://www.funtoo.org/
[Gentoo]: https://www.gentoo.org/
[USE]: https://wiki.gentoo.org/wiki/Hugo#USE_flags

### openSUSE

Expand Down
39 changes: 39 additions & 0 deletions layouts/shortcodes/quick-reference.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{{/*
Renders the child sections of the given top-level section, listing each childs's immediate descendants.

@param {string} section The top-level section to render.
@returns template.HTML

@example {{% quick-reference section="functions" %}}
*/}}

{{ $section := "" }}
{{ with .Get "section" }}
{{ $section = . }}
{{ else }}
{{ errorf "The %q shortcodes requires a 'section' parameter. See %s" .Name .Postion }}
{{ end }}

{{/* Do not change the markdown indentation, and do not remove blank lines. */}}
{{ with site.GetPage $section }}
{{ range .Sections }}

## {{ .LinkTitle }}
{{ .RawContent }}

{{ range .Pages }}
{{ $aliases := "" }}
{{ if eq .Section "functions" }}
{{ with .Params.action.aliases }}
{{ $aliases = delimit . " or " }}
{{ end }}
{{ end }}

[{{ .LinkTitle }}]({{ .RelPermalink }}) {{ with $aliases }}({{ . }}){{ end }}
: {{ .Description }}

{{ end }}
{{ end }}
{{ else }}
{{ errorf "The %q shortcodes was unable to find the %q section. See %s" .Name $section .Postion }}
{{ end }}