An experimental IndieWeb site built in Go.
at main 1.3 kB view raw
1package pages 2 3import ( 4 "github.com/puregarlic/space/html/components/posts" 5 "github.com/puregarlic/space/models" 6) 7 8templ Post(post *models.Post) { 9 <div class="flex flex-col gap-8"> 10 <a href="/" class="text-sm text-muted flex items-center gap-1"> 11 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="size-4"> 12 <path fill-rule="evenodd" d="M14 8a.75.75 0 0 1-.75.75H4.56l1.22 1.22a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 1.06L4.56 7.25h8.69A.75.75 0 0 1 14 8Z" clip-rule="evenodd"></path> 13 </svg> 14 back to home 15 </a> 16 <div> 17 @posts.PostContent(post) 18 </div> 19 @posts.PostDetails(post) 20 <div class="py-12 flex flex-col gap-1 items-center text-muted text-xs font-light"> 21 interactions not implemented yet 22 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="size-4"> 23 <path fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM6 8c.552 0 1-.672 1-1.5S6.552 5 6 5s-1 .672-1 1.5S5.448 8 6 8Zm5-1.5c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5S9.448 5 10 5s1 .672 1 1.5Zm-6.005 5.805a.75.75 0 0 0 1.06 0 2.75 2.75 0 0 1 3.89 0 .75.75 0 0 0 1.06-1.06 4.25 4.25 0 0 0-6.01 0 .75.75 0 0 0 0 1.06Z" clip-rule="evenodd"></path> 24 </svg> 25 </div> 26 </div> 27}