Browse Source

Allow developers to reference CSS

pull/5/head
Trevor Slocum 1 year ago
parent
commit
dd70c77b18
  1. 9
      pkg/gmitohtml/assets.go

9
pkg/gmitohtml/assets.go

@ -37,8 +37,8 @@ const pageFooter = `
</html>
`
func loadAssets() {
fs["/assets/style.css"] = loadFile("style.css", `
// StyleCSS specifies page styling.
const StyleCSS = `
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
@ -482,5 +482,8 @@ template {
padding: 0.5em;
}
}
`, fs)
`
func loadAssets() {
fs["/assets/style.css"] = loadFile("style.css", StyleCSS, fs)
}

Loading…
Cancel
Save