feat(): add support for syntax hightlighting with highlight.js

This commit is contained in:
kendo5731 2016-02-06 17:21:06 +01:00
parent e933c24aca
commit 057d49d760
3 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -9,5 +9,6 @@
{{ end }}
<title>{{ .Title }}</title>
{{ .Hugo.Generator }}
{{ partial "highlightjs.html" }}
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" rel="stylesheet" type="text/css">
<link href="{{ .Site.BaseURL }}css/theme.min.css" rel="stylesheet" type="text/css">

View File

@ -0,0 +1,3 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/pojoaque.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>