diff --git a/site/components/Hero.tsx b/site/components/Hero.tsx
index 7cb327a0..2721ebee 100644
--- a/site/components/Hero.tsx
+++ b/site/components/Hero.tsx
@@ -56,10 +56,6 @@ export function Hero() {
Get started
-
- Gallery
-
-
diff --git a/site/content/config.js b/site/content/config.js
index f4e142dd..c61959ac 100644
--- a/site/content/config.js
+++ b/site/content/config.js
@@ -19,7 +19,7 @@ const config = {
{ name: "Docs", href: "/docs" },
// { name: "Components", href: "/docs/components" },
{ name: "Blog", href: "/blog" },
- // { name: "Gallery", href: "/gallery" },
+ { name: "Gallery", href: "/#gallery" },
// { name: "Data Literate", href: "/data-literate" },
// { name: "DL Demo", href: "/data-literate/demo" },
// { name: "Excel Viewer", href: "/excel-viewer" },
@@ -52,7 +52,7 @@ const config = {
github: "https://github.com/datopian/portaljs",
discord: "https://discord.gg/EeyfGrGu4U",
tableOfContents: true,
- // analytics: "xxxxxx",
+ analytics: "G-96GWZHMH57",
// editLinkShow: true,
};
export default config;
diff --git a/site/pages/[...slug].tsx b/site/pages/[...slug].tsx
index db5bd5e0..f0c0e750 100644
--- a/site/pages/[...slug].tsx
+++ b/site/pages/[...slug].tsx
@@ -60,7 +60,10 @@ export const getStaticProps = async ({ params }) => {
});
// 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.authorsDetails = await getAuthorsDetails(
dbFile.metadata.authors