Browse Source

maybe fixing likes, shares display

master
jk 4 years ago
parent
commit
91ac9dcf15
  1. 2
      themes/nipponalba/layouts/_default/single.html
  2. 4
      themes/nipponalba/layouts/partials/likes.html
  3. 4
      themes/nipponalba/layouts/partials/shares.html

2
themes/nipponalba/layouts/_default/single.html

@ -27,7 +27,7 @@
<section class="info"> <section class="info">
{{ if not (eq .Type "article") }}<span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span>{{ end }} {{ if not (eq .Type "article") }}<span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span>{{ end }}
{{ $pathJSON := (print .Permalink "bridgy.json") }} {{ $pathJSON := (print .Permalink "bridgy.json") }}
{{ $relpathJSON := (print .Permalink "bridgy.json") }}
{{ $relpathJSON := (print .RelPermalink "bridgy.json") }}
{{ if fileExists $relpathJSON }} {{ if fileExists $relpathJSON }}
<span class="syndication"> <span class="syndication">
{{ $mJSON := getJSON $pathJSON }} {{ $mJSON := getJSON $pathJSON }}

4
themes/nipponalba/layouts/partials/likes.html

@ -1,7 +1,5 @@
{{ range . }} {{ range . }}
{{ $_wm_property := "wm-property" }}
{{ .Params.wm_property }}
{{ if eq "wm-property" "life-of"}}
{{ if eq (index . "wm-property") "in-reply-to" }}
<a href="{{ .author.url }}"><img class="remote_profile" src="{{ .author.photo }}" title="{{ .author.name }}" alt="{{ .author.name }}" /></a> <a href="{{ .author.url }}"><img class="remote_profile" src="{{ .author.photo }}" title="{{ .author.name }}" alt="{{ .author.name }}" /></a>
{{ end }} {{ end }}
{{ end }} {{ end }}

4
themes/nipponalba/layouts/partials/shares.html

@ -1,5 +1,5 @@
{{ range . }} {{ range . }}
{{ if eq .mention_type "repost" }}
<a href="{{ .author.url }}"><img class="remote_profile" src="{{ .author.photo_url }}" title="{{ .author.name }}" alt="{{ .author.name }}" /></a>
{{ if eq (index . "wm-property") "repost-of" }}
<a href="{{ .author.url }}"><img class="remote_profile" src="{{ .author.photo }}" title="{{ .author.name }}" alt="{{ .author.name }}" /></a>
{{ end }} {{ end }}
{{ end }} {{ end }}