Skip to content

Commit 301f142

Browse files
authored
Update default.html
1 parent 8d97c2a commit 301f142

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

site/_layouts/default.html

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<title>{{ page.title }}</title>
6-
<link rel="stylesheet" href="/JavaEvolution-Learning-Growing-Mastering/site/assets/style.css">
7-
</head>
8-
<body>
9-
{% include nav.html %}
10-
<main>
11-
{{ content }}
12-
</main>
13-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>{{ page.title }}</title>
7+
<link rel="stylesheet" href="{{ "/assets/assets/style.css" | relative_url }}">
8+
<script>
9+
function toggleSidebar() {
10+
const sidebar = document.getElementById("sidebar");
11+
sidebar.classList.toggle("hidden");
12+
}
13+
</script>
14+
</head>
15+
<body>
16+
<div class="wrapper">
17+
<div id="sidebar" class="sidebar">
18+
{% include nav.html %}
19+
</div>
20+
<div class="content">
21+
<button class="toggle-btn" onclick="toggleSidebar()"></button>
22+
{{ content }}
23+
</div>
24+
</div>
25+
</body>
1426
</html>

0 commit comments

Comments
 (0)