Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDF blog post by Semih #34

Merged
merged 16 commits into from
Mar 28, 2024
Merged
9 changes: 6 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { VitePWA } from 'vite-plugin-pwa';
import rehypeKatex from 'rehype-katex'; // relevant
import remarkMath from 'remark-math'; // relevant
import remarkToc from 'remark-toc';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypeToc from 'rehype-toc';

import { manifest } from './src/utils/manifest';

Expand All @@ -32,9 +35,9 @@ export default defineConfig({
// Katex plugin options
},
],
'rehype-slug',
['rehype-autolink-headings', { behavior: 'append' }],
['rehype-toc', { headings: ['h1', 'h2', 'h3'] }],
rehypeSlug,
[rehypeAutolinkHeadings, { behavior: 'append' }],
[rehypeToc, { headings: ['h1', 'h2', 'h3'] }],
],
},
integrations: [
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 14 additions & 7 deletions src/config/allAuthors.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
{
"team": {
"name": "Kùzu Team",
"image": "https://kuzudb.com/img/blog/team.jpg"
"image": "https://kuzudb.com/img/blog/team.jpg",
"bio": "Developers of Kùzu Inc."
},
"semih": {
"name": "Semih Salihoğlu",
"image": "https://kuzudb.com/img/blog/semih.jpg"
"image": "https://kuzudb.com/img/team/semih_thumbnail.png",
"bio": "CEO of Kùzu Inc. & Associate Prof. at UWaterloo"
},
"chang": {
"name": "Chang Liu",
"image": "https://kuzudb.com/img/blog/chang.gif"
"image": "https://kuzudb.com/img/team/chang_thumbnail.png",
"bio": "DevOps Engineer & Co-founder of Kùzu Inc."
},
"guodong": {
"name": "Guodong Jin",
"image": "https://kuzudb.com/img/blog/guodong.jpg"
"image": "https://kuzudb.com/img/team/guodong_thumbnail.png",
"bio": "Software Engineer & Co-founder of Kùzu Inc."
},
"xiyang": {
"name": "Xiyang Feng",
"image": "https://kuzudb.com/img/blog/xiyang.jpg"
"image": "https://kuzudb.com/img/team/xiyang_thumbnail.png",
"bio": "Software Engineer & Co-founder of Kùzu Inc."
},
"ziyi": {
"name": "Ziyi Chen",
"image": "https://kuzudb.com/img/blog/ziyi.jpg"
"image": "https://kuzudb.com/img/team/ziyi_thumbnail.png",
"bio": "Software Engineer & Co-founder of Kùzu Inc."
},
"prashanth": {
"name": "Prashanth Rao",
"image": "https://kuzudb.com/img/blog/prashanth.png"
"image": "https://kuzudb.com/img/team/prashanth_thumbnail.png",
"bio": "AI Engineer at Kùzu Inc."
}
}
2 changes: 1 addition & 1 deletion src/content/post/2023-07-19-iamgraphviz.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ IAM network of an enterprise"
pubDate: "July 19 2023"
heroImage: "/img/2023-07-19-iamgraphviz/readonlyviz.png"
categories: ["example"]
authors: ["chang", {"name": "Chris Norman", "image": "https://www.commonfate.io/_next/image?url=%2Fheadshots%2Fchris.jpg&w=3840&q=75"}]
authors: ["chang", {"name": "Chris Norman", "image": "https://www.commonfate.io/_next/image?url=%2Fheadshots%2Fchris.jpg&w=3840&q=75", "bio": "Commonfate"}]
tags: ["visualization"]
---

Expand Down
600 changes: 600 additions & 0 deletions src/content/post/2024-03-28-in-praise-of-rdf.md

Large diffs are not rendered by default.

19 changes: 13 additions & 6 deletions src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,35 @@ const { title, description, pubDate, heroImage, categories, tags, authors } = As
<Base meta_title={title} description={description} image={heroImage} blogpost>
<article>
<div class="md:col-10 mb-12">
<h1 class="text-2xl md:text-4xl font-bold">{title}</h1>
<h1 class="text-2xl font-bold md:text-4xl">{title}</h1>
<div class="text-text mt-4 flex flex-wrap text-zinc-800 dark:text-zinc-200">
{
authors?.map((author) => (
<div class="mx-3 mt-2 flex flex-wrap font-medium author-info__container">
<div class="author-info__container mx-3 mt-2 flex flex-wrap font-medium" style="margin-left: 0;">
<figure>
<Image
alt={typeof author === 'string' ? allAuthors[author].name : author.name}
class="mr-2 h-6 w-6 rounded-full"
class="mr-2 rounded-full"
width={250}
height={250}
src={typeof author === 'string' ? allAuthors[author].image : author.image}
decoding="async"
loading="lazy"
style={'height: 3rem; width: 3rem;'}
/>
</figure>
<span>{typeof author === 'string' ? allAuthors[author].name : author.name}</span>
<span style="max-width: 12rem;"
><b>{typeof author === 'string' ? allAuthors[author].name : author.name}</b>
<br />
<small style="font-weight: 300;">
{typeof author === 'string' ? allAuthors[author].bio : author.bio}</small>
</span>
</div>
))
}

<div class="mx-3 mt-2 flex flex-wrap items-center font-medium">
</div>
<div class="text-text mt-4 flex flex-wrap text-zinc-800 dark:text-zinc-200">
<div class="mx-3 mt-2 flex flex-wrap items-center font-medium" style="margin-left: 0;">
<CalendarIcon />
<FormattedDate date={pubDate} />
</div>
Expand Down