mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Add html doctype to baseof.html template for new themes
This commit is contained in:
@@ -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", "list.html")
|
||||||
touchFile(cfg.Fs.Source, createpath, "layouts", "_default", "single.html")
|
touchFile(cfg.Fs.Source, createpath, "layouts", "_default", "single.html")
|
||||||
|
|
||||||
baseofDefault := []byte(`<html>
|
baseofDefault := []byte(`<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
<body>
|
<body>
|
||||||
{{- partial "header.html" . -}}
|
{{- partial "header.html" . -}}
|
||||||
|
Reference in New Issue
Block a user