diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-15 17:51:59 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-15 17:51:59 +0800 |
| commit | 1bf6de58ab13fc385a24467c84b9047bddea24da (patch) | |
| tree | 59807122f56103a6566a5cb75fde8d6426e2fcb2 /layouts/_shortcodes | |
| parent | b792bbf06fd202aea6e42fd6310e3cd670532c1e (diff) | |
refactor: replace fancybox with libra
Diffstat (limited to 'layouts/_shortcodes')
| -rw-r--r-- | layouts/_shortcodes/book.html | 2 | ||||
| -rw-r--r-- | layouts/_shortcodes/bookcard.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_shortcodes/book.html b/layouts/_shortcodes/book.html index 6cb0c8e8..7ea49089 100644 --- a/layouts/_shortcodes/book.html +++ b/layouts/_shortcodes/book.html @@ -1,6 +1,6 @@ <div class="book-showcase"> <div class="book-cover"> - <a href="{{ .Get "cover" }}" data-fancybox> + <a href="{{ .Get "cover" }}" data-libra> <img class="lazy" src="{{ .Get "cover" }}" loading="lazy" /> </a> </div> diff --git a/layouts/_shortcodes/bookcard.html b/layouts/_shortcodes/bookcard.html index d0fe3a4a..d128193b 100644 --- a/layouts/_shortcodes/bookcard.html +++ b/layouts/_shortcodes/bookcard.html @@ -4,7 +4,7 @@ {{- if $book }} <div class="markdown-body"> <div class="mx-auto max-w-[50%] "> - <img class="no-fancybox block w-full" src="{{ $book.Params.cover }}" /> + <img class="block w-full" src="{{ $book.Params.cover }}" /> </div> <h3 class="book-title"> <a href="{{ $book.Permalink }}">{{ $book.Title }}</a> |
