diff --git a/assets/css/f5-hugo.css b/assets/css/f5-hugo.css index 3f82f1e..03b6b5c 100644 --- a/assets/css/f5-hugo.css +++ b/assets/css/f5-hugo.css @@ -423,6 +423,16 @@ h3.card-title { font-weight: 400; } +/* Landing page cards */ +.text-content .card-layout { + .card-section { + margin-bottom: 1rem; + + strong { + font-weight: 500; + } + } +} #f5-related, #nginx-products { width: 100%; diff --git a/assets/css/v2/style.css b/assets/css/v2/style.css index 64bfe7e..f920dc6 100644 --- a/assets/css/v2/style.css +++ b/assets/css/v2/style.css @@ -674,7 +674,6 @@ nav { h2 { font-size: 1.5rem; - margin: 1rem 0 0rem 0; } hr { @@ -1188,6 +1187,35 @@ h6:has(a):hover { color: oklch(var(--color-brand)); } +/* Landing page cards */ + +.text-content .card-layout { + grid-column: 1 / -1; + + .card-section { + margin-bottom: 1rem; + + strong { + font-weight: 500; + } + } +} + +/* Optional grid layout */ +.card-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(120px, 500px)); + gap: 1.5rem; + margin-top: 1rem; + + .card-container { + border: 1px solid oklch(var(--color-codeblock-border)); + box-shadow: 3px 3px 0px oklch(var(--color-shadow)); + padding: 1rem 2rem 2rem 2rem; + margin-bottom: 1.5rem; + } +} + /* MARK: Tables */ table { diff --git a/exampleSite/content/test-product/_index.md b/exampleSite/content/test-product/_index.md index 5b74134..96b971a 100644 --- a/exampleSite/content/test-product/_index.md +++ b/exampleSite/content/test-product/_index.md @@ -2,4 +2,26 @@ description: Test pages for nginx-hugo-theme title: Test pages weight: 100 +hasCustomContent: true --- + +{{< card-layout >}} + + + {{< card-section >}} + {{< card title="Call Out usages" >}} + + Examples for call-out shortcode + {{ card >}} + {{< card title="Code Block usages" >}} + Examples for codeblock shortcode + {{ card >}} + {{ card-section >}} + + # Other Products on ExampleSite + {{< card-section title="NGINX" showAsCards="true" >}} + {{< card title="NGINX Plus" titleUrl="/nginx/" >}} + Installing NGINX + {{ card >}} + {{ card-section >}} +{{ card-layout >}} \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 6164c75..ca57cec 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -29,17 +29,22 @@ {{ end }}
{{ .content }}
+ {{ end }} + {{ end }} +- {{ .Content | markdownify }} -
- {{ end }} - {{ partial "banner" .}} - - - - {{ if or (lt .WordCount 1) (eq $PageTitle "F5 NGINX One Console") (eq $PageTitle "F5 NGINX App Protect DoS") (eq $PageTitle "F5 NGINX Plus") }} -{{ $type | humanize | title }}
- {{ range $products }} -- {{ if .description }}{{ .description | markdownify }}{{ end }} -
-{{- .Inner -}}
+