fixed bug 若干
This commit is contained in:
1 parent
e59a772985
commit
830c2d5947
10 files changed
+324
-58
No files matched your search
@@ -29,12 +29,12 @@
|
||||
var isDark = document.documentElement.getAttribute('data-theme') === 'dark';
|
||||
Artalk.init({
|
||||
el: '#Comments',
|
||||
server: 'https://artalk.usj.cc',
|
||||
site: '优世界',
|
||||
server: '{{ .Site.Params.artalk.server }}',
|
||||
site: '{{ .Site.Params.artalk.site }}',
|
||||
pageKey: '{{ .RelPermalink }}',
|
||||
flatMode: true,
|
||||
darkMode: isDark,
|
||||
emoticons: '/emotion/OwO.json'
|
||||
emoticons: '{{ .Site.Params.artalk.emoticons | relURL }}'
|
||||
});
|
||||
} else {
|
||||
console.error('Artalk is not defined. Bundle js may not be loaded yet.');
|
||||
|
||||
@@ -58,6 +58,26 @@
|
||||
<!-- Preload Fonts -->
|
||||
<link rel="preload" href="{{ "font/zql.woff2" | relURL }}" as="font" type="font/woff2" crossorigin>
|
||||
|
||||
<!-- Site Configuration -->
|
||||
<script>
|
||||
window.siteConfig = {
|
||||
artalk: {
|
||||
server: "{{ .Site.Params.artalk.server }}",
|
||||
site: "{{ .Site.Params.artalk.site }}",
|
||||
emoticons: "{{ .Site.Params.artalk.emoticons | relURL }}",
|
||||
gravatar: "{{ .Site.Params.artalk.gravatar }}"
|
||||
},
|
||||
author: {
|
||||
avatar: "{{ .Site.Params.author.avatar }}",
|
||||
description: "{{ .Site.Params.author.description }}"
|
||||
},
|
||||
barrage: {
|
||||
enableHitokoto: {{ .Site.Params.barrage.enableHitokoto | default true }},
|
||||
hitokotoUrl: "{{ .Site.Params.barrage.hitokotoUrl }}"
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<!-- Stylesheets -->
|
||||
{{ $normalize := resources.Get "css/normalize.css" }}
|
||||
{{ $remixicon := resources.Get "css/remixicon.css" }}
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
<div class="header">
|
||||
<div class="header-top">
|
||||
<div class="head_author_img load-memos-editor">
|
||||
<img src="{{ .Site.Params.authorImage }}" class="blog-img" width="80" height="80" alt="{{ .Site.Title }}" />
|
||||
<img src="{{ .Site.Params.author.avatar }}" class="blog-img" width="80" height="80" alt="{{ .Site.Title }}" />
|
||||
<div class="avatar-theme-tip">
|
||||
点击头像切换昼夜
|
||||
</div>
|
||||
</div>
|
||||
<div class="site-description">
|
||||
<h2><span class="uk-invisible">{{ .Site.Params.description }}</span></h2>
|
||||
<h2><span class="uk-invisible">{{ .Site.Params.author.description }}</span></h2>
|
||||
<nav class="nav social uk-visible@m">
|
||||
<ul class="flat">
|
||||
{{ with .Site.Params.social }}
|
||||
@@ -18,7 +18,7 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
<div class="yiyandes">{{ .Site.Params.description }}</div>
|
||||
<div class="yiyandes">{{ .Site.Params.author.description }}</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user