projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d59288
)
Add html doctype to baseof.html template for new themes
author
openscript
<1105080+openscript@users.noreply.github.com>
Mon, 25 Jun 2018 09:38:44 +0000
(11:38 +0200)
committer
Anthony Fok
<foka@debian.org>
Mon, 25 Jun 2018 18:06:45 +0000
(12:06 -0600)
commands/new_theme.go
patch
|
blob
|
history
diff --git
a/commands/new_theme.go
b/commands/new_theme.go
index c09ec027daf5dcf2372bb0946c38d88f3cb9e549..10741e05612178a5bdcb7bf032dce07c35abe525 100644
(file)
--- 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" . -}}