www.byjp.me/layouts/partials/friend.html
JP Hastings-Spital e7c8e60bcc Facebook import
I kinda screwed with everything else to homogenise all the functions - the FB stuff works, but I've definitely broken some of the other importers.

I can work on fixing them in the future if I need them; otherwise others can look at previous commits!
2024-04-04 17:11:14 +01:00

6 lines
No EOL
311 B
HTML

{{ $parts := strings.Split . "." -}}
{{- with index site.Data.friends (index $parts 0) -}}
<span class="h-card{{ range collections.Last (sub (len $parts) 1) $parts }} {{.}}{{ end }}"><a href="{{.site}}" rel="{{.xfn}}" class="u-url p-name" target="_blank">{{.name}}</a></span>
{{- else -}}
{{ . }}
{{- end }}