Skip to content

Commit

Permalink
Merge pull request #32 from neo-project/dev
Browse files Browse the repository at this point in the history
master < dev
  • Loading branch information
apisit authored Apr 8, 2022
2 parents 862d7a9 + cb2b7af commit 36d64e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
showLastUpdateTime: false,
},
blog: {
routeBasePath: "topics",
path: "topics",
routeBasePath: "tutorials",
path: "tutorials",
blogTitle: 'NEO Development Tutorials!',
blogDescription: 'Find a comprehensive collection of tools and resources to help you build outstanding applications on the Neo blockchain.',
postsPerPage: 12,
blogSidebarTitle: "Recent topics",
blogSidebarTitle: "Recent tutorials",
blogSidebarCount:0,
feedOptions: {
type: 'all',
Expand Down Expand Up @@ -97,7 +97,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
// position: 'right',
// label: 'NeoFS',
// },
{to: '/topics', label: 'Tutorials', position: 'right'},
{to: '/tutorials', label: 'Tutorials', position: 'right'},
{to: '/resources', label: 'Resources & Tooling', position: 'right'},
{
type: 'doc',
Expand All @@ -117,7 +117,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
items: [
{
label: 'Tutorial',
to: '/topics',
to: '/tutorials',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module.exports = {
faqSidebar: [{type: 'autogenerated', dirName: 'faq'}],
toolingSidebar: [{type: 'autogenerated', dirName: 'tooling'}],
neofsSidebar: [{type: 'autogenerated', dirName: 'neofs'}],
tutorialsSidebar: [{type: 'autogenerated', dirName: 'topics'}],
tutorialsSidebar: [{type: 'autogenerated', dirName: 'tutorials'}],
};
2 changes: 1 addition & 1 deletion src/plugins/custom-tags-list-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function blogInterceptor(...pluginArgs) {
const blogTags = blogContents.blogTags;

var blogPosts = blogContents.blogPosts;
blogPosts = blogPosts.slice(0,3) //get 3 recent topics
blogPosts = blogPosts.slice(0,3) //get 3 recent tutorials
setGlobalData({blogTags,blogPosts})
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogListPaginator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function BlogListPaginator(props) {
</Link>
{
[...Array(totalPages)].map((e, i) => (
<Link to={`${i == 0 ? "/topics" : `/tutorials/page/${i + 1}`}`} className={`flex items-center justify-center w-8 h-8 font-bold ${page - 1 == i ? "bg-gray-300" : "text-gray-500"}`}>{i + 1}</Link>
<Link to={`${i == 0 ? "/tutorials" : `/tutorials/page/${i + 1}`}`} className={`flex items-center justify-center w-8 h-8 font-bold ${page - 1 == i ? "bg-gray-300" : "text-gray-500"}`}>{i + 1}</Link>
))
}

Expand Down

0 comments on commit 36d64e9

Please sign in to comment.