shithub: hugo

Download patch

ref: b5a3aa7082135d0a573f4fbb00f798e26b67b902
parent: 3d5928889ad74ff88b80354b791e3a4dfb84f278
author: openscript <[email protected]>
date: Mon Jun 25 07:38:44 EDT 2018

Add html doctype to baseof.html template for new themes

--- a/commands/new_theme.go
+++ b/commands/new_theme.go
@@ -80,7 +80,8 @@
 	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" . -}}