mirror of
https://github.com/10h30/astroplate.git
synced 2026-06-05 15:08:00 +09:00
modified banner button target
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "astroplate",
|
||||
"version": "3.3.0",
|
||||
"version": "3.3.1",
|
||||
"description": "Astro and Tailwindcss boilerplate",
|
||||
"author": "zeon.studio",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user