Skip to content

Commit

Permalink
Bump highlight js to 11.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bric3 committed Oct 17, 2022
1 parent e187a4c commit 19b07d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/head/styles-highlight.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{- if .Site.Params.highlightjs -}}
{{- if or (not (isset .Params "highlight")) (.Params.highlight) -}}
<!-- highlightjs -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.1/styles/{{ .Site.Params.highlightjsstyle | default "default" }}.min.css" media="(prefers-color-scheme: light)">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/{{ .Site.Params.highlightjsstyle | default "default" }}.min.css" media="(prefers-color-scheme: light)">

{{- if isset .Site.Params "highlightjsdarkstyle" -}}
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.1/styles/{{ .Site.Params.highlightjsdarkstyle }}.min.css" media="(prefers-color-scheme: dark)">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/{{ .Site.Params.highlightjsdarkstyle }}.min.css" media="(prefers-color-scheme: dark)">
{{- end -}}
{{- end -}}
{{- end -}}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/highlight-js.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{- if (.Site.Params.highlightjs) -}}
{{ if (or (not (isset .Params "highlight")) (and (isset .Params "highlight") .Params.highlight)) }}
{{- $.Scratch.Set "hl_languages" (union (.Site.Params.highlightjslanguages) (.Params.highlightjslanguages)) -}}
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.1/highlight.min.js" integrity="sha512-DrpaExP2d7RJqNhXB41Q/zzzQrtb6J0zfnXD5XeVEWE8d9Hj54irCLj6dRS3eNepPja7DvKcV+9PnHC7A/g83A==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js" integrity="sha512-gU7kztaQEl7SHJyraPfZLQCNnrKdaQi5ndOyt4L4UPL/FHDd/uB9Je6KDARIqwnNNE27hnqoWLBq+Kpe4iHfeQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
{{- with $.Scratch.Get "hl_languages" -}}
{{- range . -}}
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.1/languages/{{.}}.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/languages/{{.}}.min.js"></script>
{{ end }}
{{ end }}
<script type="text/javascript">
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/page-single/comment/giscus.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- with .Site.Params.giscus }}
{{- if or (not .repo) (not .category) (not .categoryId) }}
{{- errorf "[giscus] both of repo, category and categoryId are required." }}
{{- if or (not .repo) (not .repoId) (not .category) (not .categoryId) }}
{{- errorf "[giscus] repo, repoId, category and categoryId are required." }}
{{- end }}
{{- $lang := default $.Site.Language.Lang }}
<script
Expand Down

0 comments on commit 19b07d1

Please sign in to comment.