Skip to content

Commit 3660a67

Browse files
committed
flexible section title optional
1 parent 09472a3 commit 3660a67

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

src/components/FlexibleSection.astro

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import clsx from "clsx";
33
import ContentLimiter from "./ContentLimiter.astro";
44
55
interface Props {
6-
title: string | any;
6+
title?: string | any;
77
titleTag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
88
className?: string;
99
id?: string;
@@ -15,7 +15,7 @@ interface Props {
1515
}
1616
1717
const {
18-
title,
18+
title = undefined,
1919
titleTag: TitleTag = "h2",
2020
className,
2121
id,
@@ -38,13 +38,15 @@ const rightRatio = 1 - leftRatio;
3838
>
3939
<ContentLimiter maxWidth={maxWidth}>
4040
<div class="flexible-content">
41-
<div class={clsx("header", { "with-bottom-border": bottomBorder })}>
42-
<TitleTag
43-
class="section-title"
44-
id={id ? `${id}-title` : undefined}
45-
set:html={title}
46-
/>
47-
</div>
41+
{title && (
42+
<div class={clsx("header", { "with-bottom-border": bottomBorder })}>
43+
<TitleTag
44+
class="section-title"
45+
id={id ? `${id}-title` : undefined}
46+
set:html={title}
47+
/>
48+
</div>
49+
)}
4850

4951
<slot />
5052

src/pages/index.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ const tags = [
9797
"External OpenID providers; Google, Microsoft, Zitadel, Keycloak, Okta, JumpCloud and more. Integrates with LDAP, Active Directory and Microsoft Entra ID.",
9898
icon: "lni-apartment",
9999
linkText: "Learn about OpernID Providers",
100-
linkUrl: "https://docs.defguard.net/admin-and-features/external-openid-providers",
101-
linkTarget: "_blank"
100+
linkUrl: "https://docs.defguard.net/admin-and-features/external-openid-providers"
101+
// linkTarget: "_blank"
102102
},
103103
{
104104
title: "Privacy and Transparency",
@@ -153,12 +153,11 @@ const tags = [
153153
-->
154154

155155
<HeaderSection
156-
title="Modern VPN Protocol. Now Enterprise-Ready."
156+
title="WireGuard® VPN Protocol. Now Enterprise-Ready."
157157
description="WireGuard® is a game-changer in VPN technology — fast, lightweight, and secure. But it's just a protocol."
158158
variant="gray"
159159
/>
160160
<FlexibleSection
161-
title="WireGuard® is Great — Defguard Makes It Enterprise-Ready"
162161
id="security-features"
163162
variant="gray"
164163
theme="light"

0 commit comments

Comments
 (0)