diff --git a/exampleSite/content/test-product/_index.md b/exampleSite/content/test-product/_index.md index c3372c2..df11ae2 100644 --- a/exampleSite/content/test-product/_index.md +++ b/exampleSite/content/test-product/_index.md @@ -2,27 +2,10 @@ description: Test pages for nginx-hugo-theme title: Test pages weight: 100 -hasCustomContent: true +nd-landing-page: true --- - -## About - -[//]: # "Give a short 1-2 sentence summary of what the product does and its value to a customer." -This is a compilation of all our shortcodes to show how they look, function, respond, and coded. - -## Featured Content - -[//]: # "Maximum of three cards available to display." -[//]: # "Each card should be less than 10 words for a description." -[//]: # "If more than three cards are placed here, they are not displayed." -[//]: # "If there is one card, it will take full width and be the only card in the row." -[//]: # "If there is two cards, one card will take half width and there will be two cards in a row." -[//]: # "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." - -{{}} - - - {{}} +{{}} + {{}} {{}} All shortcodes in one page. {{}} @@ -39,7 +22,7 @@ This is a compilation of all our shortcodes to show how they look, function, res ## Other Content [//]: # "Provide any sort of additional supporting content you may want customers to see as well (e.g. more cards, diagrams, changelogs, etc.)" -{{}} +{{}} {{}} {{}} Installing NGINX diff --git a/layouts/partials/list-main.html b/layouts/partials/list-main.html index 3f350d1..48a1a28 100644 --- a/layouts/partials/list-main.html +++ b/layouts/partials/list-main.html @@ -13,31 +13,6 @@

{{ partial "banner" .}} {{ $hasCustomContent := index .Params "nd-landing-page" | default false }} {{ if $hasCustomContent }} - {{ $cards := .Page.Scratch.Get "cards" }} -
-
-
- {{ range .Pages.GroupBy "Section" }} - {{ range .Pages.ByWeight }} - {{ $title := .Title }} -
-
-

- - {{ .Title }} -

- {{ range $cards }} - {{ if eq .title $title }} -

{{ .content }}

- {{ end }} - {{ end }} -
-
- {{ end }} - {{ end }} -
-
-
{{ .Content }} {{ else }}
diff --git a/layouts/shortcodes/card.html b/layouts/shortcodes/card.html index 38066bc..df304d8 100644 --- a/layouts/shortcodes/card.html +++ b/layouts/shortcodes/card.html @@ -39,6 +39,8 @@

{{- $title -}}

{{- if $brandIcon -}} + {{- else -}} + {{- end -}} {{- if ($title) -}} {{- $title -}}