Merge branch 'master' into master
This commit is contained in:
commit
9db7d78fbd
3 changed files with 43 additions and 7 deletions
|
@ -2,21 +2,16 @@
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<span>© {{ now.Year }} {{ .Site.Title }}</span>
|
<span>© {{ now.Year }} {{ .Site.Title }}</span>
|
||||||
<span>·</span>
|
<span>·</span>
|
||||||
<span>Powered by <a href="https://gohugo.io/" target="_blank">Hugo️️</a>️</span>
|
<span>Powered by <a href="https://gohugo.io/" rel="noopener" target="_blank">Hugo️️</a>️</span>
|
||||||
<span>·</span>
|
<span>·</span>
|
||||||
<span>Designed by <a href="http://21beats.com/" target="_blank">️21beats️</a>️</span>
|
<span>Designed by <a href="http://21beats.com/" rel="noopener" target="_blank">️21beats️</a>️</span>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="{{.Site.BaseURL}}js/instantclick.min.js" data-no-instant></script>
|
<script src="{{.Site.BaseURL}}js/instantclick.min.js" data-no-instant></script>
|
||||||
<script data-no-instant>InstantClick.init();</script>
|
<script data-no-instant>InstantClick.init();</script>
|
||||||
<script src="{{.Site.BaseURL}}js/highlight.min.js" data-no-instant></script>
|
<script src="{{.Site.BaseURL}}js/highlight.min.js" data-no-instant></script>
|
||||||
<script data-no-instant>
|
<script data-no-instant>
|
||||||
hljs.initHighlightingOnLoad();
|
|
||||||
addMenuListener();
|
addMenuListener();
|
||||||
InstantClick.on('change', function() {
|
InstantClick.on('change', function() {
|
||||||
var blocks = document.querySelectorAll('pre code');
|
|
||||||
for (var i = 0; i < blocks.length; i++) {
|
|
||||||
hljs.highlightBlock(blocks[i]);
|
|
||||||
}
|
|
||||||
addMenuListener();
|
addMenuListener();
|
||||||
});
|
});
|
||||||
function addMenuListener() {
|
function addMenuListener() {
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
<!-- Styles -->
|
<!-- Styles -->
|
||||||
<link href="{{.Site.BaseURL}}css/font.css" rel="stylesheet">
|
<link href="{{.Site.BaseURL}}css/font.css" rel="stylesheet">
|
||||||
<link href="{{.Site.BaseURL}}css/atom-one-dark.min.css" rel="stylesheet">
|
<link href="{{.Site.BaseURL}}css/atom-one-dark.min.css" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i" rel="stylesheet">
|
||||||
<link href="{{.Site.BaseURL}}css/style.css" rel="stylesheet">
|
<link href="{{.Site.BaseURL}}css/style.css" rel="stylesheet">
|
||||||
<!-- Favicons -->
|
<!-- Favicons -->
|
||||||
<link rel="apple-touch-icon" href="{{.Site.BaseURL}}img/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="{{.Site.BaseURL}}img/apple-touch-icon.png">
|
||||||
|
|
|
@ -488,3 +488,43 @@ pre, code {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Highlight
|
||||||
|
------------------------------ */
|
||||||
|
.post-content pre code {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.post-content table code {
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
.post-content pre {
|
||||||
|
margin: 30px 0px;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
.post-content table pre {
|
||||||
|
margin: 20px 0px;
|
||||||
|
}
|
||||||
|
.highlight table {
|
||||||
|
margin: 30px 0 !important;
|
||||||
|
}
|
||||||
|
.highlight div {
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
.post-content table code {
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
|
.highlight td:nth-child(2) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Unflavored code fences
|
||||||
|
------------------------------ */
|
||||||
|
code {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
pre {
|
||||||
|
border-radius: 6px;
|
||||||
|
background-color: #272822;
|
||||||
|
color: white;
|
||||||
|
}
|
Loading…
Reference in a new issue