Skip to content

Commit

Permalink
remove staticfile cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
Liudon committed Oct 16, 2024
1 parent 8cc4b63 commit 8042725
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions layouts/partials/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@

<div id="tcomment"></div>

<script src="https://cdn.staticfile.org/twikoo/{{ .Site.Params.twikoo.version }}/twikoo.all.min.js">
</script>
<!-- <script src="https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js"></script> -->
<script src="https://unpkg.com/[email protected]/dist/twikoo.all.min.js"></script>

<!-- {{- $twikoojs := resources.Get "js/twikoo.all.min.js" }}
{{- if not site.Params.assets.disableFingerprinting }}
{{- $twikoo := (slice $twikoojs ) | resources.Concat "assets/js/twikoo.js" | fingerprint }}
<script crossorigin="anonymous" src="{{ $twikoo.RelPermalink }}" integrity="{{ $twikoo.Data.Integrity }}"></script>
{{- else }}
{{- $twikoo := (slice $twikoojs ) | resources.Concat "assets/js/twikoo.js" }}
<script crossorigin="anonymous" src="{{ $twikoo.RelPermalink }}"></script>
{{- end }} -->

<!-- <script>window.TWIKOO_MAGIC_PATH="共用评论区的名称"</script> -->

Expand Down

0 comments on commit 8042725

Please sign in to comment.