diff options
author | uPagge <git@upagge.ru> | 2021-05-06 23:48:41 +0300 |
---|---|---|
committer | uPagge <git@upagge.ru> | 2021-05-06 23:48:41 +0300 |
commit | 611ac8512d8e72082bb7e52353030308443cbe3d (patch) | |
tree | 79c5b058aac4f7f4cc444d70d5030138caa64566 /layouts | |
parent | c5721bd42cc3958a2d78c1512e83f6737b11a4d1 (diff) |
prismjs
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/assets.html | 6 | ||||
-rw-r--r-- | layouts/partials/head/link.html | 5 | ||||
-rw-r--r-- | layouts/shortcodes/m.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/s.html | 2 |
4 files changed, 13 insertions, 2 deletions
diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html index e65b13b..a392d26 100644 --- a/layouts/partials/assets.html +++ b/layouts/partials/assets.html @@ -57,6 +57,12 @@ {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- end -}} +{{- /* Prism.js */ -}} +{{- if $params.share.enable -}} +{{- $source := "lib/prismjs/prism.js" -}} +{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} +{{- end -}} + {{- /* KaTeX */ -}} {{- $math := $params.math -}} {{- if eq $math true -}} diff --git a/layouts/partials/head/link.html b/layouts/partials/head/link.html index 31c7f81..6f5ccb2 100644 --- a/layouts/partials/head/link.html +++ b/layouts/partials/head/link.html @@ -37,6 +37,11 @@ {{- $style := dict "Source" $source "Fingerprint" $fingerprint -}} {{- partial "plugin/style.html" $style -}} +{{- /* prismjs.css */ -}} +{{- $source := "lib/prismjs/prism.css" -}} +{{- $style := dict "Source" $source "Fingerprint" $fingerprint -}} +{{- partial "plugin/style.html" $style -}} + {{- /* style.min.css */ -}} {{- $style := dict "Source" "css/style.scss" "Fingerprint" $fingerprint -}} {{- $options := dict "targetPath" "css/style.min.css" "enableSourceMap" true -}} diff --git a/layouts/shortcodes/m.html b/layouts/shortcodes/m.html index 967c6d9..24f62fe 100644 --- a/layouts/shortcodes/m.html +++ b/layouts/shortcodes/m.html @@ -1 +1 @@ -<span class="m">{{ .Inner | $.Page.RenderString }}</span>
\ No newline at end of file +<span class="marker-text">{{ .Inner | $.Page.RenderString }}</span>
\ No newline at end of file diff --git a/layouts/shortcodes/s.html b/layouts/shortcodes/s.html index 491a187..c8dde62 100644 --- a/layouts/shortcodes/s.html +++ b/layouts/shortcodes/s.html @@ -1 +1 @@ -<span class="s">{{ .Inner | $.Page.RenderString }}</span>
\ No newline at end of file +<span class="str">{{ .Inner | $.Page.RenderString }}</span>
\ No newline at end of file |