feat(): add support for syntax hightlighting with highlight.js
This commit is contained in:
parent
e933c24aca
commit
057d49d760
|
@ -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 !
|
This repo is a work in progress, there is still work to do, contributions are welcome !
|
||||||
|
|
||||||
- Support for code highlighting
|
|
||||||
- Conventional CHANGELOG.md
|
- Conventional CHANGELOG.md
|
||||||
|
|
|
@ -9,5 +9,6 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
{{ .Hugo.Generator }}
|
{{ .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="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">
|
<link href="{{ .Site.BaseURL }}css/theme.min.css" rel="stylesheet" type="text/css">
|
||||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue