Skip to content

Commit

Permalink
style: blogs section
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshaacharya committed Apr 29, 2024
1 parent 619618e commit b8de059
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function Blog() {
{blogs.map((blog) => (
<li
key={blog.slug}
className="py-4 divide-y divide-gray-200 dark:divide-gray-700"
className="py-1 divide-y divide-gray-200 dark:divide-gray-700"
>
<Link href={`/blog/${blog.slug}`}>
<BlogCard blog={blog} />
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function Home() {
<h2 className="mb-5 text-2xl font-bold">Recent Posts</h2>
<ul>
{blogs.map((blog) => (
<li key={blog.slug} className="py-2">
<li key={blog.slug} className="py-1">
<Link href={`/blog/${blog.slug}`}>
<BlogCard blog={blog} key={blog.slug} />
</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/components/blog-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function BlogCard({ blog }: { blog: BlogCardProps }) {
</time>
</dd>
</dl>
<h3 className="text-2xl font-bold leading-8 tracking-tight text-gray-900 dark:text-gray-100">
<h3 className="text-xl font-bold leading-8 tracking-tight text-gray-900 dark:text-gray-100">
{blog.title}
</h3>
<p className="prose max-w-none text-gray-500 dark:text-gray-400">
Expand Down
3 changes: 1 addition & 2 deletions src/content/format-nestjs-response.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
title: "Format Nest.js Response using Interceptors"
summary: "Learn how to format Nest.js response and make standard response for every api response using Interceptors."
summary: "Learn how to format and make the standardarized response in Nest.js using Interceptors."
type: Blog
publishedAt: 2024-04-28
---

In this article we will learn how to format the response in Nest.js using Interceptors.


Normally when we try to return a response from a controller, we return the response as it is. But sometimes we need to format the response before sending it to the client. For example, we may need to add some metadata to the response, or we may need to modify the response structure.
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"baseUrl": ".",
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
Expand Down

0 comments on commit b8de059

Please sign in to comment.