Skip to content

Commit

Permalink
feat: add releases link in aside bottom (#456)
Browse files Browse the repository at this point in the history
* feat: add releases link in aside bottom

* fix: move to `/releases`
  • Loading branch information
farnabaz authored Jun 17, 2021
1 parent 957fd9b commit 04d1ac4
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
24 changes: 24 additions & 0 deletions nuxtjs.org/components/AsideBottom.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<div>
<NuxtLink
v-if="$route.path.startsWith('/docs')"
to="/releases"
class="
flex
items-center
py-1.5
group
dark:hover:text-gray-100
hover:text-gray-900
bg-white bg-opacity-10
hover:bg-opacity-9
p-4
mt-4
rounded-md
"
>
<IconNuxt class="w-5 h-5 mr-2" />
<span>Version: {{ $docus.lastRelease.value }}</span>
</NuxtLink>
</div>
</template>
7 changes: 7 additions & 0 deletions nuxtjs.org/content/releases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
template: releases
navigation: false
layout.aside: false
---

# Releases
5 changes: 5 additions & 0 deletions nuxtjs.org/docus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export default {
apiKey: 'd8bb34f345ca54362176cf78fcf4ed9d',
indexName: 'docus'
},
github: {
repo: 'nuxt/nuxt.js',
branch: 'dev',
releases: true
},
theme: {
header: {
logo: {
Expand Down

1 comment on commit 04d1ac4

@vercel
Copy link

@vercel vercel bot commented on 04d1ac4 Jun 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.