Skip to content

Commit

Permalink
fix: Update the format of sidebar links for GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Jul 15, 2024
1 parent ba92200 commit 836277e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/.vuepress/layouts/GitHubProject.vue
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
<template>
<BaseLayout>
<template #sidebar-bottom>
<section class="sidebar-group">
<ul class="sidebar-links sidebar-links-extra">
<p class="sidebar-item sidebar-heading">Extra Links</p>
<section class="vp-sidebar-group">
<ul class="vp-sidebar-items vp-sidebar-items-extra">
<p class="vp-sidebar-item vp-sidebar-heading">Extra Links</p>
<li v-if="frontmatter.download">
<a :href="frontmatter.download" class="nav-link sidebar-item">
<a :href="frontmatter.download" class="nav-link vp-sidebar-item">
Download
</a>
</li>

<li v-if="frontmatter.docs">
<a :href="frontmatter.docs" class="nav-link sidebar-item">
<a :href="frontmatter.docs" class="nav-link vp-sidebar-item">
Documentation
</a>
</li>

<li v-if="frontmatter.repo && frontmatter.releases">
<a :href="releasesUrl" class="nav-link sidebar-item">
<a :href="releasesUrl" class="nav-link vp-sidebar-item">
View Releases
</a>
</li>

<li v-if="frontmatter.repo">
<a :href="repoUrl" class="nav-link sidebar-item">
<a :href="repoUrl" class="nav-link vp-sidebar-item">
View on GitHub
</a>
</li>

<li v-if="frontmatter.repo">
<a :href="issuesUrl" class="nav-link sidebar-item">
<a :href="issuesUrl" class="nav-link vp-sidebar-item">
Report an Issue
</a>
</li>
Expand Down Expand Up @@ -66,7 +66,7 @@ export default defineComponent({
</script>

<style>
.sidebar-links-extra > li {
.vp-sidebar-items-extra > li {
margin: 0 !important;
}
</style>
</style>

0 comments on commit 836277e

Please sign in to comment.