modified banner button target

This commit is contained in:
somrat sorkar
2024-01-29 10:48:17 +06:00
parent 8ea4e78168
commit eac711191d
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "astroplate",
"version": "3.3.0",
"version": "3.3.1",
"description": "Astro and Tailwindcss boilerplate",
"author": "zeon.studio",
"license": "MIT",
+8 -1
View File
@@ -34,7 +34,14 @@ const { banner, features }: Homepage = homepage.data;
<p set:html={markdownify(banner.content)} class="mb-8" />
{
banner.button.enable && (
<a class="btn btn-primary" href={banner.button.link}>
<a
class="btn btn-primary"
href={banner.button.link}
target={
banner.button.link.startsWith("http") ? "_blank" : "_self"
}
rel="noopener"
>
{banner.button.label}
</a>
)