Add support for custom CSS files #11
Loading…
Reference in a new issue
No description provided.
Delete branch "f/twins:custom-css"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Specify the
styles
config option for a host and point to avalid CSS file to use this instead of the default one. This fixes #9.
Any update on this?
Thanks for submitting these changes.
@ -81,6 +81,11 @@ Set this option to `true` to disable this feature.
Pages are converted automatically by [gmitohtml](https://code.rocketnine.space/tslocum/gmitohtml).
## Styles
Please rename the option to StyleSheet.
Renamed it to
StyleSheet
@ -34,0 +40,4 @@
return http.StatusNotFound, -1, ""
}
cssBytes, err = ioutil.ReadFile(styleFilepath)
Please load the custom style sheets during server initialization, so that they only need to be loaded once.
Please do not overwrite cssBytes, as it may be used by hosts which lack a custom style sheet.
I've put it in the
config.go
, which seems the right place to do it.