summaryrefslogtreecommitdiff
path: root/layouts/_partials
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-01-31 12:20:56 +0800
committerBigCoke233 <hi@guhub.cn>2026-01-31 12:20:56 +0800
commit13f1789094b8b71caab3b1f564fae1e660f7bf75 (patch)
treea80b7459662c143e013eedb1a43c4e6d078dc6f1 /layouts/_partials
parentd584f5f772ded3fab1328f7c991b980f18d2654e (diff)
fix: toot url not exported correctly
Diffstat (limited to 'layouts/_partials')
-rw-r--r--layouts/_partials/posts/fediverse-form.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_partials/posts/fediverse-form.html b/layouts/_partials/posts/fediverse-form.html
index 9d395d22..08ccaa69 100644
--- a/layouts/_partials/posts/fediverse-form.html
+++ b/layouts/_partials/posts/fediverse-form.html
@@ -4,4 +4,7 @@
<input type="text" id="fediverse-instance" placeholder="{{ T "actionMenu.fediversePlaceholder" }}" class="text-sm px-2 py-1 border border-neutral-300 dark:border-neutral-600 rounded bg-transparent">
<button id="fediform-button" class="text-xs px-2 py-1 bg-neutral-200 dark:bg-neutral-600 rounded hover:bg-neutral-300 dark:hover:bg-neutral-500 transition-colors">{{ T "actionMenu.openToot" }}</button>
</div>
+<script>
+ const tootUrl = '{{ .Params.toot }}'
+</script>
{{ end }}