Skip to content

Commit bc11257

Browse files
committed
fix: showing location of page
1 parent 6c9a233 commit bc11257

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

partials/navbar.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ <h1 class="header">Cards</h1>
7878
>
7979
</li>
8080

81+
<li><small>{{title}}</small></li>
82+
8183
<li class="search hide-on-med-and-up">
8284
<div class="search-wrapper">
8385
<input
@@ -110,7 +112,9 @@ <h1 class="header">Cards</h1>
110112
>
111113
<div class="collapsible-body">
112114
<ul>
113-
<li><a href="color.html">Color</a></li>
115+
<li>
116+
<a href="color.html">Color</a>
117+
</li>
114118
<li><a href="grid.html">Grid</a></li>
115119
<li><a href="helpers.html">Helpers</a></li>
116120
<li><a href="media-css.html">Media</a></li>

vite.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ export default {
77
base: "./",
88
plugins: [
99
handlebars({
10+
context(pagePath) {
11+
return {
12+
title: pagePath,
13+
};
14+
},
1015
partialDirectory: resolve(__dirname, "partials"),
1116
}),
1217
],

0 commit comments

Comments
 (0)