mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-28 16:56:26 +00:00
rename templates
This commit is contained in:
parent
c9d9bfbf14
commit
0fe344a1a9
2
.gitignore
vendored
2
.gitignore
vendored
@ -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
|
||||||
|
0
tmpl/tmpl.html → tmpl/index.tmpl.html
vendored
0
tmpl/tmpl.html → tmpl/index.tmpl.html
vendored
Loading…
Reference in New Issue
Block a user