Skip to content

Commit

Permalink
add fancybox
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkRushB committed Jul 30, 2023
1 parent 3ab3f98 commit 2ca7d4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions themes/paper/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ <h1 class="!my-0 pb-2.5">{{ .Title }}</h1>
'//unpkg.com/@waline/[email protected]/tw-emoji'
],
});
Fancybox.bind('#waline .wl-content img');
</script>


Expand Down
8 changes: 8 additions & 0 deletions themes/paper/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>

<!-- lightbox -->
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/fancybox/fancybox.umd.js"></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/fancybox/fancybox.css"
/>


<!-- Title -->
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ site.Title }}</title>

Expand Down

0 comments on commit 2ca7d4a

Please sign in to comment.