move canonical favicon.ico here
This commit is contained in:
parent
7a239e0a78
commit
35669e7100
@ -29,10 +29,10 @@ func ensureDir(dir string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func copyFile(src, dst string) {
|
func copyFile(src, dst string) {
|
||||||
txt := mustReadFile(src)
|
dat, err := ioutil.ReadFile(src)
|
||||||
dstF, err := os.Create(dst)
|
check(err)
|
||||||
|
err = ioutil.WriteFile(dst, dat, 0644)
|
||||||
check(err)
|
check(err)
|
||||||
fmt.Fprint(dstF, txt)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func pipe(bin string, arg []string, src string) []byte {
|
func pipe(bin string, arg []string, src string) []byte {
|
||||||
@ -238,6 +238,7 @@ func main() {
|
|||||||
whichSiteDir()
|
whichSiteDir()
|
||||||
ensureDir(siteDir)
|
ensureDir(siteDir)
|
||||||
copyFile("template/site.css", siteDir+"/site.css")
|
copyFile("template/site.css", siteDir+"/site.css")
|
||||||
|
copyFile("template/favicon.ico", siteDir+"/favicon.ico")
|
||||||
chapters := parseChapters()
|
chapters := parseChapters()
|
||||||
renderIndex(chapters)
|
renderIndex(chapters)
|
||||||
renderChapters(chapters)
|
renderChapters(chapters)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user