Skip to content

Commit 03224e4

Browse files
committed
Mainframe: Update test product landing page + fixed small bug with card layout
1 parent 44c87a7 commit 03224e4

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed

assets/css/v2/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ h6:has(a):hover {
12331233
padding: 1rem;
12341234

12351235
&.featured-card {
1236-
/* If there is a featured card, only the featured card should be full length */
1236+
/* If there is a need for a featured card, only the featured card should be full length */
12371237
grid-column: 1 / -1;
12381238

12391239
/* If there is a featured card AND two cards, the last one should be full length */
@@ -1244,7 +1244,7 @@ h6:has(a):hover {
12441244
}
12451245

12461246
/* If there is no featured card, last card that is the 3rd one should be full width */
1247-
&:not(:has(.featured-card)) .card-container:nth-child(3n):last-child {
1247+
&:not(:has(.featured-card)) .card-container:nth-child(3n) {
12481248
grid-column: 1 / -1;
12491249
}
12501250
}

exampleSite/content/test-product/_index.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,41 @@
11
---
2-
description: Test pages for nginx-hugo-theme
2+
# The title is the product name
33
title: Test pages
44
weight: 100
5-
hasCustomContent: true
5+
# The URL is the base of the deployed path, becoming "docs.nginx.com/<url>/<other-pages>"
6+
url:
7+
# The subtitle displays directly underneath the heading of a given page
8+
nd-subtitle: Test pages for nginx-hugo-theme
9+
# Indicates that this is a custom landing page
10+
nd-landing-page: true
11+
# Types have a 1:1 relationship with Hugo archetypes, so you shouldn't need to change this
12+
nd-content-type: landing-page
13+
# Intended for internal catalogue and search, case sensitive:
14+
# Agent, N4Azure, NIC, NIM, NGF, NAP-DOS, NAP-WAF, NGINX One, NGINX+, Solutions, Unit
15+
nd-product:
616
---
717

818
## About
19+
[//]: # "These are Markdown comments to guide you through document structure. Remove them as you go, as well as any unnecessary sections."
20+
[//]: # "Use underscores for _italics_, and double asterisks for **bold**."
21+
[//]: # "Backticks are for `monospace`, used sparingly and reserved mostly for executable names - they can cause formatting problems. Avoid them in tables: use italics instead."
22+
23+
[//]: # "This initial section introduces the product to a reader: give a short 1-2 sentence summary of what the product does and its value to the reader."
24+
[//]: # "Name specific functionality it provides: avoid ambiguous descriptions such as 'enables efficiency', focus on what makes it unique."
925

10-
[//]: # "Give a short 1-2 sentence summary of what the product does and its value to a customer."
1126
This is a compilation of all our shortcodes to show how they look, function, respond, and coded.
1227

1328
## Featured Content
29+
[//]: # "You can add a maximum of three cards: any extra will not display."
30+
[//]: # "One card will take full width page: two will take half width each. Three will stack like an inverse pyramid."
31+
[//]: # "Some examples of content could be the latest release note, the most common install path, and a popular new feature."
1432

15-
[//]: # "Maximum of three cards available to display."
16-
[//]: # "Each card should be less than 10 words for a description."
17-
[//]: # "If more than three cards are placed here, they are not displayed."
18-
[//]: # "If there is one card, it will take full width and be the only card in the row."
19-
[//]: # "If there is two cards, one card will take half width and there will be two cards in a row."
20-
[//]: # "If there is three cards, there will be two rows, where first row has two equal-sized cards, and second row will have a full width card. Can we inversed in order to feature content."
21-
<!-- <card-layout> - Available params: title (required: string)-->
2233
{{<card-layout >}}
23-
<!-- <card-section> - Available params: title (required: string), showAsCards (optional: boolean, default "false"), isFeaturedSection (optional: boolean, default "false") -->
24-
<!-- If there is no "title" for <card-section>, it is implied it is the main content section and not a new content section -->
2534
{{<card-section showAsCards="true" isFeaturedSection="true">}}
2635
{{<card title="Everything" titleUrl="everything" icon="circle-dot-dashed">}}
2736
All shortcodes in one page.
2837
{{</card >}}
2938
{{<card title="Call Out usages" titleUrl="call-out/all-callouts/" icon="message-square">}}
30-
<!-- <card> - Available params: title (required: string), titleUrl (optional: string, relative path or absolute URL (e.g. https://google.com)), icon (optional: string, pulled from lucide), brandIcon (optional: string, takes priority over icon if provided) -->
3139
Examples for call-out shortcode
3240
{{</card >}}
3341
{{<card title="Code Block usages" titleUrl="code-blocks/code-blocks-highlighting/" icon="code">}}
@@ -37,8 +45,8 @@ This is a compilation of all our shortcodes to show how they look, function, res
3745
{{</card-layout >}}
3846

3947
## Other Content
48+
[//]: # "You can add any extra content for the page here, such as additional cards, diagrams or text."
4049

41-
[//]: # "Provide any sort of additional supporting content you may want customers to see as well (e.g. more cards, diagrams, changelogs, etc.)"
4250
{{<card-layout >}}
4351
{{<card-section title="NGINX" showAsCards="true" >}}
4452
{{<card title="NGINX Plus" titleUrl="/nginx/" brandIcon="NGINX-Plus-product-icon-RGB" >}}

0 commit comments

Comments
 (0)