mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-23 12:11:52 +02:00
Fixed lack in consistency in the views and likes system when the site is built on Windows vs other OS.
This commit is contained in:
parent
6b0d6164ef
commit
866d2bf48f
4 changed files with 6 additions and 6 deletions
|
@ -20,8 +20,8 @@
|
||||||
{{ partial "article-meta/list.html" (dict "context" . "scope" "single") }}
|
{{ partial "article-meta/list.html" (dict "context" . "scope" "single") }}
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
var oid = "views_{{ .File.Path }}"
|
var oid = "views_{{ replace .File.Path "\\" "/" }}"
|
||||||
var oid_likes = "likes_{{ .File.Path }}"
|
var oid_likes = "likes_{{ replace .File.Path "\\" "/" }}"
|
||||||
</script>
|
</script>
|
||||||
{{ $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" }}
|
||||||
|
|
|
@ -44,8 +44,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var oid = "views_{{ .File.Path }}"
|
var oid = "views_{{ replace .File.Path "\\" "/" }}"
|
||||||
var oid_likes = "likes_{{ .File.Path }}"
|
var oid_likes = "likes_{{ replace .File.Path "\\" "/" }}"
|
||||||
</script>
|
</script>
|
||||||
{{ $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" }}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{{ else if eq .Kind "term"}}
|
{{ else if eq .Kind "term"}}
|
||||||
<span id="likes_term_{{ .Page.Data.Term }}" title="likes">0</span>
|
<span id="likes_term_{{ .Page.Data.Term }}" title="likes">0</span>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<span id="likes_{{ .File.Path }}" title="likes">0</span>
|
<span id="likes_{{ replace .File.Path "\\" "/" }}" title="likes">0</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<span class="inline-block align-text-bottom">{{ partial "icon.html" "heart" }}</span>
|
<span class="inline-block align-text-bottom">{{ partial "icon.html" "heart" }}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{{ else if eq .Kind "term"}}
|
{{ else if eq .Kind "term"}}
|
||||||
<span id="views_term_{{ .Page.Data.Term }}" title="views">0</span>
|
<span id="views_term_{{ .Page.Data.Term }}" title="views">0</span>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<span id="views_{{ .File.Path }}" title="views">0</span>
|
<span id="views_{{ replace .File.Path "\\" "/" }}" title="views">0</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<span class="inline-block align-text-bottom">{{ partial "icon.html" "eye" }}</span>
|
<span class="inline-block align-text-bottom">{{ partial "icon.html" "eye" }}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Add table
Reference in a new issue