An HTML-only Bluesky frontend
at main 77 lines 1.9 kB view raw
1{{define "post"}} 2<article> 3 <table> 4 <tr> 5 <td> 6 <img src="{{.Post.Author.Avatar}}" alt="{{.Post.Author.DisplayName}}'s avatar" width="50" height="50"> 7 </td> 8 <td> 9 <h1 style="margin:0;">{{.Post.Author.DisplayName}}</h1> 10 <span><a href="/profile/{{.Post.Author.Handle}}">@{{.Post.Author.Handle}}</a></span> 11 </td> 12 </tr> 13 </table> 14 15 <p>{{.Post.Record.HTML}}</p> 16 17 <!--<section> 18 {{template "image_embed" .}} 19 {{template "post_embed" .}} 20 {{template "external_embed" .}} 21 </section>--> 22 23 <time datetime="{{.Post.Record.CreatedAt}}" class="date"> 24 <i>{{.Post.Record.CreatedAt.Format "Jan 02, 2006 at 15:04 UTC"}}</i> 25 </time> 26 27 <p class="counts"> 28 <b>{{.Post.ReplyCount}}</b> replies 29 <b>{{.Post.RepostCount}}</b> reposts 30 <b>{{.Post.LikeCount}}</b> likes 31 </p> 32 33 <hr> 34</article> 35{{end}} 36 37{{define "post_reply"}} 38<article> 39 <table> 40 <tr> 41 <td> 42 <img src="{{.Post.Author.Avatar}}" alt="{{.Post.Author.DisplayName}}'s avatar" width="40" height="40"> 43 </td> 44 <td> 45 <span> 46 <b>{{.Post.Author.DisplayName}}</b> 47 <a href="/profile/{{.Post.Author.Handle}}">@{{.Post.Author.Handle}}</a> 48 </span> 49 <br> 50 [ <a href="/profile/{{.Post.Author.Handle}}/post/{{.Post.RKey}}">View</a> ] 51 <time datetime="{{.Post.Record.CreatedAt}}" class="date"> 52 <i>{{.Post.Record.CreatedAt.Format "Jan 02, 2006 at 15:04 UTC"}}</i> 53 </time> 54 </td> 55 </tr> 56 </table> 57 58 <p>{{.Post.Record.HTML}}</p> 59 <!--<section> 60 {{template "image_embed" .}} 61 {{template "post_embed" .}} 62 {{template "external_embed" .}} 63 </section>--> 64 65 <p class="counts"> 66 <b>{{.Post.ReplyCount}}</b> replies 67 <b>{{.Post.RepostCount}}</b> reposts 68 <b>{{.Post.LikeCount}}</b> likes 69 </p> 70 71 <hr> 72</article> 73{{end}} 74 75{{define "feed_post"}} 76{{template "post_reply" .}} 77{{end}}