Skip to content

Commit

Permalink
logo
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanPreusse committed Jan 5, 2024
1 parent e895a7b commit bd47adc
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
NOTION_DATABASE_ID=
NOTION_API_KEY=
NOTION_DATABASE_ID='3adeaad843ae4b81a4bd25c004c50593'
NOTION_API_KEY='secret_JSduilTNwrYNaF9yntGYBnGpC2x960lMZK8l6zibNH3'
ABOUT_PAGE='842ef29054f24e7a91eeb0755ad0c6a8'
2 changes: 1 addition & 1 deletion app/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default async function AboutPage({
}: {
searchParams: { [key: string]: string };
}) {
const pageid = siteData.aboutPageId
const pageid = process.env.ABOUT_PAGE;

// Fetching blockMap
const response = await fetch(`https://notion-api.splitbee.io/v1/page/${pageid}`, {
Expand Down
1 change: 1 addition & 0 deletions app/articles/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default async function Page({
const response = await fetch(`https://notion-api.splitbee.io/v1/page/${id}`, {
next: { revalidate: 60 },
});
console.log(response)
const blockMap = await response.json();
const pageProperties = await notion.pages.retrieve({ page_id: id });
const postDetails = convertToPost(pageProperties);
Expand Down
7 changes: 5 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import Footer from "../components/Footer";
const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "Analytics Roundtable",
description: "Open Data Community",
};

export default function RootLayout({
Expand All @@ -18,6 +18,9 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<head>
<link rel="shortcut icon" href="/logo.svg" />
</head>
<body className={inter.className}>
<Header />
<main className="">{children}</main>
Expand Down
2 changes: 1 addition & 1 deletion components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Header = () => {
<div className="flex flex-row items-center">
<Link className="" href="/">
<Image
src="/Logo.avif"
src="/Logo.svg"
width={28}
height={28}
alt="AnalyticsRoundtable"
Expand Down
1 change: 1 addition & 0 deletions public/Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/logo.avif
Binary file not shown.
1 change: 0 additions & 1 deletion site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const siteData = {
language: 'en-us',
locale: 'en-US',
websiteUrl: 'analyticsroundtable.com',
aboutPageId: '842ef29054f24e7a91eeb0755ad0c6a8&pm=s'
};


Expand Down

0 comments on commit bd47adc

Please sign in to comment.