remove js highlight,use hugo Syntax Highlighting,fix hugo v0.60.0+ Syntax Highlighting bugs.close #72,close #73

This commit is contained in:
飞雪无情
2019-12-18 00:57:57 +08:00
parent 6d75b4df75
commit 65a1598120
6 changed files with 28 additions and 306 deletions
+3 -11
View File
@@ -99,12 +99,10 @@ mark {
background: #fffdd1;
}
pre, code {
background:#f8f8f8;
font-family:Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
font-size:.92857em;
}
pre {
margin: 2em 0;
overflow:auto;
border: 1px solid #ddd;
display: block;
@@ -374,17 +372,11 @@ textarea {
border-bottom: 1px solid #eee;
overflow: hidden;
}
/* .post-content pre, .comment-content pre {
max-height: 320px;
} */
.post-content pre, .comment-content pre {
padding: 1em 1.5em;
.post-content pre{
padding: 1em;
}
.post-content p code, .comment-content p code {
.post-content code{
display:inline;
margin:0 5px;
padding:3px 5px;
border: 1px solid #ddd;
}
.post-content p {
margin:0 0 1.1em;