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) {
|
||||
txt := mustReadFile(src)
|
||||
dstF, err := os.Create(dst)
|
||||
dat, err := ioutil.ReadFile(src)
|
||||
check(err)
|
||||
err = ioutil.WriteFile(dst, dat, 0644)
|
||||
check(err)
|
||||
fmt.Fprint(dstF, txt)
|
||||
}
|
||||
|
||||
func pipe(bin string, arg []string, src string) []byte {
|
||||
@ -238,6 +238,7 @@ func main() {
|
||||
whichSiteDir()
|
||||
ensureDir(siteDir)
|
||||
copyFile("template/site.css", siteDir+"/site.css")
|
||||
copyFile("template/favicon.ico", siteDir+"/favicon.ico")
|
||||
chapters := parseChapters()
|
||||
renderIndex(chapters)
|
||||
renderChapters(chapters)
|
||||
|
Loading…
x
Reference in New Issue
Block a user