Skip to content

Commit

Permalink
sidebar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yulianzavodnyk committed Sep 1, 2024
1 parent eedf3dd commit 4aa5ef5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,21 @@ const config = {
docs: false,
blog: {
path: './blog',
routeBasePath: 'blog',
showReadingTime: true,
blogTitle: 'Статті СР ІПСА',
blogDescription: 'Дізнайтеся про останні події, новини, вступну кампанію та студентське життя в ІПСА.',
postsPerPage: 10,
blogSidebarTitle: 'Усі статті',
blogSidebarCount: 'ALL',
routeBasePath: 'blog',
sidebarPath: (locale, path) => {
if (path.includes('/tags/студенту')) return require.resolve('./sidebars.js').studentSidebar;
if (path.includes('/tags/вступ')) return require.resolve('./sidebars.js').admissionSidebar;
if (path.includes('/tags/інтервʼю')) return require.resolve('./sidebars.js').interviewSidebar;
if (path.includes('/tags/студрада')) return require.resolve('./sidebars.js').councilSidebar;
if (path.includes('/tags/вибіркові')) return require.resolve('./sidebars.js').electiveSidebar;
return require.resolve('./sidebars.js').allPostsSidebar;
},
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down

0 comments on commit 4aa5ef5

Please sign in to comment.