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