diff --git a/README.md b/README.md index fa944c94..b52dee0a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,14 @@ [![community](https://img.shields.io/badge/community-forum-ff69b4.svg?style=flat-square)](https://forum.caddyserver.com) [![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/hacdias/caddy-filemanager) -This is just a concept of syntax: +## Roadmap + ++ [ ] Rename files ++ [ ] Delete files ++ [ ] Show text files ++ [ ] Show pictures ++ [ ] Show videos ++ [ ] Show music ``` filemanager { diff --git a/filemanager.go b/filemanager.go index db5f328f..32d629b0 100644 --- a/filemanager.go +++ b/filemanager.go @@ -240,8 +240,9 @@ func (f FileManager) formatAsJSON(listing *Listing, bc *Config) (*bytes.Buffer, return buf, err } -func (f FileManager) formatAsHTML(listing *Listing, bc *Config) (*bytes.Buffer, error) { +func (f FileManager) formatAsHTML(listing *Listing, fmc *Config) (*bytes.Buffer, error) { buf := new(bytes.Buffer) + listing.StyleSheet = fmc.StyleSheet err := Template.Execute(buf, listing) return buf, err } diff --git a/setup.go b/setup.go index b66a4e94..94831db7 100644 --- a/setup.go +++ b/setup.go @@ -103,7 +103,7 @@ func fileManagerParse(c *caddy.Controller) ([]Config, error) { } fmc.StyleSheet = string(tplBytes) } else { - tplBytes, err := assets.Asset("template.tmpl") + tplBytes, err := assets.Asset("styles.css") if err != nil { return configs, err }