Skip to content

Commit 79569f7

Browse files
committed
fix: added lightbox to blog post
1 parent a6ab7e2 commit 79569f7

File tree

1 file changed

+23
-0
lines changed
  • app/views/docs/sqlite-performance-optimization-pragma-chacha20-production-guide

1 file changed

+23
-0
lines changed

app/views/docs/sqlite-performance-optimization-pragma-chacha20-production-guide/index.pug

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
extends ../../layout
22

3+
block append scripts
4+
script(
5+
defer,
6+
src=manifest("js/ekko-lightbox.js"),
7+
integrity=manifest("js/ekko-lightbox.js", "integrity"),
8+
crossorigin="anonymous"
9+
)
10+
311
block body
12+
if !isBot(ctx.get('User-Agent'))
13+
script(defer, nonce=nonce).
14+
window.addEventListener(
15+
"load",
16+
function load() {
17+
if (!window.jQuery) return setTimeout(load, 50);
18+
$(function () {
19+
$(document).on("click", '[data-toggle="lightbox"]', function (ev) {
20+
ev.preventDefault();
21+
$(this).ekkoLightbox();
22+
});
23+
});
24+
},
25+
false
26+
);
427
.container-fluid.py-3
528
.row
629
case locale

0 commit comments

Comments
 (0)