Use the same highlightjs library everywhere
This commit is contained in:
parent
ed3ea37537
commit
03ac402c37
|
@ -6,7 +6,7 @@
|
|||
<title>{{if .Title}}{{.Title}}{{else}}{{.GenTitle}}{{end}} — {{.SiteName}}</title>
|
||||
|
||||
{{if .IsCode}}
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/mono-blue.min.css">
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/mono-blue.min.css">
|
||||
{{end}}
|
||||
<link rel="stylesheet" type="text/css" href="/css/write.css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
|
@ -71,7 +71,7 @@
|
|||
</body>
|
||||
|
||||
{{if .IsCode}}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script>
|
||||
<script>
|
||||
hljs.highlightBlock(document.getElementById('post-body'));
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue