An experimental IndieWeb site built in Go.
at main 746 B view raw
1package components 2 3import "github.com/puregarlic/space/storage" 4 5templ Head(title string) { 6 <head> 7 if len(title) > 0 { 8 <title>{ title } | puregarlic dot space</title> 9 } else { 10 <title>puregarlic dot space</title> 11 } 12 <meta name="viewport" content="width=device-width, initial-scale=1"/> 13 <link rel="preconnect" href="https://fonts.googleapis.com"/> 14 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/> 15 <link href="https://fonts.googleapis.com/css2?family=Recursive:slnt,wght,CASL,CRSV,MONO@-15..0,300..1000,0..1,0..1,0..1&display=swap" rel="stylesheet"/> 16 for _, rel := range storage.GetRels() { 17 <link rel={ rel.Name } href={ rel.HREF }/> 18 } 19 <link rel="stylesheet" href="/static/styles.css"/> 20 </head> 21}