-
Hi. I'm trying to build a simple site with pages under subdirectories. From my understanding, Prev Next Link are generated based on orders in the sidebar. However it didn't work well for me. For all the pages in a subdirectory, their next link are all pointing to the first page. Also according to document here , I can only edit the text of the link instead of what it'll point to. Any suggestions on what I did wrong? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Can you post your .vitepress/config file and a screenshot of your directory structure? |
Beta Was this translation helpful? Give feedback.
-
edit: solution in replies import footnote from 'markdown-it-footnote'
import { defineConfig } from 'vitepress'
export default {
title: 'meteoroid.fit',
description: 'Just playing around.',
themeConfig: {
logo: '/icon.png',
nav: [
{ text: '全景图', link: 'http://demo.meteoroid.fit/pano/album.html' },
{ text: '文档源码', link: 'https://github.com/quan787/blog_meteoroid_fit' }
],
sidebar: [
{
text: '流星探测理论',
items: [
{ text: '前言', link: 'meteor/motivation' },
{ text: '流星探测原理(1)', link: 'meteor/concepts' },
{ text: '流星探测原理(2)', link: 'meteor/concepts2' },
{ text: '世界上的流星监测网', link: 'meteor/networks' },
{ text: '澳大利亚沙漠火流星监测网', link: 'meteor/DFN' }
]
},
{
text: '架设流星探测设备',
items: [
/*{ text: '总体设计', link: 'hardware/overall' }*/
]
},
{
text: 'meteoroid.fit网站',
items: [
/*{ text: '注册', link: 'website/register' }*/
]
},
{
items: [{
text: '京ICP备19031740号-2',
link: 'https://beian.miit.gov.cn/'
}]
}
],
footer: {
message: '<a href="https://beian.miit.gov.cn/">京ICP备19031740号-2</a>',
copyright: 'Copyright © 2022-present quan787'
}
},
markdown: {
config: (md) => {
md.use(footnote)
}
}
} |
Beta Was this translation helpful? Give feedback.
edit: solution in replies