Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e96c6e975 | ||
|
|
47832083d8 | ||
|
|
d9acd77015 | ||
|
|
06aa627d3c |
@@ -6,7 +6,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<footer class="article-time">
|
<footer class="article-time">
|
||||||
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
|
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
|
||||||
{{- .Date.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
|
{{- .Date | time.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
|
||||||
</time>
|
</time>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -21,8 +21,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function lazyLoadDisqusJS() {
|
function lazyLoadDisqusJS() {
|
||||||
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
|
const excludedHosts = ["localhost", "127.0.0.1"];
|
||||||
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
|
const hostname = window.location.hostname;
|
||||||
|
|
||||||
|
if (excludedHosts.includes(hostname)) {
|
||||||
|
document.getElementById('disqus_thread').innerHTML =
|
||||||
|
'Disqus comments not available by default when the website is previewed locally.';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,10 @@
|
|||||||
proxy: {{- .proxy -}},
|
proxy: {{- .proxy -}},
|
||||||
});
|
});
|
||||||
(function () {
|
(function () {
|
||||||
if (
|
const excludedHosts = ["localhost", "127.0.0.1"];
|
||||||
["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1
|
const hostname = window.location.hostname;
|
||||||
) {
|
|
||||||
|
if (excludedHosts.includes(hostname)) {
|
||||||
document.getElementById("gitalk-container").innerHTML =
|
document.getElementById("gitalk-container").innerHTML =
|
||||||
"Gitalk comments not available by default when the website is previewed locally.";
|
"Gitalk comments not available by default when the website is previewed locally.";
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
{{- with .Site.Params.comments.waline -}}
|
{{- with .Site.Params.comments.waline -}}
|
||||||
{{- $config := dict "el" "#waline" "dark" `html[data-scheme="dark"]` -}}
|
{{- $config := dict "el" "#waline" "dark" `html[data-scheme="dark"]` -}}
|
||||||
{{- $replaceKeys := dict "serverurl" "serverURL" "requiredmeta" "requiredMeta" "wordlimit" "wordLimit" "pagesize" "pageSize" "imageuploader" "imageUploader" "texrenderer" "texRenderer" -}}
|
{{- $replaceKeys := dict "serverurl" "serverURL" "requiredmeta" "requiredMeta" "wordlimit" "wordLimit" "pagesize" "pageSize" "imageuploader" "imageUploader" "texrenderer" "texRenderer" "turnstilekey" "turnstileKey" -}}
|
||||||
|
|
||||||
{{- range $key, $val := . -}}
|
{{- range $key, $val := . -}}
|
||||||
{{- if ne $val nil -}}
|
{{- if ne $val nil -}}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- $ThemeVersion := "3.30.0" -}}
|
{{- $ThemeVersion := "3.31.0" -}}
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<section class="copyright">
|
<section class="copyright">
|
||||||
©
|
©
|
||||||
|
|||||||
Reference in New Issue
Block a user