Fix build failure due to Hugo chaning _internal template behavior (#1050)

* Fix build failure due to Hugo chaning `_internal` template behavior

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

* Update min Hugo version

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

---------

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
Emruz Hossain 2025-04-14 22:48:34 +06:00 committed by GitHub
parent b79aee97d6
commit 7223361464
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 151 additions and 103 deletions

View file

@ -4,8 +4,7 @@
<title>{{ .Page.Title }}</title>
<!------ ADD COMMON HEADERS -------->
{{- partial "header.html" . -}}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
{{- partial "opengraph.html" . -}}
<!------ ADD PAGE SPECIFIC HEADERS ------->
{{ block "header" . }} {{ end }}

View file

@ -43,7 +43,7 @@
{{ end }}
</div>
<div class="paginator">
{{ template "_internal/pagination.html" . }}
{{ partial "pagination.html" . }}
</div>
</div>
</section>

View file

@ -44,7 +44,7 @@
{{ end }}
</div>
<div class="paginator">
{{ template "_internal/pagination.html" . }}
{{ partial "pagination.html" . }}
</div>
</div>
</section>

View file

@ -41,7 +41,7 @@
{{ end }}
</div>
<div class="paginator">
{{ template "_internal/pagination.html" . }}
{{ partial "pagination.html" . }}
</div>
</div>
</section>

View file

@ -80,5 +80,5 @@
<!-- Keep backwards compatibility and consistency with HUGO defaults -->
{{ if .Site.Config.Services.GoogleAnalytics.ID }}
{{ template "_internal/google_analytics.html" . }}
{{ partial "google_analytics.html" . }}
{{ end }}

View file

@ -10,5 +10,3 @@
<meta property="og:description" content="{{ $description }}"/>
<meta property="og:image" content="{{ $image | relURL }}">
<meta property="og:url" content="{{ $url }}">
{{ template "_internal/twitter_cards.html" . }}

View file

@ -0,0 +1 @@
<script src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{if len .Params | eq 3 }}?file={{ index .Params 2 }}{{end}}"></script>

View file

@ -44,7 +44,7 @@
{{ end }}
</div>
<div class="paginator">
{{ template "_internal/pagination.html" . }}
{{ partial "pagination.html" . }}
</div>
</div>
</section>