mirror of
https://github.com/avelino/awesome-go.git
synced 2025-04-14 17:32:57 -04:00
rename templates
This commit is contained in:
parent
c9d9bfbf14
commit
0fe344a1a9
5 changed files with 3 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -8,5 +8,3 @@ test_stale_repositories_log
|
|||
*.exe
|
||||
# Local Netlify folder
|
||||
.netlify
|
||||
*.html
|
||||
sitemap.xml
|
||||
|
|
6
main.go
6
main.go
|
@ -38,9 +38,9 @@ var staticFiles = []string{
|
|||
|
||||
// TODO: embed
|
||||
// Templates
|
||||
var tplIndex = template.Must(template.ParseFiles("tmpl/tmpl.html"))
|
||||
var tplCategoryIndex = template.Must(template.ParseFiles("tmpl/cat-tmpl.html"))
|
||||
var tplSitemap = template.Must(template.ParseFiles("tmpl/sitemap-tmpl.xml"))
|
||||
var tplIndex = template.Must(template.ParseFiles("tmpl/index.tmpl.html"))
|
||||
var tplCategoryIndex = template.Must(template.ParseFiles("tmpl/category-index.tmpl.html"))
|
||||
var tplSitemap = template.Must(template.ParseFiles("tmpl/sitemap.tmpl.xml"))
|
||||
|
||||
// Output files
|
||||
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…
Add table
Reference in a new issue