rename templates
This commit is contained in:
parent
c9d9bfbf14
commit
0fe344a1a9
|
@ -8,5 +8,3 @@ test_stale_repositories_log
|
||||||
*.exe
|
*.exe
|
||||||
# Local Netlify folder
|
# Local Netlify folder
|
||||||
.netlify
|
.netlify
|
||||||
*.html
|
|
||||||
sitemap.xml
|
|
||||||
|
|
6
main.go
6
main.go
|
@ -38,9 +38,9 @@ var staticFiles = []string{
|
||||||
|
|
||||||
// TODO: embed
|
// TODO: embed
|
||||||
// Templates
|
// Templates
|
||||||
var tplIndex = template.Must(template.ParseFiles("tmpl/tmpl.html"))
|
var tplIndex = template.Must(template.ParseFiles("tmpl/index.tmpl.html"))
|
||||||
var tplCategoryIndex = template.Must(template.ParseFiles("tmpl/cat-tmpl.html"))
|
var tplCategoryIndex = template.Must(template.ParseFiles("tmpl/category-index.tmpl.html"))
|
||||||
var tplSitemap = template.Must(template.ParseFiles("tmpl/sitemap-tmpl.xml"))
|
var tplSitemap = template.Must(template.ParseFiles("tmpl/sitemap.tmpl.xml"))
|
||||||
|
|
||||||
// Output files
|
// Output files
|
||||||
const outDir = "out/" // NOTE: trailing slash is required
|
const outDir = "out/" // NOTE: trailing slash is required
|
||||||
|
|
Loading…
Reference in New Issue