From 057d49d760c1bd891e38bcfc4c924033e0232362 Mon Sep 17 00:00:00 2001 From: kendo5731 Date: Sat, 6 Feb 2016 17:21:06 +0100 Subject: [PATCH] feat(): add support for syntax hightlighting with highlight.js --- README.md | 1 - layouts/partials/head.html | 1 + layouts/partials/highlightjs.html | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/highlightjs.html diff --git a/README.md b/README.md index e4c7258..dc3b5ab 100644 --- a/README.md +++ b/README.md @@ -6,5 +6,4 @@ A theme for [Hugo](https://gohugo.io/), inspired by Atom editor. This repo is a work in progress, there is still work to do, contributions are welcome ! -- Support for code highlighting - Conventional CHANGELOG.md diff --git a/layouts/partials/head.html b/layouts/partials/head.html index eb1357a..4066c34 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -9,5 +9,6 @@ {{ end }} {{ .Title }} {{ .Hugo.Generator }} +{{ partial "highlightjs.html" }} diff --git a/layouts/partials/highlightjs.html b/layouts/partials/highlightjs.html new file mode 100644 index 0000000..a56c57c --- /dev/null +++ b/layouts/partials/highlightjs.html @@ -0,0 +1,3 @@ + + +