Add "partials/" to static templates.Exists

This commit is contained in:
Ryan Gibson
2025-04-11 16:22:04 -04:00
parent baaf251bde
commit 6cfea9bfd1
4 changed files with 5 additions and 5 deletions

View File

@@ -154,7 +154,7 @@
{{ partial "article-pagination.html" . }} {{ partial "article-pagination.html" . }}
{{ if .Params.showComments | default (.Site.Params.article.showComments | default false) }} {{ if .Params.showComments | default (.Site.Params.article.showComments | default false) }}
{{ if templates.Exists "comments.html" }} {{ if templates.Exists "partials/comments.html" }}
<div class="pt-3"> <div class="pt-3">
<hr class="border-dotted border-neutral-300 dark:border-neutral-600" /> <hr class="border-dotted border-neutral-300 dark:border-neutral-600" />
<div class="pt-3"> <div class="pt-3">

View File

@@ -85,7 +85,7 @@
{{ partial "badge.html" (i18n "article.draft" | emojify) }} {{ partial "badge.html" (i18n "article.draft" | emojify) }}
</div> </div>
{{ end }} {{ end }}
{{ if templates.Exists "extend-article-link.html" }} {{ if templates.Exists "partials/extend-article-link.html" }}
{{ partial "extend-article-link.html" . }} {{ partial "extend-article-link.html" . }}
{{ end }} {{ end }}
</div> </div>

View File

@@ -62,7 +62,7 @@
{{ $jsProcess = $jsProcess | resources.Minify | resources.Fingerprint "sha512" }} {{ $jsProcess = $jsProcess | resources.Minify | resources.Fingerprint "sha512" }}
<script type="text/javascript" src="{{ $jsProcess.RelPermalink }}" integrity="{{ $jsProcess.Data.Integrity }}"></script> <script type="text/javascript" src="{{ $jsProcess.RelPermalink }}" integrity="{{ $jsProcess.Data.Integrity }}"></script>
{{/* Extend footer - eg. for extra scripts, etc. */}} {{/* Extend footer - eg. for extra scripts, etc. */}}
{{ if templates.Exists "extend-footer.html" }} {{ if templates.Exists "partials/extend-footer.html" }}
{{ partialCached "extend-footer.html" . }} {{ partialCached "extend-footer.html" . }}
{{ end }} {{ end }}
</footer> </footer>

View File

@@ -80,7 +80,7 @@
<script src="{{ $zoomJS.RelPermalink }}" integrity="{{ $zoomJS.Data.Integrity }}"></script> <script src="{{ $zoomJS.RelPermalink }}" integrity="{{ $zoomJS.Data.Integrity }}"></script>
{{ end }} {{ end }}
{{/* Icons */}} {{/* Icons */}}
{{ if templates.Exists "favicons.html" }} {{ if templates.Exists "partials/favicons.html" }}
{{ partialCached "favicons.html" .Site }} {{ partialCached "favicons.html" .Site }}
{{ else }} {{ else }}
<link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}" /> <link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}" />
@@ -123,7 +123,7 @@
{{/* Analytics */}} {{/* Analytics */}}
{{ partial "analytics/main.html" .Site }} {{ partial "analytics/main.html" .Site }}
{{/* Extend head - eg. for custom analytics scripts, etc. */}} {{/* Extend head - eg. for custom analytics scripts, etc. */}}
{{ if templates.Exists "extend-head.html" }} {{ if templates.Exists "partials/extend-head.html" }}
{{ partialCached "extend-head.html" .Site }} {{ partialCached "extend-head.html" .Site }}
{{ end }} {{ end }}
<meta name="theme-color"/> <meta name="theme-color"/>