mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
change comments
This commit is contained in:
parent
2387ec4bb9
commit
dc33e720e7
12
main.go
12
main.go
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user