diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/404.html | 2 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 7 | ||||
-rw-r--r-- | layouts/_default/search.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/analytic-cfga.html | 2 | ||||
-rw-r--r-- | layouts/partials/analytic-gtag.html | 2 | ||||
-rw-r--r-- | layouts/partials/comment-disqus.html | 2 | ||||
-rw-r--r-- | layouts/partials/comment-disqusjs.html | 4 | ||||
-rw-r--r-- | layouts/partials/favicon.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 4 | ||||
-rw-r--r-- | layouts/partials/math.html | 6 | ||||
-rw-r--r-- | layouts/partials/scripts-end.html | 4 | ||||
-rw-r--r-- | layouts/partials/scripts-front.html | 2 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 4 | ||||
-rw-r--r-- | layouts/partials/styles.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/aplayer.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/img-lazy.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/img-nz-lazy.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/img-nz.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/math.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/table-dense.html | 2 |
21 files changed, 31 insertions, 28 deletions
diff --git a/layouts/404.html b/layouts/404.html index ee8fb79..8fe8176 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -2,4 +2,4 @@ <div class="404-not-found" style="font-size: 2rem; padding-top: 1.5rem;"> <span>404 NOT FOUND</span> </div> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c6a64e5..ac7b70f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,7 +5,10 @@ {{ partial "head.html" . }} </head> -<body data-theme="auto"> +<body + data-theme="{{- if .Site.Params.defaultTheme -}}{{ .Site.Params.defaultTheme }}{{- else -}}auto{{- end -}}" + data-theme-auto='{{- if ne .Site.Params.defaultTheme "auto" -}}false{{- else -}}true{{- end -}}' + > {{ partial "scripts-front.html" . }} {{ partial "header.html" . }} @@ -24,4 +27,4 @@ {{ partial "scripts-end.html" . }} </body> -</html>
\ No newline at end of file +</html> diff --git a/layouts/_default/search.html b/layouts/_default/search.html index a2cdd4f..88c7021 100644 --- a/layouts/_default/search.html +++ b/layouts/_default/search.html @@ -36,4 +36,4 @@ </div> {{ "<% } %>" | safeHTML }} </script> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index cd2bd48..54b6934 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -28,4 +28,4 @@ {{ else if and (.Site.Params.utterancesRepo) (ne .Params.showComments false) }} {{ partial "comment-utterances.html" . }} {{ else }}{{ end }} -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/analytic-cfga.html b/layouts/partials/analytic-cfga.html index d1e52af..fa93ede 100644 --- a/layouts/partials/analytic-cfga.html +++ b/layouts/partials/analytic-cfga.html @@ -4,4 +4,4 @@ window.ga_api = '{{ .Site.Params.googleAnalyticsRoute }}'; </script> <script async src="https://cdn.jsdelivr.net/npm/cfga@1.0.3/cfga.min.js"></script> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/analytic-gtag.html b/layouts/partials/analytic-gtag.html index f851745..d39e550 100644 --- a/layouts/partials/analytic-gtag.html +++ b/layouts/partials/analytic-gtag.html @@ -10,4 +10,4 @@ gtag('config', '{{ . }}'); </script> <script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/comment-disqus.html b/layouts/partials/comment-disqus.html index 32ecc5d..625c203 100644 --- a/layouts/partials/comment-disqus.html +++ b/layouts/partials/comment-disqus.html @@ -18,4 +18,4 @@ document.querySelector('span.post-comment-notloaded').setAttribute('style', 'display: none;'); } </script> -</div>
\ No newline at end of file +</div> diff --git a/layouts/partials/comment-disqusjs.html b/layouts/partials/comment-disqusjs.html index 76bc099..18d1d82 100644 --- a/layouts/partials/comment-disqusjs.html +++ b/layouts/partials/comment-disqusjs.html @@ -3,7 +3,7 @@ <i class="iconfont icon-chatbox-ellipses-sharp"></i> {{ i18n "postComment" }} </span> <div id="disqus_thread" style="display: none;"></div> - <script src="https://cdn.jsdelivr.net/npm/disqusjs@1.3/dist/disqus.js"></script> + <script src="https://cdn.jsdelivr.net/npm/disqusjs@1.3.0/dist/disqus.js"></script> <script> function loadComment() { document.querySelector('#disqus_thread').removeAttribute('style'); @@ -19,4 +19,4 @@ document.querySelector('span.post-comment-notloaded').setAttribute('style', 'display: none;'); } </script> -</div>
\ No newline at end of file +</div> diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html index 3dabd7d..87d5215 100644 --- a/layouts/partials/favicon.html +++ b/layouts/partials/favicon.html @@ -1 +1 @@ -<link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/dsrkafuu/dsr-cdn@1/images/favicons/dsrca/favicon.ico" /> +<link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/dsrkafuu/dsr-cdn-main@1/images/favicons/dsrca.ico" /> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c9f194a..7dedc44 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -43,7 +43,7 @@ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css" /> {{ end }} {{ if .Site.Params.useDisqusJS }} -<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/disqusjs@1.3/dist/disqusjs.css" /> +<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/disqusjs@1.3.0/dist/disqusjs.css" /> {{ end }} {{ partial "analytic-gtag.html" . }} -{{ partial "analytic-cfga.html" . }}
\ No newline at end of file +{{ partial "analytic-cfga.html" . }} diff --git a/layouts/partials/math.html b/layouts/partials/math.html index 79be746..90409a8 100644 --- a/layouts/partials/math.html +++ b/layouts/partials/math.html @@ -1,7 +1,7 @@ -<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css" /> -<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js"></script> +<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css" /> +<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.js"></script> <script defer - src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js" + src="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body);" ></script> diff --git a/layouts/partials/scripts-end.html b/layouts/partials/scripts-end.html index 82388cf..11329ef 100644 --- a/layouts/partials/scripts-end.html +++ b/layouts/partials/scripts-end.html @@ -4,7 +4,7 @@ {{ else if eq .Section "archives" }} {{ else }} <script defer src="https://cdn.jsdelivr.net/npm/medium-zoom@1.0.6/dist/medium-zoom.min.js"></script> -<script defer src="https://cdn.jsdelivr.net/npm/lazysizes@5.3.0/lazysizes.min.js"></script> +<script defer src="https://cdn.jsdelivr.net/npm/lazysizes@5.3.2/lazysizes.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/components/prism-core.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script> {{ end }} @@ -61,4 +61,4 @@ } }); </script> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/scripts-front.html b/layouts/partials/scripts-front.html index c802702..c28912a 100644 --- a/layouts/partials/scripts-front.html +++ b/layouts/partials/scripts-front.html @@ -10,4 +10,4 @@ document.body.setAttribute('data-theme', fujiThemeData === 'dark' ? 'dark' : 'light'); } } -</script>
\ No newline at end of file +</script> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 1d6ae92..d0d0db9 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -48,8 +48,8 @@ <div class="sidebar-item sidebar-bgm"> <h3>{{ i18n "sidebarBangumiChart" }}</h3> <img class="lazyload" src="{{ $.Site.Params.lazyPlaceholder | relURL }}" - data-src="https://bgm.tv/chart/img/{{ . }}" alt="Bangumi εΎεζ¦ε" /> + data-src="https://bgm.tv/chart/img/{{ . }}" alt="Bangumi" /> </div> {{ end }} {{ end }} -</aside>
\ No newline at end of file +</aside> diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html index cc6d930..5e8fd34 100644 --- a/layouts/partials/styles.html +++ b/layouts/partials/styles.html @@ -10,4 +10,4 @@ filter: brightness(60%); } </style> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/shortcodes/aplayer.html b/layouts/shortcodes/aplayer.html index ac56aaa..37ed544 100644 --- a/layouts/shortcodes/aplayer.html +++ b/layouts/shortcodes/aplayer.html @@ -6,4 +6,4 @@ {{ with .Get "artists" -}}data-artists="{{- . -}}"{{- end }} {{ with .Get "covers" -}}data-covers="{{- . -}}"{{- end }} ></div> -</div>
\ No newline at end of file +</div> diff --git a/layouts/shortcodes/img-lazy.html b/layouts/shortcodes/img-lazy.html index eed9b0e..9b3513f 100644 --- a/layouts/shortcodes/img-lazy.html +++ b/layouts/shortcodes/img-lazy.html @@ -2,4 +2,4 @@ <p><div class="image-wrapper ratio-{{ index .Params 0 }}"> <img class="lazyload img-zoomable" data-src="{{ index .Params 2 | relURL | safeURL }}" alt="{{ index .Params 1 }}" /> </div></p> -{{- end -}}
\ No newline at end of file +{{- end -}} diff --git a/layouts/shortcodes/img-nz-lazy.html b/layouts/shortcodes/img-nz-lazy.html index bba88b6..54a2f8b 100644 --- a/layouts/shortcodes/img-nz-lazy.html +++ b/layouts/shortcodes/img-nz-lazy.html @@ -2,4 +2,4 @@ <p><div class="image-wrapper ratio-{{ index .Params 0 }}"> <img class="lazyload" data-src="{{ index .Params 2 | relURL | safeURL }}" alt="{{ index .Params 1 }}" /> </div></p> -{{- end -}}
\ No newline at end of file +{{- end -}} diff --git a/layouts/shortcodes/img-nz.html b/layouts/shortcodes/img-nz.html index 175dc5b..0033b14 100644 --- a/layouts/shortcodes/img-nz.html +++ b/layouts/shortcodes/img-nz.html @@ -2,4 +2,4 @@ <p> <img src="{{ index .Params 1 | relURL | safeURL }}" alt="{{ index .Params 0 }}" /> </p> -{{- end -}}
\ No newline at end of file +{{- end -}} diff --git a/layouts/shortcodes/math.html b/layouts/shortcodes/math.html index 3fcdaa7..16aadce 100644 --- a/layouts/shortcodes/math.html +++ b/layouts/shortcodes/math.html @@ -2,4 +2,4 @@ \( {{- trim .Inner "\n" -}} \) {{ else }} $$ {{- trim .Inner "\n" -}} $$ -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/shortcodes/table-dense.html b/layouts/shortcodes/table-dense.html index 6c77418..d5666a8 100644 --- a/layouts/shortcodes/table-dense.html +++ b/layouts/shortcodes/table-dense.html @@ -1,3 +1,3 @@ {{ $htmlTable := .Inner | markdownify }} {{ $htmlTable := replace $htmlTable "<table>" "<table class=\"table-dense\">" }} -{{ $htmlTable | safeHTML }}
\ No newline at end of file +{{ $htmlTable | safeHTML }} |