mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-23 14:53:12 +01:00
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!
6 lines
No EOL
311 B
HTML
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 }} |