Last active
May 7, 2018 15:47
-
-
Save dg01d/43684474ca03c95e489d057545e6ed0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ $mention_ids := index $.Site.Data.wm_io.index .URL }} | |
{{ $mentions := apply $mention_ids "index" $.Site.Data.wm_io.mentions "." }} | |
{{ $mentions := sort $mentions "wm-received" }} | |
{{ range $mentions }} | |
<ul> | |
{{- if or ("repost-of") ("like-of") }} | |
<li>Liked by {{ .author.name | markdownify }}</li> | |
{{- end}} | |
</ul> | |
{{ end }} | |
{{ $mention_id := index $.Site.Data.wm_io.index .URL }} | |
{{ $mentions := apply $mention_ids "index" $.Site.Data.wm_io.mentions "." }} | |
{{ $mentions := sort $mentions "wm-received" }} | |
{{ range $mentions }} | |
<h5>Responses</h5> | |
{{- if ("reply-to") }} | |
<h6>{{ .author.name | markdownify }}</h6> | |
<p>{{ .content.text | markdownify }}</p> | |
{{- end}} | |
{{ end }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment