mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-08 14:39:44 +00:00
parent
2517f748de
commit
1a1240ccf7
4 changed files with 4 additions and 35 deletions
|
@ -119,8 +119,8 @@ copyright = "" # default: author.name ↓ # 默认为下面配
|
|||
# comment
|
||||
gitmentJS = '<script src="https://cdn.jsdelivr.net/npm/gitment@0.0.3/dist/gitment.browser.min.js" crossorigin="anonymous"></script>'
|
||||
gitmentCSS = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitment@0.0.3/style/default.min.css" crossorigin="anonymous">'
|
||||
gitalkJS = '<script src="https://cdn.jsdelivr.net/npm/gitalk@1.2.2/dist/gitalk.min.js" integrity="sha256-DcjhdbufsHMHflFjZtKNFnPKOAL2ybOxGcPOR4MtnJg=" crossorigin="anonymous"></script>'
|
||||
gitalkCSS = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1.2.2/dist/gitalk.css" integrity="sha256-rJVe5uyYRXdLM+Kkoj7JtN+9qI0bZTxkYTaNWODpg7U=" crossorigin="anonymous">'
|
||||
gitalkJS = '<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>'
|
||||
gitalkCSS = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">'
|
||||
|
||||
# Display a message at the beginning of an article to warn the readers that it's content may be outdated.
|
||||
# 在文章开头显示提示信息,提醒读者文章内容可能过时。
|
||||
|
|
|
@ -83,13 +83,8 @@
|
|||
<!-- gitalk -->
|
||||
{{- if .Site.Params.gitalk.owner -}}
|
||||
<div id="gitalk-container"></div>
|
||||
{{ if .Site.Params.publicCDN.enable -}}
|
||||
{{ .Site.Params.publicCDN.gitalkCSS | safeHTML }}
|
||||
{{ .Site.Params.publicCDN.gitalkJS | safeHTML }}
|
||||
{{- else -}}
|
||||
<link rel="stylesheet" href="{{ "lib/gitalk/gitalk-1.2.2.min.css" | relURL }}">
|
||||
<script src="{{ "lib/gitalk/gitalk-1.2.2.min.js" | relURL }}"></script>
|
||||
{{- end }}
|
||||
{{ .Site.Params.publicCDN.gitalkCSS | safeHTML }}
|
||||
{{ .Site.Params.publicCDN.gitalkJS | safeHTML }}
|
||||
<script type="text/javascript">
|
||||
var gitalk = new Gitalk({
|
||||
id: '{{ .Date }}',
|
||||
|
|
7
static/lib/gitalk/gitalk-1.2.2.min.css
vendored
7
static/lib/gitalk/gitalk-1.2.2.min.css
vendored
File diff suppressed because one or more lines are too long
19
static/lib/gitalk/gitalk-1.2.2.min.js
vendored
19
static/lib/gitalk/gitalk-1.2.2.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue