Implement code highlighting via PrismJS
PrismJS has been locally included with a custom theme, to allow auto-highlighting of code blocks.
This commit is contained in:
@@ -26,6 +26,11 @@
|
||||
<script src="{{asset "js/remark42-comments.js"}}"></script>
|
||||
{{/is}}
|
||||
|
||||
{{#is "post, page"}}
|
||||
<script src="{{asset "js/prism.min.js"}}"></script>
|
||||
<link rel="stylesheet" type="text/css" href="{{asset "css/prism-mind-theme.css"}}"/>
|
||||
{{/is}}
|
||||
|
||||
{{#is "index"}}
|
||||
<title>{{@site.title}}</title>
|
||||
{{/is}}
|
||||
|
||||
Reference in New Issue
Block a user