Skip to content

Commit d612bd8

Browse files
authored
Update libraries (#50)
* Update libraries - bootstrap 4.4 -> 4.5 - highlight.js: 9.18 patch update * highlight.js: 9.18.1 -> 10.0.3
1 parent 75ae876 commit d612bd8

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

src/_layouts/default.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
6+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
77
<link href="/assets/css/style.css" rel="stylesheet">
8-
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/monokai.min.css">
8+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3/styles/monokai.min.css">
99
<link rel="apple-touch-icon" href="icon.png">
1010
<meta name="theme-color" content="#fafafa">
1111
<link href="https://fonts.googleapis.com/css?family=Asap" rel="stylesheet">
@@ -58,9 +58,9 @@
5858
</div>
5959
</div>
6060

61-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
61+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
6262
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.2.2/anchor.min.js"></script>
63-
<script src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>
63+
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3/highlight.min.js"></script>
6464
<script src="/assets/js/app.js"></script>
6565
</body>
6666
</html>

src/assets/js/app.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
$(() => {
2+
// anchor-js
3+
anchors.options.visible = 'always';
4+
anchors.add();
5+
6+
// highlight.js
7+
hljs.initHighlighting();
8+
29
$(".sidebar-sticky .icon").on("click", function (e) {
310
$(this).siblings("ul").toggle();
411
this.classList.toggle("icon-opened");
512
});
6-
7-
hljs.initHighlightingOnLoad();
8-
9-
anchors.options.visible = 'always';
10-
anchors.add();
11-
1213
$(`.sidebar-content a[href='${window.location.pathname}']`)
1314
.attr("class", "active-link")
14-
.parents('ul').show();
15+
.parents('ul')
16+
.show();
1517
});

0 commit comments

Comments
 (0)