Website Misc Improvements (#836)
* [#803,website][s]: remove gallery button from hero, add gallery link to navbar, make docs listed on /blog be displayed as blog posts * [#803,analytics,website][xs]: implement GA
This commit is contained in:
@@ -56,10 +56,6 @@ export function Hero() {
|
|||||||
Get started
|
Get started
|
||||||
</ButtonLink>
|
</ButtonLink>
|
||||||
|
|
||||||
<ButtonLink className="ml-3" href="#gallery" style="secondary">
|
|
||||||
Gallery
|
|
||||||
</ButtonLink>
|
|
||||||
|
|
||||||
<div className="md:max-w-md mx-auto">
|
<div className="md:max-w-md mx-auto">
|
||||||
<NewsletterForm />
|
<NewsletterForm />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const config = {
|
|||||||
{ name: "Docs", href: "/docs" },
|
{ name: "Docs", href: "/docs" },
|
||||||
// { name: "Components", href: "/docs/components" },
|
// { name: "Components", href: "/docs/components" },
|
||||||
{ name: "Blog", href: "/blog" },
|
{ name: "Blog", href: "/blog" },
|
||||||
// { name: "Gallery", href: "/gallery" },
|
{ name: "Gallery", href: "/#gallery" },
|
||||||
// { name: "Data Literate", href: "/data-literate" },
|
// { name: "Data Literate", href: "/data-literate" },
|
||||||
// { name: "DL Demo", href: "/data-literate/demo" },
|
// { name: "DL Demo", href: "/data-literate/demo" },
|
||||||
// { name: "Excel Viewer", href: "/excel-viewer" },
|
// { name: "Excel Viewer", href: "/excel-viewer" },
|
||||||
@@ -52,7 +52,7 @@ const config = {
|
|||||||
github: "https://github.com/datopian/portaljs",
|
github: "https://github.com/datopian/portaljs",
|
||||||
discord: "https://discord.gg/EeyfGrGu4U",
|
discord: "https://discord.gg/EeyfGrGu4U",
|
||||||
tableOfContents: true,
|
tableOfContents: true,
|
||||||
// analytics: "xxxxxx",
|
analytics: "G-96GWZHMH57",
|
||||||
// editLinkShow: true,
|
// editLinkShow: true,
|
||||||
};
|
};
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
@@ -60,7 +60,10 @@ export const getStaticProps = async ({ params }) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Temporary, so that blogs work properly
|
// Temporary, so that blogs work properly
|
||||||
if (dbFile.url_path.startsWith('blog/')) {
|
if (
|
||||||
|
dbFile.url_path.startsWith('blog/') ||
|
||||||
|
(dbFile.url_path.startsWith('docs/') && dbFile.metadata.filetype === 'blog')
|
||||||
|
) {
|
||||||
frontMatter.layout = 'blog';
|
frontMatter.layout = 'blog';
|
||||||
frontMatter.authorsDetails = await getAuthorsDetails(
|
frontMatter.authorsDetails = await getAuthorsDetails(
|
||||||
dbFile.metadata.authors
|
dbFile.metadata.authors
|
||||||
|
|||||||
Reference in New Issue
Block a user