From 3bfabfba77982b9162a3062c040fa11306f33933 Mon Sep 17 00:00:00 2001 From: Matteo Lodi <30625432+mlodic@users.noreply.github.com> Date: Sun, 27 Aug 2023 18:50:17 +0200 Subject: [PATCH 1/2] tweak --- components/Header.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Header.tsx b/components/Header.tsx index cc8821d..359c3ee 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -38,10 +38,10 @@ export function Header(props: Headerprops) { Features - Testimonials + Docs Date: Mon, 28 Aug 2023 00:23:04 +0530 Subject: [PATCH 2/2] fix: header for mobile + feat: add author to blogs --- Blogs/gsoc23_project_summary.md | 1 + components/Header.tsx | 30 +++++++++++++++--------------- components/Slider.tsx | 2 +- contentlayer.config.ts | 1 + src/app/blogs/[slug]/page.tsx | 5 ++++- 5 files changed, 22 insertions(+), 17 deletions(-) diff --git a/Blogs/gsoc23_project_summary.md b/Blogs/gsoc23_project_summary.md index 2c857dd..2fbc34f 100644 --- a/Blogs/gsoc23_project_summary.md +++ b/Blogs/gsoc23_project_summary.md @@ -2,6 +2,7 @@ title: Frontend Improvements for Buffalogs, IntelOwl. date: 2023-08-27 cover: /images/gsoclogo.png +author: Abheek Tripathy --- Being a designer/frontend dev who knows a thing or two about security, IntelOwl seemed to be pretty intriguing to me with a very real use-case since the first time I was introduced to the project. I started contributing to it from December of 2022, mostly working on frontend issues opened up by Matteo. diff --git a/components/Header.tsx b/components/Header.tsx index cc8821d..c44df73 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -22,36 +22,36 @@ export function Header(props: Headerprops) { <> {blogsection ? (
-
- +
+ intelowl logo Features Testimonials Blogs Donate @@ -88,10 +88,10 @@ export function Header(props: Headerprops) {
) : (
-
+
intelowl logo @@ -99,25 +99,25 @@ export function Header(props: Headerprops) { Features Docs Blogs Donate diff --git a/components/Slider.tsx b/components/Slider.tsx index 16d1d9a..1bf0762 100644 --- a/components/Slider.tsx +++ b/components/Slider.tsx @@ -19,7 +19,7 @@ export default function Slider(props: sliderProps) { <> {isTestimonial ? (
-
+
({ title: { type: 'string', required: true }, date: { type: 'date', required: true }, cover: { type: 'string', required: true }, + author: { type: 'string', required: false } }, computedFields: { url: { type: 'string', resolve: (post) => `/blogs/${post._raw.flattenedPath}` }, diff --git a/src/app/blogs/[slug]/page.tsx b/src/app/blogs/[slug]/page.tsx index f211570..5ab5355 100644 --- a/src/app/blogs/[slug]/page.tsx +++ b/src/app/blogs/[slug]/page.tsx @@ -21,14 +21,17 @@ const PostLayout = ({ params }: { params: { slug: string } }) => { return ( <>
-
+
+
+

By {post.author}

+

{post.title}