Skip to content

Commit

Permalink
[minisite] Update highlight css
Browse files Browse the repository at this point in the history
  • Loading branch information
fpapon committed May 30, 2024
1 parent df3e82e commit 62946c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ public Function<Page, String> createTemplate(final Object options,
.replace("{{metaAuthor}}", getDefaultInterpolation("metaAuthor", page, null, null, null))
.replace("{{metaKeywords}}", getDefaultInterpolation("metaKeywords", page, null, null, null))
.replace("{{highlightJsCss}}", page.attributes == null || !page.attributes.containsKey("minisite-highlightjs-skip") ?
"<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/styles/vs2015.min.css\" integrity=\"sha512-w8aclkBlN3Ha08SMwFKXFJqhSUx2qlvTBFLLelF8sm4xQnlg64qmGB/A6pBIKy0W8Bo51yDMDtQiPLNRq1WMcQ==\" crossorigin=\"anonymous\" />" :
"<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/styles/atom-one-dark.min.css\" integrity=\"sha512-Fcqyubi5qOvl+yCwSJ+r7lli+CO1eHXMaugsZrnxuU4DVpLYWXTVoHy55+mCb4VZpMgy7PBhV7IiymC0yu9tkQ==\" crossorigin=\"anonymous\" />" :
"")
.replace("{{description}}", ofNullable(page.attributes)
.map(a -> a.get("minisite-description"))
Expand Down

0 comments on commit 62946c9

Please sign in to comment.