Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropenscript <1105080+openscript@users.noreply.github.com>2018-06-25 12:38:44 +0300
committerAnthony Fok <foka@debian.org>2018-06-25 21:06:45 +0300
commitb5a3aa7082135d0a573f4fbb00f798e26b67b902 (patch)
tree8f9ad8aa38701bdd6e5bd588fe5586e86f130528 /commands
parent3d5928889ad74ff88b80354b791e3a4dfb84f278 (diff)
Add html doctype to baseof.html template for new themes
Diffstat (limited to 'commands')
-rw-r--r--commands/new_theme.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/new_theme.go b/commands/new_theme.go
index c09ec027d..10741e056 100644
--- a/commands/new_theme.go
+++ b/commands/new_theme.go
@@ -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" . -}}