An HTML-only Bluesky frontend
at main 19 lines 349 B view raw
1package main 2 3import ( 4 "bytes" 5 "fmt" 6 "html/template" 7 8 "git.sr.ht/~jordanreger/bsky" 9) 10 11func GetListPage(list bsky.List) string { 12 t := template.Must(template.ParseFS(publicFiles, "public/*")) 13 var list_page bytes.Buffer 14 err := t.ExecuteTemplate(&list_page, "list.html", list) 15 if err != nil { 16 fmt.Println(err) 17 } 18 return list_page.String() 19}