mirror of https://github.com/luizdepra/hugo-coder.git

Alex Miranda
29.57.2025 a5fc33e60e4ba006a4003929b30eb8788c8eef0b
Upstreaming updates to theme to be compatible with Hugo v0.146.0 >= (#981)

### Prerequisites

Put an `x` into the box(es) that apply:

- [ ] This pull request fixes a bug.
- [ ] This pull request adds a feature.
- [x] This pull request introduces breaking change.

### Description

These changes are needed to not break the new Hugo build process based
on file changes introduced in Hugo v0.146.0.

### Issues Resolved

#977

### Checklist

Put an `x` into the box(es) that apply:

#### General

- [x] Describe what changes are being made
- [x] Explain why and how the changes were necessary and implemented
respectively
- [x] Reference issue with `#<ISSUE_NO>` if applicable

#### Resources

- [x] If you have changed any SCSS code, run `make release` to
regenerate all CSS files

#### Contributors

- [x] Add yourself to `CONTRIBUTORS.md` if you aren't on it already
3 files modified
63 files renamed
20 ■■■■ changed files
layouts/_markup/render-heading.html patch | view | raw | blame | history
layouts/_markup/render-link.html patch | view | raw | blame | history
layouts/_partials/404.html patch | view | raw | blame | history
layouts/_partials/analytics/applicationinsights.html patch | view | raw | blame | history
layouts/_partials/analytics/baidu.html patch | view | raw | blame | history
layouts/_partials/analytics/clicky.html patch | view | raw | blame | history
layouts/_partials/analytics/cloudflare.html patch | view | raw | blame | history
layouts/_partials/analytics/fathom.html patch | view | raw | blame | history
layouts/_partials/analytics/goatcounter.html patch | view | raw | blame | history
layouts/_partials/analytics/googletagmanager.html patch | view | raw | blame | history
layouts/_partials/analytics/matomo.html patch | view | raw | blame | history
layouts/_partials/analytics/microanalyticsio.html patch | view | raw | blame | history
layouts/_partials/analytics/onedollarstats.html patch | view | raw | blame | history
layouts/_partials/analytics/pirsch.html patch | view | raw | blame | history
layouts/_partials/analytics/plausible.html patch | view | raw | blame | history
layouts/_partials/analytics/umami.html patch | view | raw | blame | history
layouts/_partials/analytics/vercel.html patch | view | raw | blame | history
layouts/_partials/analytics/wideangle.html patch | view | raw | blame | history
layouts/_partials/analytics/yandex-metrika.html patch | view | raw | blame | history
layouts/_partials/body/extensions.html patch | view | raw | blame | history
layouts/_partials/csp.html patch | view | raw | blame | history
layouts/_partials/float.html patch | view | raw | blame | history
layouts/_partials/footer.html patch | view | raw | blame | history
layouts/_partials/head.html patch | view | raw | blame | history
layouts/_partials/head/alternative-output-formats.html patch | view | raw | blame | history
layouts/_partials/head/color-scheme.html 2 ●●● patch | view | raw | blame | history
layouts/_partials/head/custom-icons.html patch | view | raw | blame | history
layouts/_partials/head/custom-styles.html 4 ●●●● patch | view | raw | blame | history
layouts/_partials/head/extensions.html patch | view | raw | blame | history
layouts/_partials/head/hugo-generator.html patch | view | raw | blame | history
layouts/_partials/head/meta-tags.html patch | view | raw | blame | history
layouts/_partials/head/theme-styles.html 4 ●●●● patch | view | raw | blame | history
layouts/_partials/header.html patch | view | raw | blame | history
layouts/_partials/home.html patch | view | raw | blame | history
layouts/_partials/home/author.html patch | view | raw | blame | history
layouts/_partials/home/avatar.html patch | view | raw | blame | history
layouts/_partials/home/extensions.html patch | view | raw | blame | history
layouts/_partials/home/social.html patch | view | raw | blame | history
layouts/_partials/list.html patch | view | raw | blame | history
layouts/_partials/page.html patch | view | raw | blame | history
layouts/_partials/pagination.html patch | view | raw | blame | history
layouts/_partials/posts/commento.html patch | view | raw | blame | history
layouts/_partials/posts/cusdis.html patch | view | raw | blame | history
layouts/_partials/posts/disqus.html patch | view | raw | blame | history
layouts/_partials/posts/giscus.html patch | view | raw | blame | history
layouts/_partials/posts/mastodon.html patch | view | raw | blame | history
layouts/_partials/posts/math.html patch | view | raw | blame | history
layouts/_partials/posts/series.html patch | view | raw | blame | history
layouts/_partials/posts/telegram.html patch | view | raw | blame | history
layouts/_partials/posts/utterances.html patch | view | raw | blame | history
layouts/_partials/taxonomy/authors.html patch | view | raw | blame | history
layouts/_partials/taxonomy/categories.html patch | view | raw | blame | history
layouts/_partials/taxonomy/tags.html patch | view | raw | blame | history
layouts/_partials/terms.html patch | view | raw | blame | history
layouts/_shortcodes/mermaid.html patch | view | raw | blame | history
layouts/_shortcodes/notice.html patch | view | raw | blame | history
layouts/_shortcodes/tab.html patch | view | raw | blame | history
layouts/_shortcodes/tabgroup.html patch | view | raw | blame | history
layouts/baseof.html 6 ●●●● patch | view | raw | blame | history
layouts/home.html patch | view | raw | blame | history
layouts/list.html patch | view | raw | blame | history
layouts/single.html patch | view | raw | blame | history
layouts/terms.html patch | view | raw | blame | history
netlify.toml 2 ●●● patch | view | raw | blame | history
resources/_gen/assets/scss/coder.scss_3309bf5eef245954e39c3edadcf84268.content patch | view | raw | blame | history
resources/_gen/assets/scss/coder.scss_3309bf5eef245954e39c3edadcf84268.json 2 ●●● patch | view | raw | blame | history
layouts/_markup/render-heading.html
layouts/_markup/render-link.html
layouts/_partials/404.html
layouts/_partials/analytics/applicationinsights.html
layouts/_partials/analytics/baidu.html
layouts/_partials/analytics/clicky.html
layouts/_partials/analytics/cloudflare.html
layouts/_partials/analytics/fathom.html
layouts/_partials/analytics/goatcounter.html
layouts/_partials/analytics/googletagmanager.html
layouts/_partials/analytics/matomo.html
layouts/_partials/analytics/microanalyticsio.html
layouts/_partials/analytics/onedollarstats.html
layouts/_partials/analytics/pirsch.html
layouts/_partials/analytics/plausible.html
layouts/_partials/analytics/umami.html
layouts/_partials/analytics/vercel.html
layouts/_partials/analytics/wideangle.html
layouts/_partials/analytics/yandex-metrika.html
layouts/_partials/body/extensions.html
layouts/_partials/csp.html
layouts/_partials/float.html
layouts/_partials/footer.html
layouts/_partials/head.html
layouts/_partials/head/alternative-output-formats.html
layouts/_partials/head/color-scheme.html
File was renamed from layouts/partials/head/color-scheme.html
@@ -5,7 +5,7 @@
    <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
  {{ else }}
    {{ $cssOpts := (dict "targetPath" "css/coder-dark.css" ) }}
    {{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts | minify | fingerprint }}
    {{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts | resources.Minify | resources.Fingerprint }}
    <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
  {{ end }}
{{ end }}
layouts/_partials/head/custom-icons.html
layouts/_partials/head/custom-styles.html
File was renamed from layouts/partials/head/custom-styles.html
@@ -3,7 +3,7 @@
    {{ $styles := resources.Get . }}
    <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
  {{ else }}
    {{ $styles := resources.Get . | minify | fingerprint }}
    {{ $styles := resources.Get . | resources.Minify | resources.Fingerprint }}
    <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
  {{ end }}
{{ end }}
@@ -15,7 +15,7 @@
    {{ $styles := resources.Get . | toCSS $cssOpts }}
    <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
  {{ else }}
    {{ $styles := resources.Get . | toCSS | minify | fingerprint }}
    {{ $styles := resources.Get . | toCSS | resources.Minify | resources.Fingerprint }}
    <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
  {{ end }}
{{ end }}
layouts/_partials/head/extensions.html
layouts/_partials/head/hugo-generator.html
layouts/_partials/head/meta-tags.html
layouts/_partials/head/theme-styles.html
File was renamed from layouts/partials/head/theme-styles.html
@@ -8,7 +8,7 @@
  <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
{{ else }}
  {{ $cssOpts := (dict "targetPath" "css/coder.css" ) }}
  {{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts | minify | fingerprint }}
  {{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts | resources.Minify | resources.Fingerprint }}
  <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
{{ end }}
@@ -19,7 +19,7 @@
    <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
  {{ else }}
    {{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" ) }}
    {{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts | minify | fingerprint }}
    {{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts | resources.Minify | resources.Fingerprint }}
    <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
  {{ end }}
{{ end }}
layouts/_partials/header.html
layouts/_partials/home.html
layouts/_partials/home/author.html
layouts/_partials/home/avatar.html
layouts/_partials/home/extensions.html
layouts/_partials/home/social.html
layouts/_partials/list.html
layouts/_partials/page.html
layouts/_partials/pagination.html
layouts/_partials/posts/commento.html
layouts/_partials/posts/cusdis.html
layouts/_partials/posts/disqus.html
layouts/_partials/posts/giscus.html
layouts/_partials/posts/mastodon.html
layouts/_partials/posts/math.html
layouts/_partials/posts/series.html
layouts/_partials/posts/telegram.html
layouts/_partials/posts/utterances.html
layouts/_partials/taxonomy/authors.html
layouts/_partials/taxonomy/categories.html
layouts/_partials/taxonomy/tags.html
layouts/_partials/terms.html
layouts/_shortcodes/mermaid.html
layouts/_shortcodes/notice.html
layouts/_shortcodes/tab.html
layouts/_shortcodes/tabgroup.html
layouts/baseof.html
File was renamed from layouts/_default/baseof.html
@@ -41,7 +41,7 @@
  {{ $script := resources.Get "js/coder.js" }}
  <script src="{{ $script.RelPermalink }}"></script>
  {{ else }}
  {{ $script := resources.Get "js/coder.js" | minify | fingerprint }}
  {{ $script := resources.Get "js/coder.js" | resources.Minify | resources.Fingerprint }}
  <script src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
  {{ end }}
@@ -50,7 +50,7 @@
  {{ $script := resources.Get . }}
  <script src="{{ $script.RelPermalink }}"></script>
  {{ else }}
  {{ $script := resources.Get . | minify | fingerprint }}
  {{ $script := resources.Get . | resources.Minify | resources.Fingerprint }}
  <script src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
  {{ end }}
  {{ end }}
@@ -60,7 +60,7 @@
  {{ $script := resources.GetRemote . }}
  <script src="{{ $script.RelPermalink }}"></script>
  {{ else }}
  {{ $script := resources.GetRemote . | minify | fingerprint }}
  {{ $script := resources.GetRemote . | resources.Minify | resources.Fingerprint }}
  <script src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
  {{ end }}
  {{ end }}
layouts/home.html
layouts/list.html
layouts/single.html
layouts/terms.html
netlify.toml
@@ -3,7 +3,7 @@
command = "cd exampleSite && hugo --themesDir=../.. --baseURL $URL"
[build.environment]
HUGO_VERSION = "0.142.0"
HUGO_VERSION = "0.148.2"
HUGO_THEME = "repo"
[context.deploy-preview]
resources/_gen/assets/scss/coder.scss_3309bf5eef245954e39c3edadcf84268.content
resources/_gen/assets/scss/coder.scss_3309bf5eef245954e39c3edadcf84268.json
@@ -1 +1 @@
{"Target":"css/coder.min.c8e4eea149ae1dc7c61ba9b0781793711a4e657f7e07a4413f9abc46d52dffc4.css","MediaType":"text/css","Data":{"Integrity":"sha256-yOTuoUmuHcfGG6mweBeTcRpOZX9+B6RBP5q8RtUt/8Q="}}
{"Target":"css/coder.min.6445a802b9389c9660e1b07b724dcf5718b1065ed2d71b4eeaf981cc7cc5fc46.css","MediaType":"text/css","Data":{"Integrity":"sha256-ZEWoArk4nJZg4bB7ck3PVxixBl7S1xtO6vmBzHzF/EY="}}