Skip to content

Commit

Permalink
refactor: update gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
marvel committed Sep 8, 2024
1 parent e457698 commit 415c172
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
{{- template "_internal/schema.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/nanogallery2.min.css">

<!-- Polyfill for old browsers -->
{{ `<!--[if lte IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/script.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<script>
window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.nanogallery2.min.js"></script>

<script type="text/javascript" src="https://cdn.staticfile.org/highlight.js/9.15.10/highlight.min.js"></script>
<script type="text/javascript" src="https://cdn.staticfile.org/highlight.js/9.15.10/languages/rust.min.js"></script>
<script type="text/javascript"
Expand Down
13 changes: 1 addition & 12 deletions layouts/shortcodes/galleries.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/nanogallery2.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.nanogallery2.min.js"></script>
</head>
<body>

<div data-nanogallery2='{
"thumbnailDisplayTransition": "none",
Expand Down Expand Up @@ -46,6 +37,4 @@
"viewerGalleryTHeight": 40
}'>
{{ .Inner }}
</div>
</body>
</html>
</div>

0 comments on commit 415c172

Please sign in to comment.