From 50f608846f1021db4f2335744cc023231fb74652 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Thu, 9 Feb 2017 20:14:46 -0800 Subject: fix some templates, add verbose-logger --- site/init.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'site') diff --git a/site/init.go b/site/init.go index dc17cfa..02a7586 100644 --- a/site/init.go +++ b/site/init.go @@ -27,7 +27,6 @@ var skeletons = []skeleton { {{template "title" .}} -

{{template "title"}}

{{template "content" .}}

Home

@@ -55,9 +54,10 @@ var skeletons = []skeleton { Dir: "tmpl", Filename: "post", Content: []byte( -`{{define "title"}}{{ .Post.Title }}{{end}} +`{{define "title"}}{{.Post.Title}} - {{.Site.Title}}{{end}} {{define "content"}} -

{{ .Post.Title }}

+

{{.Site.Title}}

+

{{.Post.Title}}

{{.Post.Content}} {{if .Post.Next.Title}}

{{.Post.Next.Title}}

@@ -74,6 +74,7 @@ var skeletons = []skeleton { `{{define "title"}}{{.Site.Title}} Archives{{end}} {{define "content"}}

{{ .Site.Title }}

+

Archives

{{range .Posts}} {{if .}}

{{.Title}}

{{end}} {{end}} @@ -124,6 +125,8 @@ func Init(directory string) { } var cfg = config.Settings{ + SiteTitle: "snkt", + SiteURL: "", TxtDir: path.Join(init_dir, "txt"), HtmlDir: path.Join(init_dir, "html"), TmplDir: path.Join(init_dir, "tmpl"), -- cgit v1.2.3