Internal templates can now be called with standrad partial function.

This commit is contained in:
Fredrik Jonsson 2025-12-09 15:45:33 +01:00
commit f5408a6355
2 changed files with 2 additions and 2 deletions

View file

@ -22,5 +22,5 @@
{{ if site.Config.Services.GoogleAnalytics.ID -}}
{{ $script := resources.Get "js/tracking.js" | js.Build $opts | fingerprint -}}
<script src="{{ $script.RelPermalink }}"></script>
{{ template "_internal/google_analytics.html" . }}
{{ partial "google_analytics.html" . }}
{{ end -}}

View file

@ -1,5 +1,5 @@
{{ if $.Param "internalpagination" -}}
{{ template "_internal/pagination.html" . }}
{{ partial "pagination.html" . }}
{{ else -}}
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) -}}
<nav class="pager">