diff --git a/content/news/0.28-relnotes-ready.md b/content/news/0.28-relnotes-ready.md index 3f2d66ca4..54f1e863c 100644 --- a/content/news/0.28-relnotes-ready.md +++ b/content/news/0.28-relnotes-ready.md @@ -1,13 +1,20 @@ --- date: 2017-09-25 -title: "0.28" -description: "0.28" +title: "Hugo 0.28: High-speed Syntax Highlighting!" +description: "Chroma is the new default syntax highlighter in Hugo." categories: ["Releases"] +slug: "0.28-relnotes" +images: +- images/blog/hugo-28-poster.png --- Hugo `0.28` brings **blistering fast and native syntax highlighting** from [Chroma](https://github.com/alecthomas/chroma) ([fb33d828](https://github.com/gohugoio/hugo/commit/fb33d8286d78a78a74deb44355b621852a1c4033) [@bep](https://github.com/bep) [#3888](https://github.com/gohugoio/hugo/issues/3888)). A big thank you to [Alec Thomas](https://github.com/alecthomas) for taking on this massive task of porting the popular python highlighter Pygments to Go. +Hugo has been caching the highlighter output to disk, so for repeated builds it has been fine, but this little snippet, showing a build of the [gohugo.io](https://gohugo.io/) site without cache and with both Pygments and Chroma, should illustrate the improvement: + +{{< asciicast Lc5iwTVny2kuUC8lqvNnL6oDU >}} + Worth mentioning is also the `liveReloadPort` flag on `hugo server`, which makes it possible to do "live reloads" behind a HTTPS proxy, which makes for very cool remote customer demos. One example would be a Hugo server running behind a [ngrok](https://http://ngrok.com) tunnel: diff --git a/static/images/blog/hugo-28-poster.png b/static/images/blog/hugo-28-poster.png new file mode 100644 index 000000000..ae3d6ac16 Binary files /dev/null and b/static/images/blog/hugo-28-poster.png differ