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

12
main.go
View File

@ -26,25 +26,23 @@ type Object struct {
Items []Link Items []Link
} }
// Source // Source files
const readmePath = "README.md" 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{ var staticFiles = []string{
"tmpl/assets", "tmpl/assets",
"tmpl/_redirects", "tmpl/_redirects",
"tmpl/robots.txt", "tmpl/robots.txt",
} }
// Templates // Template files
const tplPath = "tmpl/tmpl.html" const tplPath = "tmpl/tmpl.html"
const tmplCategory = "tmpl/cat-tmpl.html" const tmplCategory = "tmpl/cat-tmpl.html"
const tmplSitemap = "tmpl/sitemap-tmpl.xml" const tmplSitemap = "tmpl/sitemap-tmpl.xml"
// Output // Output files
const outDir = "out/" // NOTE: trailing slash is required
// NOTE: trailing slash is required
const outDir = "out/"
var outIndexFile = filepath.Join(outDir, "index.html") var outIndexFile = filepath.Join(outDir, "index.html")
var outSitemapFile = filepath.Join(outDir, "sitemap.xml") var outSitemapFile = filepath.Join(outDir, "sitemap.xml")