css?
This commit is contained in:
parent
f5d2f379a9
commit
68a4b4bede
4 changed files with 4 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -38,7 +38,7 @@ func main() {
|
||||||
os.MkdirAll("www/styles", 0777)
|
os.MkdirAll("www/styles", 0777)
|
||||||
generateHTML()
|
generateHTML()
|
||||||
fmt.Println("generating css")
|
fmt.Println("generating css")
|
||||||
t, err := template.ParseGlob(`templates/styles/*.css`)
|
t, err := template.ParseGlob(`templates/styles/*`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
@ -47,7 +47,7 @@ func main() {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
err = t.ExecuteTemplate(file, "style.css", nil)
|
err = t.ExecuteTemplate(file, "style.gohtml", nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,7 @@
|
||||||
{{template "layout.css"}}
|
{{template "layout.css"}}
|
||||||
{{template "wyroby.css"}}
|
{{template "wyroby.css"}}
|
||||||
{{template "wyroby_torty.css"}}
|
{{template "wyroby_torty.css"}}
|
||||||
|
{{template "wyroby_slodkie_stoly.css"}}
|
||||||
|
{{template "wyroby_lody.css"}}
|
||||||
{{template "portfolio.css"}}
|
{{template "portfolio.css"}}
|
||||||
{{template "kawiarnia.css"}}
|
{{template "kawiarnia.css"}}
|
||||||
0
templates/styles/wyroby_lody.css
Normal file
0
templates/styles/wyroby_lody.css
Normal file
0
templates/styles/wyroby_slodkie_stoly.css
Normal file
0
templates/styles/wyroby_slodkie_stoly.css
Normal file
Loading…
Add table
Add a link
Reference in a new issue