Add html doctype to baseof.html template for new themes
authoropenscript <1105080+openscript@users.noreply.github.com>
Mon, 25 Jun 2018 09:38:44 +0000 (11:38 +0200)
committerAnthony Fok <foka@debian.org>
Mon, 25 Jun 2018 18:06:45 +0000 (12:06 -0600)
commands/new_theme.go

index c09ec027daf5dcf2372bb0946c38d88f3cb9e549..10741e05612178a5bdcb7bf032dce07c35abe525 100644 (file)
@@ -80,7 +80,8 @@ func (n *newThemeCmd) newTheme(cmd *cobra.Command, args []string) error {
        touchFile(cfg.Fs.Source, createpath, "layouts", "_default", "list.html")
        touchFile(cfg.Fs.Source, createpath, "layouts", "_default", "single.html")
 
-       baseofDefault := []byte(`<html>
+       baseofDefault := []byte(`<!DOCTYPE html>
+<html>
     {{- partial "head.html" . -}}
     <body>
         {{- partial "header.html" . -}}