mirror of
https://github.com/suk-ws/ph-Bookshelf.git
synced 2024-12-05 01:16:53 +08:00
添加了对 regex-highlight 的支持
This commit is contained in:
parent
f64f8aba8a
commit
594a695cfb
@ -2,6 +2,6 @@
|
||||
|
||||
const APP_NAME = "ph-Bookshelf";
|
||||
|
||||
const VERSION = "0.3.0.13";
|
||||
const VERSION = "0.3.0.14";
|
||||
const CHANNEL = "suk-ws";
|
||||
const BRANCH = "master";
|
||||
|
@ -39,6 +39,8 @@ class SiteMeta {
|
||||
// "/assets/ref.css",
|
||||
(PageMeta::getConfigurationLevelPage("customization.article.codeblock.highlightjs")=="false"?
|
||||
null:"//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/".PageMeta::highlightJsTheme().".min.css"),
|
||||
(PageMeta::getConfigurationLevelPage("customization.article.regex.highlight")=="false")?
|
||||
null:"//cdn.jsdelivr.net/gh/suk-ws/regex-colorizer@master/regex-colorizer-default.min.css",
|
||||
"/assets/bread-card-markdown.css?ver=1",
|
||||
(PageMeta::getConfigurationLevelPage("customization.article.listing.rainbow.marker")=="true"?
|
||||
"/assets/bread-card-markdown-enhanced-listing-rainbow.css?ver=1":null),
|
||||
@ -55,6 +57,8 @@ class SiteMeta {
|
||||
// "/assets/ref.js",
|
||||
(PageMeta::getConfigurationLevelPage("customization.article.codeblock.highlightjs")=="false"?
|
||||
null:"//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"),
|
||||
(PageMeta::getConfigurationLevelPage("customization.article.regex.highlight")=="false"?
|
||||
null:"//cdn.jsdelivr.net/gh/suk-ws/regex-colorizer@master/regex-colorizer.min.js"),
|
||||
"/assets/utils-touchscreen-event.js?ver=1",
|
||||
"/assets/main.js?ver=1",
|
||||
);
|
||||
|
@ -15,6 +15,8 @@
|
||||
pageCurrentId = "<?= PageMeta::$page->getId() ?>";
|
||||
<?php if (!(PageMeta::getConfigurationLevelPage("customization.article.codeblock.highlightjs")=="false")) :
|
||||
?>hljs.highlightAll();<?php endif; ?>
|
||||
<?php if (!(PageMeta::getConfigurationLevelPage("customization.article.regex.highlight")=="false")) :
|
||||
?>RegexColorizer.coloringAll();<?php endif; ?>
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user