mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-02-02 11:32:30 -06:00
Fix list.html render issue
FIXED: execute of template failed: template: _default/list.html:23:19: executing "main" at <.File.Path>: error calling Path: runtime error: invalid memory address or nil pointer dereference
This commit is contained in:
parent
fd1dd03358
commit
5edba5cf2e
1 changed files with 8 additions and 7 deletions
|
@ -19,16 +19,17 @@
|
||||||
<div class="mt-1 mb-2 text-base text-neutral-500 dark:text-neutral-400 print:hidden">
|
<div class="mt-1 mb-2 text-base text-neutral-500 dark:text-neutral-400 print:hidden">
|
||||||
{{ partial "article-meta/list.html" (dict "context" . "scope" "single") }}
|
{{ partial "article-meta/list.html" (dict "context" . "scope" "single") }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ with .File }}
|
||||||
{{ $path := .File.Path }}
|
{{ $path := .File.Path }}
|
||||||
{{range .AllTranslations}}
|
{{range .AllTranslations}}
|
||||||
{{ $lang := print "." .Lang ".md" }}
|
{{ $lang := print "." .Lang ".md" }}
|
||||||
{{ $path = replace $path $lang ".md" }}
|
{{ $path = replace $path $lang ".md" }}
|
||||||
{{end}}
|
{{end}}
|
||||||
<script>
|
<script>
|
||||||
var oid = "views_{{ $path }}"
|
var oid = "views_{{ $path }}"
|
||||||
var oid_likes = "likes_{{ $path }}"
|
var oid_likes = "likes_{{ $path }}"
|
||||||
</script>
|
</script>
|
||||||
|
{{ end }}
|
||||||
{{ $jsPage := resources.Get "js/page.js" }}
|
{{ $jsPage := resources.Get "js/page.js" }}
|
||||||
{{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }}
|
{{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }}
|
||||||
<script type="text/javascript" src="{{ $jsPage.RelPermalink }}" integrity="{{ $jsPage.Data.Integrity }}"></script>
|
<script type="text/javascript" src="{{ $jsPage.RelPermalink }}" integrity="{{ $jsPage.Data.Integrity }}"></script>
|
||||||
|
|
Loading…
Reference in a new issue