Rename render.tmpl to post-render.tmpl

pull/31/head
Matt Baer 6 years ago
parent 03c36af2f9
commit 2b5e869916
  1. 2
      templates.go
  2. 0
      templates/include/post-render.tmpl

@ -59,7 +59,7 @@ func initTemplate(name string) {
files = append(files, filepath.Join(templatesDir, "include", "posts.tmpl")) files = append(files, filepath.Join(templatesDir, "include", "posts.tmpl"))
} }
if name == "collection" || name == "collection-tags" || name == "collection-post" || name == "post" { if name == "collection" || name == "collection-tags" || name == "collection-post" || name == "post" {
files = append(files, filepath.Join(templatesDir, "include", "render.tmpl")) files = append(files, filepath.Join(templatesDir, "include", "post-render.tmpl"))
} }
templates[name] = template.Must(template.New("").Funcs(funcMap).ParseFiles(files...)) templates[name] = template.Must(template.New("").Funcs(funcMap).ParseFiles(files...))
} }

Loading…
Cancel
Save