Commit 路
46085b3
1
Parent(s): ca71f8d
Fix: Add Alpine.js for expandable abstracts
Browse files- Add Alpine.js CDN script for expand/collapse functionality
- Add x-cloak CSS to hide content until Alpine loads
- Fix footer dataset link to point to correct repo
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- templates/base.html +6 -1
templates/base.html
CHANGED
|
@@ -11,7 +11,12 @@
|
|
| 11 |
<!-- HTMX -->
|
| 12 |
<script src="https://unpkg.com/htmx.org@1.9.12"></script>
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
<style>
|
|
|
|
|
|
|
| 15 |
/* Loading indicator - subtle */
|
| 16 |
.htmx-indicator { display: none; }
|
| 17 |
.htmx-request .htmx-indicator,
|
|
@@ -35,7 +40,7 @@
|
|
| 35 |
|
| 36 |
<footer class="border-t border-gray-100 mt-12">
|
| 37 |
<div class="max-w-3xl mx-auto px-4 py-4 text-gray-400 text-xs">
|
| 38 |
-
<a href="https://huggingface.co/datasets/
|
| 39 |
<span class="mx-2">路</span>
|
| 40 |
<a href="https://huggingface.co/davanstrien/ModernBERT-base-is-new-arxiv-dataset" class="hover:text-gray-600">Model</a>
|
| 41 |
</div>
|
|
|
|
| 11 |
<!-- HTMX -->
|
| 12 |
<script src="https://unpkg.com/htmx.org@1.9.12"></script>
|
| 13 |
|
| 14 |
+
<!-- Alpine.js (for expand/collapse) -->
|
| 15 |
+
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
| 16 |
+
|
| 17 |
<style>
|
| 18 |
+
/* Alpine.js cloak (hide until loaded) */
|
| 19 |
+
[x-cloak] { display: none !important; }
|
| 20 |
/* Loading indicator - subtle */
|
| 21 |
.htmx-indicator { display: none; }
|
| 22 |
.htmx-request .htmx-indicator,
|
|
|
|
| 40 |
|
| 41 |
<footer class="border-t border-gray-100 mt-12">
|
| 42 |
<div class="max-w-3xl mx-auto px-4 py-4 text-gray-400 text-xs">
|
| 43 |
+
<a href="https://huggingface.co/datasets/librarian-bots/arxiv-cs-papers-lance" class="hover:text-gray-600">Data source</a>
|
| 44 |
<span class="mx-2">路</span>
|
| 45 |
<a href="https://huggingface.co/davanstrien/ModernBERT-base-is-new-arxiv-dataset" class="hover:text-gray-600">Model</a>
|
| 46 |
</div>
|