Set up github pages
This commit is contained in:
parent
fb6bc2d7de
commit
8cefd9fabc
6 changed files with 170 additions and 2 deletions
2
main.go
2
main.go
|
@ -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>`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue