Skip to content

Commit

Permalink
fix meta descriptions a bit
Browse files Browse the repository at this point in the history
Signed-off-by: Vu Van Dung <me@joulev.dev>
  • Loading branch information
joulev committed Apr 2, 2024
1 parent 16664cc commit 8fe733a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/(public)/blogs/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const meta: { slug: string; title: string; description: string; postedDat
slug: "handling-svg-icon-path-opacity-overlap",
title: "Handling SVG Icon Path Opacity Overlap",
description:
"How to handle SVG icons with semi-transparent colours having path opacity overlapping in intersections points",
"How to handle SVG icons with semi-transparent colours having path opacity overlapping in intersections points.",
postedDate: "2023-12-12",
},
{
Expand Down
4 changes: 1 addition & 3 deletions src/lib/blogs/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export function makeMetadata(slug: string, overrideOg = false): Metadata {
if (!metadata) throw new Error(`No metadata found for slug: ${slug}`);

const title = `${metadata.title} | joulev.dev » blogs`;
const description = `${
metadata.description.endsWith(".") ? metadata.description.slice(0, -1) : metadata.description
}. A blog post by @joulev.`;
const description = `${metadata.description} A blog post by @joulev.`;

return {
title,
Expand Down

0 comments on commit 8fe733a

Please sign in to comment.