mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-20 20:41:52 +02:00
fix: .File.Path warnings
This commit is contained in:
parent
089b0cd093
commit
d4b0da0cf2
4 changed files with 9 additions and 9 deletions
|
@ -21,8 +21,8 @@
|
|||
</div>
|
||||
{{ with .File }}
|
||||
<script>
|
||||
var oid = "views_{{ .Path }}"
|
||||
var oid_likes = "likes_{{ .Path }}"
|
||||
var oid = "views_{{ with .File }}{{ .Path }}{{ end }}"
|
||||
var oid_likes = "likes_{{ with .File }}{{ .Path }}{{ end }}"
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ $jsPage := resources.Get "js/page.js" }}
|
||||
|
@ -141,4 +141,4 @@
|
|||
|
||||
{{ partial "pagination.html" . }}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -88,8 +88,8 @@
|
|||
|
||||
{{ with .File }}
|
||||
<script>
|
||||
var oid = "views_{{ .Path }}"
|
||||
var oid_likes = "likes_{{ .Path }}"
|
||||
var oid = "views_{{ with .File }}{{ .Path }}{{ end }}"
|
||||
var oid_likes = "likes_{{ with .File }}{{ .Path }}{{ end }}"
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ $jsPage := resources.Get "js/page.js" }}
|
||||
|
@ -114,4 +114,4 @@
|
|||
{{ end }}
|
||||
</footer>
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
{{ else if eq .Kind "term"}}
|
||||
<span id="likes_term_{{ .Page.Data.Term }}"
|
||||
{{ else }}
|
||||
<span id="likes_{{ .File.Path }}"
|
||||
<span id="likes_{{ with .File }}{{ .Path }}{{ end }}" title="likes">0</span>
|
||||
{{ end }}
|
||||
class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="likes">loading</span>
|
||||
<span class="inline-block align-text-bottom">{{ partial "icon.html" "heart" }}</span>
|
||||
</span>
|
||||
{{- /* Trim EOF */ -}}
|
||||
{{- /* Trim EOF */ -}}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{ else if eq .Kind "term"}}
|
||||
<span id="views_term_{{ .Page.Data.Term }}"
|
||||
{{ else }}
|
||||
<span id="views_{{ .File.Path }}"
|
||||
<span id="views_{{ with .File }}{{ .Path }}{{ end }}" title="views">0</span>
|
||||
{{ end }}
|
||||
class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="views">loading</span>
|
||||
<span class="inline-block align-text-bottom">{{ partial "icon.html" "eye" }}</span>
|
||||
|
|
Loading…
Add table
Reference in a new issue