ByteCanvas
Stay close to every update.
A clean timeline for posts, media, and conversations from your channel.
分享一些日常收集到的开源软件、开发工具和技术知识。
Search: #blog
Filtered timeline results
博客新建导航标签 首先确保你的项目结构如下: Copy项目根目录 / ├── docker / │ ├── index . md │ └── 2024 - 03 - 17 - first - post . md └── docusaurus . config . js 检查每个文章的前置元数据格式是否正确: 确保日期格式为 YYYY-MM-DD 文件名必须以日期开头 slug 是必须的 title 是必须的 // docusaurus.config.js module . exports = { // ... 其他配置 i18n : { defaultLocale : 'zh-CN' , locales : [ 'zh-CN' ] , } , plugins : [ [ '@docusaurus/plugin-content-blog' , { id : 'docker-blog' , routeBasePath : 'docker' , path : './docker' , blogTitle : 'Docker Blog' , blogDescription : 'Docker 相关技术文章和教程' , blogSidebarCount : 'ALL' , blogSidebarTitle : 'Docker 文章' , // 确保文章使用正确的日期格式 postsPerPage : 10 , } , ] , ] , themeConfig : { navbar : { items : [ // ... 其他导航项 { to : '/docker' , label : 'Docker' , position : 'left' , } , ] , } , } , } ; // docker/index.md (添加一个索引页) -- - slug : / docker title : Docker 文章列表 -- - 欢迎访问 Docker 技术专栏! // docker/2024-03-17-first-post.md (示例文章) -- - slug : first - post title : Docker 入门指南 authors : - name : Your Name title : Developer date : 2024 - 03 - 17 tags : [ docker , guide ] -- - 这是一篇 Docker 入门指南 ... !!! #blog