change comments

This commit is contained in:
Kirill Zhuravlev 2023-02-14 18:58:36 +01:00 committed by Avelino
parent 2387ec4bb9
commit dc33e720e7
No known key found for this signature in database
GPG Key ID: B345B4D52E98180A
1 changed files with 5 additions and 7 deletions

12
main.go
View File

@ -26,25 +26,23 @@ type Object struct {
Items []Link
}
// Source
// Source files
const readmePath = "README.md"
// NOTE: this files should be copied as is to outDir directory
// This files should be copied 'as is' to outDir directory
var staticFiles = []string{
"tmpl/assets",
"tmpl/_redirects",
"tmpl/robots.txt",
}
// Templates
// Template files
const tplPath = "tmpl/tmpl.html"
const tmplCategory = "tmpl/cat-tmpl.html"
const tmplSitemap = "tmpl/sitemap-tmpl.xml"
// Output
// NOTE: trailing slash is required
const outDir = "out/"
// Output files
const outDir = "out/" // NOTE: trailing slash is required
var outIndexFile = filepath.Join(outDir, "index.html")
var outSitemapFile = filepath.Join(outDir, "sitemap.xml")