]> git.earlybird.gay Git - today/commitdiff
quit being silly and remember that Static exists. make a mental note to do this less... main
authorearly <me@earlybird.gay>
Sat, 21 Dec 2024 01:08:36 +0000 (18:08 -0700)
committerearly <me@earlybird.gay>
Sat, 21 Dec 2024 01:08:36 +0000 (18:08 -0700)
web/page/page.go

index 3aadeb05a18fdb24ddab31a318c18b83c7c7a01e..7d6234144166a807b77f51e63c31d65ed46dd696 100644 (file)
@@ -183,6 +183,7 @@ func Static(source string) *Page {
                return p
        }
 
                return p
        }
 
+       p.raws = make(map[language.Tag]string)
        renderables := make(map[language.Tag]*renderable)
        for _, result := range results {
                p.raws[result.Language] = result.TemplateRaw
        renderables := make(map[language.Tag]*renderable)
        for _, result := range results {
                p.raws[result.Language] = result.TemplateRaw