mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-23 06:55:43 -06:00
fixed small bug on pr #1359
This commit is contained in:
parent
b0aa7298b5
commit
6ae4f4b71c
2 changed files with 11 additions and 7 deletions
|
@ -19,9 +19,10 @@
|
||||||
<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>
|
||||||
|
{{ $translations := .AllTranslations }}
|
||||||
{{ with .File }}
|
{{ with .File }}
|
||||||
{{ $path := .File.Path }}
|
{{ $path := .Path }}
|
||||||
{{range .AllTranslations}}
|
{{range $translations}}
|
||||||
{{ $lang := print "." .Lang ".md" }}
|
{{ $lang := print "." .Lang ".md" }}
|
||||||
{{ $path = replace $path $lang ".md" }}
|
{{ $path = replace $path $lang ".md" }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -86,15 +86,18 @@
|
||||||
{{ partial "related.html" . }}
|
{{ partial "related.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ $path := .File.Path }}
|
{{ $translations := .AllTranslations }}
|
||||||
{{range .AllTranslations}}
|
{{ with .File }}
|
||||||
{{ $lang := print "." .Lang ".md" }}
|
{{ $path := .Path }}
|
||||||
{{ $path = replace $path $lang ".md" }}
|
{{range $translations}}
|
||||||
{{end}}
|
{{ $lang := print "." .Lang ".md" }}
|
||||||
|
{{ $path = replace $path $lang ".md" }}
|
||||||
|
{{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