Fix deprecation warnings (#913)
### Prerequisites
Put an `x` into the box(es) that apply:
- [x] This pull request fixes warnings.
- [ ] This pull request adds a feature.
- [ ] This pull request introduces breaking change.
### Description
This PR fixes warnings emitted by hugo.
It raises the min required version for the theme to 0.124.0, I hope this
is o.k. for you.
#### Contributors
- [x] Add yourself to `CONTRIBUTORS.md` if you aren't on it already
10 files modified
1 files renamed
| | |
| | | # http://editorconfig.org |
| | | # https://editorconfig.org |
| | | |
| | | # this file is the top-most editorconfig file |
| | | root = true |
| | |
| | | - [Leo Heimann Ruiz](https://leo.heitmannruiz.org/) |
| | | - [Antoine "Toinux" Wam](https://github.com/itzwam) |
| | | - [Reberti Carvalho Soares](https://github.com/RebertiCS) |
| | | - [Andreas Deininger](https://github.com/deining) |
| File was renamed from config.toml |
| | |
| | | |
| | | [module] |
| | | [module.hugoVersion] |
| | | min = "0.77.0" |
| | | min = "0.124.0" |
| | |
| | | other = "Seite nicht gefunden" |
| | | |
| | | [page_does_not_exist] |
| | | other = "Tut mir Leid, die Seite existiert leider nicht." |
| | | other = "Tut mir leid, die Seite existiert leider nicht." |
| | | |
| | | [head_back] |
| | | other = "Du kannst hier zurück zur <a href=\"{{ . }}\">Startseite</a>." |
| | |
| | | other = "Fehler" |
| | | |
| | | [link_to_heading] |
| | | other = "Link to heading" |
| | | other = "Link zu Überschrift" |
| | |
| | | {{ if not .Site.Params.hideColorSchemeToggle }} |
| | | {{ errorf "Invalid configuration. Default JS scripts are disabled, but 'hideColorSchemeToggle' is false." }} |
| | | {{end}} |
| | | {{ else if .Site.IsServer }} |
| | | {{ else if hugo.IsServer }} |
| | | {{ $script := resources.Get "js/coder.js" }} |
| | | <script src="{{ $script.RelPermalink }}"></script> |
| | | {{ else }} |
| | |
| | | {{ end }} |
| | | |
| | | {{ range .Site.Params.customJS }} |
| | | {{ if $.Site.IsServer }} |
| | | {{ if hugo.IsServer }} |
| | | {{ $script := resources.Get . }} |
| | | <script src="{{ $script.RelPermalink }}"></script> |
| | | {{ else }} |
| | |
| | | {{ end }} |
| | | |
| | | {{ range .Site.Params.customRemoteJS }} |
| | | {{ if $.Site.IsServer }} |
| | | {{ if hugo.IsServer }} |
| | | {{ $script := resources.GetRemote . }} |
| | | <script src="{{ $script.RelPermalink }}"></script> |
| | | {{ else }} |
| | |
| | | {{ if or (eq .Site.Params.colorScheme "auto") (eq .Site.Params.colorScheme "dark") }} |
| | | {{ if .Site.IsServer }} |
| | | {{ if hugo.IsServer }} |
| | | {{ $cssOpts := (dict "targetPath" "css/coder-dark.css" "enableSourceMap" true ) }} |
| | | {{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts }} |
| | | <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen"> |
| | |
| | | {{ range .Site.Params.customCSS }} |
| | | {{ if $.Site.IsServer }} |
| | | {{ if hugo.IsServer }} |
| | | {{ $styles := resources.Get . }} |
| | | <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen"> |
| | | {{ else }} |
| | |
| | | |
| | | {{ range .Site.Params.customSCSS }} |
| | | {{/* We don't change the targetPath to because it's transparent to users */}} |
| | | {{ if $.Site.IsServer }} |
| | | {{ if hugo.IsServer }} |
| | | {{ $cssOpts := (dict "enableSourceMap" true ) }} |
| | | {{ $styles := resources.Get . | toCSS $cssOpts }} |
| | | <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen"> |
| | |
| | | <link rel="preload" href="/fonts/fa-regular-400.woff2" as="font" type="font/woff2" crossorigin> |
| | | <link rel="preload" href="/fonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin> |
| | | |
| | | {{ if .Site.IsServer }} |
| | | {{ if hugo.IsServer }} |
| | | {{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }} |
| | | {{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts }} |
| | | <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen"> |
| | |
| | | {{ end }} |
| | | |
| | | {{ if .Site.Params.rtl }} |
| | | {{ if .Site.IsServer }} |
| | | {{ if hugo.IsServer }} |
| | | {{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" "enableSourceMap" true ) }} |
| | | {{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts }} |
| | | <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen"> |
| | |
| | | {{ .Title }} |
| | | </a> |
| | | {{ end }} |
| | | {{ if or .Site.Menus.main .Site.IsMultiLingual }} |
| | | {{ if or .Site.Menus.main hugo.IsMultilingual }} |
| | | <input type="checkbox" id="menu-toggle" /> |
| | | <label class="menu-button float-right" for="menu-toggle"> |
| | | <i class="fa-solid fa-bars fa-fw" aria-hidden="true"></i> |
| | |
| | | </li> |
| | | {{ end }} |
| | | {{ end }} |
| | | {{ if .Site.IsMultiLingual }} |
| | | {{ if hugo.IsMultilingual }} |
| | | {{ $node := . }} |
| | | {{ .Scratch.Set "separator" true }} |
| | | {{ range (default .Site.Home.AllTranslations .Translations) }} |
| | |
| | | command = "cd exampleSite && hugo --themesDir=../.. --baseURL $URL" |
| | | |
| | | [build.environment] |
| | | HUGO_VERSION = "0.124.1" |
| | | HUGO_VERSION = "0.126.1" |
| | | HUGO_THEME = "repo" |
| | | |
| | | [context.deploy-preview] |
| | |
| | | "single-column", |
| | | "syntax-highlighting" |
| | | ] |
| | | min_version = "0.120.0" |
| | | min_version = "0.124.0" |
| | | |
| | | [author] |
| | | name = "Luiz F. A. de Prá" |