From 68acf336b741a52f72968125ca91cf9f05b9cd65 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 9 Aug 2021 14:33:00 +0200 Subject: [PATCH] Brand website assumes it's a hugo website, and redirects based on language, main-index now can have dynamic cards. --- layouts/main-index.html | 46 ++++++++---------------------------- layouts/partials/header.html | 2 +- 2 files changed, 11 insertions(+), 37 deletions(-) diff --git a/layouts/main-index.html b/layouts/main-index.html index a5db677..dc2085c 100644 --- a/layouts/main-index.html +++ b/layouts/main-index.html @@ -28,51 +28,25 @@

{{ i18n "softwareCommitments" }}

-
-
+ {{ $cardsCount := len .Params.Cards.List }} + {{ range .Params.Cards.List }} + {{ $card := index $.Params.Cards . }} +
+

- - {{ .Params.Cards.FLOSS.Title }} + + {{ $card.Title }}

- {{ .Params.Cards.FLOSS.Description | markdownify }} + {{ $card.Description | markdownify }}


  - {{ partial "links.html" .Params.Cards.FLOSS.Links }} -
-
-
-
-
-

- - {{ .Params.Cards.Privacy.Title }} -

-

- {{ .Params.Cards.Privacy.Description | markdownify }} -

-
-
  - {{ partial "links.html" .Params.Cards.Privacy.Links }} -
-
-
-
-
-

- - {{ .Params.Cards.Platforms.Title }} -

-

- {{ .Params.Cards.Platforms.Description | markdownify }} -

-
-
  - {{ partial "links.html" .Params.Cards.Platforms.Links }} + {{ partial "links.html" $card.Links }}
+ {{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f49713e..1f84fe0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,7 +3,7 @@