diff --git a/inkssg.go b/inkssg.go index a5afaf7..94df8a1 100644 --- a/inkssg.go +++ b/inkssg.go @@ -379,7 +379,7 @@ func (s *Site) copyTheme(themeDir string) error { } if themeDir == "" && hasEmbeddedThemes() { - files := []string{"layout.html", "styles.css", "script.js"} + files := []string{"styles.css", "script.js"} for _, f := range files { data, err := themeFS.ReadFile("themes/" + s.Theme + "/" + f) if err == nil { @@ -394,6 +394,9 @@ func (s *Site) copyTheme(themeDir string) error { if entry.IsDir() { continue } + if entry.Name() == "layout.html" { + continue + } src := filepath.Join(themeDir, entry.Name()) dst := filepath.Join(outputTheme, entry.Name()) data, _ := os.ReadFile(src)