Better contexts when only URL is available
As it's mostly Twitter:
diff --git layouts/partials/mf2/reposts.html layouts/partials/mf2/reposts.html
index 10618cd..7c7a2f4 100644
--- layouts/partials/mf2/reposts.html
+++ layouts/partials/mf2/reposts.html
@@ -6,7 +6,12 @@
{{- with .Params.Properties.Name }}
{{- index . 0 }}
{{- else }}
- {{- index (index .Params.Properties "repost-of") 0 }}
+ {{ $url := index (index .Params.Properties "repost-of") 0 }}
+ {{- if in $url "twitter.com" }}
+ A tweet by {{ index (split $url "/") 3 }}
+ {{- else -}}
+ {{- $url -}}
+ {{- end -}}
{{- end }}
</a>
</p>
@@ -20,7 +25,12 @@
{{- with .Params.Properties.Name }}
{{- index . 0 }}
{{- else }}
- {{- index (index .Params.Properties "repost-of") 0 }}
+ {{ $url := index (index .Params.Properties "repost-of") 0 }}
+ {{- if in $url "twitter.com" }}
+ A tweet by {{ index (split $url "/") 3 }}
+ {{- else -}}
+ {{- $url -}}
+ {{- end -}}
{{- end }}
</a>
</p>