mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
Add "partials/" to static templates.Exists
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user