rename templates

This commit is contained in:
Kirill Zhuravlev 2023-02-20 21:24:47 +01:00 committed by Avelino
parent c9d9bfbf14
commit 0fe344a1a9
No known key found for this signature in database
GPG Key ID: B345B4D52E98180A
5 changed files with 3 additions and 5 deletions

2
.gitignore vendored
View File

@ -8,5 +8,3 @@ test_stale_repositories_log
*.exe *.exe
# Local Netlify folder # Local Netlify folder
.netlify .netlify
*.html
sitemap.xml

View File

@ -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