Merge branch 'enable-server-side-code-highlight' of kazu634/blog into master

This commit is contained in:
Kazuhiro MUSASHI 2020-05-01 16:46:40 +09:00 committed by Gitea
commit ac9ed0dc2e
8 changed files with 10 additions and 182 deletions

View File

@ -13,4 +13,8 @@ theme = "angels-ladder"
copyright = "Written by Kazuhiro MUSASHI"
[markup]
defaultMarkdownHandler = "blackfriday"
[markup.highlight]
codeFences = true
guessSyntax = true
style = "monokai"

View File

@ -13,4 +13,8 @@ theme = "angels-ladder"
copyright = "Written by Kazuhiro MUSASHI"
[markup]
defaultMarkdownHandler = "blackfriday"
[markup.highlight]
codeFences = true
guessSyntax = true
style = "monokai"

View File

@ -11,9 +11,6 @@
</div>
<script src="/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="/js/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad:true});</script>

View File

@ -24,7 +24,6 @@
-->
<link rel="stylesheet" href="/css/sanitize.css">
<link rel="stylesheet" href="/css/responsive.css">
<link rel="stylesheet" href="/css/highlight_monokai.css">
<link rel="stylesheet" href="/css/theme.css">
<link rel="stylesheet" href="/css/custom.css">

View File

@ -24,7 +24,6 @@
-->
<link rel="stylesheet" href="/css/sanitize.css">
<link rel="stylesheet" href="/css/responsive.css">
<link rel="stylesheet" href="/css/highlight_monokai.css">
<link rel="stylesheet" href="/css/theme.css">
<link rel="stylesheet" href="/css/custom.css">

View File

@ -1,128 +0,0 @@
/*
Monokai style - ported by Luigi Maselli - http://grigio.org
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: #272822;
-webkit-text-size-adjust: none;
}
.hljs-tag,
.hljs-tag .hljs-title,
.hljs-keyword,
.hljs-literal,
.hljs-strong,
.hljs-change,
.hljs-winutils,
.hljs-flow,
.nginx .hljs-title,
.tex .hljs-special {
color: #f92672;
}
.hljs {
color: #ddd;
}
.hljs .hljs-constant,
.asciidoc .hljs-code,
.markdown .hljs-code {
color: #66d9ef;
}
.hljs-code,
.hljs-class .hljs-title,
.hljs-header {
color: white;
}
.hljs-link_label,
.hljs-attribute,
.hljs-symbol,
.hljs-symbol .hljs-string,
.hljs-value,
.hljs-regexp {
color: #bf79db;
}
.hljs-link_url,
.hljs-tag .hljs-value,
.hljs-string,
.hljs-bullet,
.hljs-subst,
.hljs-title,
.hljs-emphasis,
.hljs-type,
.hljs-preprocessor,
.hljs-pragma,
.ruby .hljs-class .hljs-parent,
.hljs-built_in,
.django .hljs-template_tag,
.django .hljs-variable,
.smalltalk .hljs-class,
.hljs-javadoc,
.django .hljs-filter .hljs-argument,
.smalltalk .hljs-localvars,
.smalltalk .hljs-array,
.hljs-attr_selector,
.hljs-pseudo,
.hljs-addition,
.hljs-stream,
.hljs-envvar,
.apache .hljs-tag,
.apache .hljs-cbracket,
.tex .hljs-command,
.hljs-prompt,
.hljs-name {
color: #a6e22e;
}
.hljs-comment,
.hljs-annotation,
.smartquote,
.hljs-blockquote,
.hljs-horizontal_rule,
.hljs-decorator,
.hljs-pi,
.hljs-doctype,
.hljs-deletion,
.hljs-shebang,
.apache .hljs-sqbracket,
.tex .hljs-formula {
color: #75715e;
}
.hljs-keyword,
.hljs-literal,
.css .hljs-id,
.hljs-phpdoc,
.hljs-dartdoc,
.hljs-title,
.hljs-header,
.hljs-type,
.vbscript .hljs-built_in,
.rsl .hljs-built_in,
.smalltalk .hljs-class,
.diff .hljs-header,
.hljs-chunk,
.hljs-winutils,
.bash .hljs-variable,
.apache .hljs-tag,
.tex .hljs-special,
.hljs-request,
.hljs-status {
font-weight: bold;
}
.coffeescript .javascript,
.javascript .xml,
.tex .hljs-formula,
.xml .javascript,
.xml .vbscript,
.xml .css,
.xml .hljs-cdata {
opacity: 0.5;
}

View File

@ -180,11 +180,8 @@ article p {
margin: 25px 0;
}
article code {
color: #333;
background-color: #eee;
padding: 0 3px;
margin: 0 3px;
border: 1px solid #ccc;
font-family: consolas, "Courier New", monospace;
}
article pre code {

File diff suppressed because one or more lines are too long