mirror of https://github.com/jkjoy/hugoblog.git
Update head.html
This commit is contained in:
parent
d559c00e68
commit
b649fe1a44
|
@ -16,19 +16,6 @@
|
|||
<meta name="twitter:description" content="{{ .Params.description}}">
|
||||
{{ end }}
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
|
||||
<script src="//cdn.jkjoy.cn/highlight/prism.js"></script>
|
||||
<link rel="stylesheet" href="//cdn.jkjoy.cn/highlight/prism.css" />
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var defaultLanguage = 'javascript'; // 设置默认语言
|
||||
document.querySelectorAll('pre code').forEach(function (block) {
|
||||
if (!block.classList.length) {
|
||||
block.classList.add('language-' + defaultLanguage);
|
||||
}
|
||||
});
|
||||
Prism.highlightAll();
|
||||
});
|
||||
</script>
|
||||
{{ $favicon := resources.Get "images/favicon.png" }}
|
||||
<link type="image/vnd.microsoft.icon" href="{{ $.Site.Params.icon }}" rel="shortcut icon">
|
||||
{{ if .OutputFormats.Get "RSS" }}
|
||||
|
@ -37,3 +24,11 @@
|
|||
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.imsun.org/lxgw-wenkai-screen-webfont/lxgwwenkaigbscreen.css" />
|
||||
<style>
|
||||
body {
|
||||
font-family: "LXGW WenKai Screen", sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
|
Loading…
Reference in New Issue