Skip to content

Instantly share code, notes, and snippets.

@dg01d
Last active May 7, 2018 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dg01d/43684474ca03c95e489d057545e6ed0f to your computer and use it in GitHub Desktop.
Save dg01d/43684474ca03c95e489d057545e6ed0f to your computer and use it in GitHub Desktop.
{{ $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