Set up github pages

This commit is contained in:
Niklas Fasching 2018-12-11 14:45:57 +01:00
parent fb6bc2d7de
commit 8cefd9fabc
6 changed files with 170 additions and 2 deletions

View file

@ -50,5 +50,5 @@ func highlightCodeBlock(source, lang string) string {
l = chroma.Coalesce(l)
it, _ := l.Tokenise(nil, source)
_ = html.New().Format(&w, styles.Get("friendly"), it)
return w.String()
return `<div class="highlight">` + w.String() + `</div>`
}