website: differentiate sidebar positions

This commit is contained in:
Yangshun
2022-02-15 21:04:32 +08:00
parent 66db8392b9
commit a03690080d
4 changed files with 44 additions and 21 deletions

View File

@@ -86,7 +86,7 @@ export default function DocItem(props) {
</article>
<DocPaginator previous={metadata.previous} next={metadata.next} />
<div className="margin-top--md">
<SidebarAd />
<SidebarAd position="docs_bottom" />
</div>
</div>
</div>

View File

@@ -89,7 +89,7 @@ const DocSidebarMobileSecondaryMenu = ({toggleSidebar, sidebar, path}) => {
level={1}
/>
<div className="margin--md">
<SidebarAd />
<SidebarAd position="mobile_sidebar" />
</div>
</ul>
);

View File

@@ -12,7 +12,7 @@ function TOC({className, ...props}) {
return (
<div className={clsx(styles.tableOfContents, 'thin-scrollbar', className)}>
<div className="margin--md">
<SidebarAd />
<SidebarAd position="table_of_contents" />
</div>
<TOCItems
{...props}