Add html doctype to baseof.html template for new themes - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit b5a3aa7082135d0a573f4fbb00f798e26b67b902
DIR parent 3d5928889ad74ff88b80354b791e3a4dfb84f278
HTML Author: openscript <1105080+openscript@users.noreply.github.com>
Date: Mon, 25 Jun 2018 11:38:44 +0200
Add html doctype to baseof.html template for new themes
Diffstat:
M commands/new_theme.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git 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" . -}}