Skip to content

Commit

Permalink
vuepress active-header-links plugin properly works with this theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Novarg committed Aug 22, 2019
1 parent 3f8c299 commit c7106b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,15 @@ export default {
&__heading {
width: 50%;
padding: 4rem 3rem 0;
padding: 0;
overflow: auto;
background-color: #fafafa;
h1
h2
h3 {
padding: 4rem 3rem 0;
}
}
&__body {
Expand Down
8 changes: 4 additions & 4 deletions components/Sidebar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
]"
>
<div class="category__label">
<NavLink :to="sidebarGroupItem.to">{{
<NavLink class="sidebar-link" :to="sidebarGroupItem.to">{{
title(sidebarGroupItem.title || sidebarGroupOrder[index])
}}</NavLink>
</div>
Expand All @@ -42,7 +42,7 @@
]"
>
<div class="category__label">
<NavLink :to="`${sidebarGroupItem.to}#${header.slug}`">{{
<NavLink class="sidebar-link" :to="`${sidebarGroupItem.to}#${header.slug}`">{{
title(header.title)
}}</NavLink>
</div>
Expand All @@ -65,7 +65,7 @@
]"
>
<div class="category__label">
<NavLink :to="child.to">{{ title(child.title) }}</NavLink>
<NavLink class="sidebar-link" :to="child.to">{{ title(child.title) }}</NavLink>
</div>
<div
v-if="child.headers && child.headers.length"
Expand All @@ -79,7 +79,7 @@
]"
>
<div class="category__header-item">
<NavLink :to="`${child.to}#${header.slug}`">{{
<NavLink class="sidebar-link" :to="`${child.to}#${header.slug}`">{{
title(header.title)
}}</NavLink>
</div>
Expand Down

0 comments on commit c7106b4

Please sign in to comment.