From cf0d0cd0284046505bd0183082ad10f8a60b4fd3 Mon Sep 17 00:00:00 2001
From: Liron Abutbul <110838700+ladunjexa@users.noreply.github.com>
Date: Fri, 9 Jun 2023 07:23:35 +0300
Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=8E=A8=20[enhancement]=20Added=20opti?=
=?UTF-8?q?onal=20title=20functionality=20to=20Tags.astro?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/blog/Tags.astro | 42 +++++++++++++++++++---------------
1 file changed, 24 insertions(+), 18 deletions(-)
diff --git a/src/components/blog/Tags.astro b/src/components/blog/Tags.astro
index 122cd91..0990bc3 100644
--- a/src/components/blog/Tags.astro
+++ b/src/components/blog/Tags.astro
@@ -6,29 +6,35 @@ import type { Post } from '~/types';
export interface Props {
tags: Post['tags'];
- class?: string;
+ class?: string;
+ title?: string | undefined;
}
-const { tags, class: className = 'text-sm' } = Astro.props;
+const { tags, class: className = 'text-sm', title = undefined } = Astro.props;
---
{
tags && Array.isArray(tags) && (
-
- {tags.map((tag) => (
- -
- {BLOG?.tag?.disabled ? (
- tag
- ) : (
-
- {tag}
-
- )}
-
- ))}
-
+ <>
+ <>
+ {header !== undefined && {header}}
+ >
+
+ {tags.map((tag) => (
+ -
+ {BLOG?.tag?.disabled || PORTFOLIO?.tag?.disabled ? (
+ tag
+ ) : (
+
+ {tag}
+
+ )}
+
+ ))}
+
+ >
)
}
From b31501845888a887ca70e1c2b8e5765ff4487fa1 Mon Sep 17 00:00:00 2001
From: Liron Abutbul <110838700+ladunjexa@users.noreply.github.com>
Date: Fri, 9 Jun 2023 08:00:35 +0300
Subject: [PATCH 2/4] =?UTF-8?q?=E2=9C=85=20Fix=20typo?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/blog/Tags.astro | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/blog/Tags.astro b/src/components/blog/Tags.astro
index 0990bc3..22453e5 100644
--- a/src/components/blog/Tags.astro
+++ b/src/components/blog/Tags.astro
@@ -22,7 +22,7 @@ const { tags, class: className = 'text-sm', title = undefined } = Astro.props;
{tags.map((tag) => (
-
- {BLOG?.tag?.disabled || PORTFOLIO?.tag?.disabled ? (
+ {BLOG?.tag?.disabled ? (
tag
) : (
Date: Fri, 9 Jun 2023 08:00:54 +0300
Subject: [PATCH 3/4] =?UTF-8?q?=E2=9C=85=20Fix=20typo?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/blog/Tags.astro | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/blog/Tags.astro b/src/components/blog/Tags.astro
index 22453e5..a91105f 100644
--- a/src/components/blog/Tags.astro
+++ b/src/components/blog/Tags.astro
@@ -17,7 +17,7 @@ const { tags, class: className = 'text-sm', title = undefined } = Astro.props;
tags && Array.isArray(tags) && (
<>
<>
- {header !== undefined && {header}}
+ {title !== undefined && {title}}
>
{tags.map((tag) => (
From f65fa1659bbd2052f82966f4608b85fe9378c339 Mon Sep 17 00:00:00 2001
From: Liron Abutbul <110838700+ladunjexa@users.noreply.github.com>
Date: Fri, 9 Jun 2023 08:01:41 +0300
Subject: [PATCH 4/4] Update Tags.astro
---
src/components/blog/Tags.astro | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/components/blog/Tags.astro b/src/components/blog/Tags.astro
index a91105f..b00b108 100644
--- a/src/components/blog/Tags.astro
+++ b/src/components/blog/Tags.astro
@@ -8,9 +8,10 @@ export interface Props {
tags: Post['tags'];
class?: string;
title?: string | undefined;
+ isCategory?: boolean;
}
-const { tags, class: className = 'text-sm', title = undefined } = Astro.props;
+const { tags, class: className = 'text-sm', title = undefined, isCategory = false } = Astro.props;
---
{
@@ -26,7 +27,7 @@ const { tags, class: className = 'text-sm', title = undefined } = Astro.props;
tag
) : (
{tag}