Skip to content

Commit

Permalink
fix: *
Browse files Browse the repository at this point in the history
  • Loading branch information
danstarns committed Jun 7, 2024
1 parent 647858e commit b8e845b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 18 deletions.
10 changes: 6 additions & 4 deletions app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Main } from "@/components/shared/Main";
import { Container } from "@/components/shared/Container";
import { ChevronLeft } from "lucide-react";
import Link from "next/link";
import { categoryColor, cn, formatdate } from "@/lib/utils";
import { categoryColor, cn, formatdate, metadataBase } from "@/lib/utils";
import { Metadata, ResolvingMetadata } from "next";

type Props = {
Expand All @@ -26,10 +26,11 @@ export async function generateMetadata(
const previousImages = (await parent).openGraph?.images || [];

return {
title: `${props.frontMatter.title} | Rconnect.tech`,
metadataBase: new URL("https://rconnect.tech/"),
title: `Blog | ${props.frontMatter.title}`,
description: props.frontMatter.description,
metadataBase,
openGraph: {
images: ["/images/blog-default-preview.jpg", ...previousImages],
images: [props.frontMatter.hero, ...previousImages],
},
};
}
Expand Down Expand Up @@ -64,6 +65,7 @@ export default async function Page({ params }: { params: { slug: string } }) {

const formattedDate = formatdate(props.frontMatter.date);
const color = categoryColor(props.frontMatter.category);

return (
<Main>
<Header />
Expand Down
4 changes: 1 addition & 3 deletions content/posts/devtools-bali.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This event was co hosted by [Google Developer Group Bali](https://gdg.community.
2. [YouTube Playlist](https://www.youtube.com/watch?v=EmccUzvB-t8&list=PLEc2HP9XFBY0RDeNpgcqvL5wDzGZnRlNM&pp=iAQB)


<iframe width="100%" height="400" src="https://www.youtube.com/embed/EmccUzvB-t8" title="DevTools Bali 001 with Google Developer Group Bali" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<iframe width="100%" height="400" src="https://www.youtube.com/embed/EmccUzvB-t8" title="DevTools Bali 001 with Google Developer Group Bali" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerPolicy="strict-origin-when-cross-origin" allowFullScreen></iframe>

## Location

Expand Down Expand Up @@ -49,7 +49,6 @@ This talk will discuss why junior software engineers should avoid relying too he
height="400"
src="https://www.youtube.com/embed/JPJin4wuQQc?list=PLEc2HP9XFBY0RDeNpgcqvL5wDzGZnRlNM"
title="Wahyu Ivan: Over-Dependent on External Libraries or Packages: Why You Shouldn&#39;t Do That"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand All @@ -66,7 +65,6 @@ Dan is the Founder and CTO at Rocket Connect working closely with people and com
height="400"
src="https://www.youtube.com/embed/aXq9OdW5kh0?list=PLEc2HP9XFBY0RDeNpgcqvL5wDzGZnRlNM"
title="Dan Starns: Working with Graphs and GraphQL"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand Down
3 changes: 1 addition & 2 deletions content/posts/devtools-bangkok.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The event was hosted on [Guild](https://guild.host/) and uploaded to YouTube.
2. [YouTube Playlist](https://www.youtube.com/watch?v=RCoEUh7WLo0&list=PLEc2HP9XFBY17DrWjMsKaDY8ErAQvgp7J&pp=iAQB)


<iframe width="100%" height="400" src="https://www.youtube.com/embed/RCoEUh7WLo0?list=PLEc2HP9XFBY17DrWjMsKaDY8ErAQvgp7J" title="Supercharge: 10x your Developer Productivity with GenAI &amp; Hubql" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<iframe width="100%" height="400" src="https://www.youtube.com/embed/RCoEUh7WLo0?list=PLEc2HP9XFBY17DrWjMsKaDY8ErAQvgp7J" title="Supercharge: 10x your Developer Productivity with GenAI &amp; Hubql" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerPolicy="strict-origin-when-cross-origin" allowFullScreen></iframe>

## Location

Expand Down Expand Up @@ -48,7 +48,6 @@ Panel discussion on ‘The future of software development’ from industry exper
height="400"
src="https://www.youtube.com/embed/1Qfi1qpzR9w?list=PLEc2HP9XFBY17DrWjMsKaDY8ErAQvgp7J"
title="Panel Discussion on The Future of Software Collaboration"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand Down
4 changes: 0 additions & 4 deletions content/posts/graph-db-bangalore.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ The event was hosted on [Meetup](https://www.meetup.com/) and uploaded to YouTub
height="400"
src="https://www.youtube.com/embed/GuFxkUg_IFc"
title="Graph Genesis: Building Tomorrow&#39;s Insights Today"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand Down Expand Up @@ -58,7 +57,6 @@ Harsh is an engineer at LocalStack working at improving the developer experience
height="400"
src="https://www.youtube.com/embed/CIJJHOik5ds?list=PLEc2HP9XFBY3l5vPLbWfLHqWtVDRunkX1"
title="Harsh Mishra: Testing AWS Serverless Integrations with Neo4j using LocalStack"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand All @@ -75,7 +73,6 @@ Tech enthusiast with a degree and dreams—probably more of the latter. Juggling
height="400"
src="https://www.youtube.com/embed/oGqpJyoEvtg?list=PLEc2HP9XFBY3l5vPLbWfLHqWtVDRunkX1"
title="Ankit Upadhyay: Generative AI with Knowledge Graphs"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand All @@ -92,7 +89,6 @@ Dan is the Founder and CTO at Rocket Connect working closely with people and com
height="400"
src="https://www.youtube.com/embed/Dbi3oh-FKLM?list=PLEc2HP9XFBY3l5vPLbWfLHqWtVDRunkX1"
title="Dan Starns: Working with Graphs and GraphQL"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand Down
5 changes: 0 additions & 5 deletions content/posts/graphql-bangkok.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ The event was hosted on [Meetup](https://www.meetup.com/) and uploaded to YouTub
height="400"
src="https://www.youtube.com/embed/Czj5MRpjfAM?list=PLEc2HP9XFBY1yp-mvaG33nF1YmaQ03DFh"
title="GraphQL Bangkok 13 Intro"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand Down Expand Up @@ -59,7 +58,6 @@ See why and how Hubql visualization can help you and your team understand your G
height="400"
src="https://www.youtube.com/embed/dZIieN4xQl8"
title="Pichyapa Khanapattanawong: Understand your Graphql schema with visualization"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand All @@ -76,7 +74,6 @@ In this talk Leon will be going over how one can Mock GraphQL API's in Microcks
height="400"
src="https://www.youtube.com/embed/wOTescSFiA4?list=PLEc2HP9XFBY1yp-mvaG33nF1YmaQ03DFh"
title="Leon Nunes: Mocking GraphQL with microcks"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand All @@ -93,7 +90,6 @@ Are you keen on exploring GraphQL API for your development work? Are you an on-c
height="400"
src="https://www.youtube.com/embed/178X-ZzOPB0?list=PLEc2HP9XFBY1yp-mvaG33nF1YmaQ03DFh"
title="Sandeep Mangalath: Life is easier managing your GraphQL API with Tyk"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand All @@ -110,7 +106,6 @@ Dan is the Founder and CTO at Rocket Connect working closely with people and com
height="400"
src="https://www.youtube.com/embed/dwjdyq9GJxE?list=PLEc2HP9XFBY1yp-mvaG33nF1YmaQ03DFh"
title="Dan Starns: Working with Graphs and GraphQL"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
Expand Down
3 changes: 3 additions & 0 deletions lib/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ export function categoryColor(category: string) {
return "#0ea5e9";
}
}
export const metadataBase = new URL(
process.env.METADATA_BASE_URL || "http://localhost:3000"
);

0 comments on commit b8e845b

Please sign in to comment.