Brand website assumes it's a hugo website, and redirects based on language, main-index now can have dynamic cards.
This commit is contained in:
parent
4f58f6e6ea
commit
68acf336b7
2 changed files with 11 additions and 37 deletions
|
@ -28,51 +28,25 @@
|
||||||
<br>
|
<br>
|
||||||
<h1 class="text-center">{{ i18n "softwareCommitments" }}</h1>
|
<h1 class="text-center">{{ i18n "softwareCommitments" }}</h1>
|
||||||
<div class="columns-container padding-container-3" >
|
<div class="columns-container padding-container-3" >
|
||||||
<div class="column col3 vertical-center padding-container">
|
{{ $cardsCount := len .Params.Cards.List }}
|
||||||
<div class="card blue topleft2bottomright padding-container text-content">
|
{{ range .Params.Cards.List }}
|
||||||
|
{{ $card := index $.Params.Cards . }}
|
||||||
|
<div class="column col{{ $cardsCount }} vertical-center padding-container">
|
||||||
|
<div class="card {{ $card.Color }} {{ $card.Orientation }} padding-container text-content">
|
||||||
<h2 class="flex flex-center text-center">
|
<h2 class="flex flex-center text-center">
|
||||||
<i class="icon-free icon-larger2-text" alt="Free (as in freedom) icon"></i>
|
<i class="icon-{{ $card.Icon }} icon-larger2-text"></i>
|
||||||
{{ .Params.Cards.FLOSS.Title }}
|
{{ $card.Title }}
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
{{ .Params.Cards.FLOSS.Description | markdownify }}
|
{{ $card.Description | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
<br>
|
<br>
|
||||||
<div class="grid flex-center">
|
<div class="grid flex-center">
|
||||||
{{ partial "links.html" .Params.Cards.FLOSS.Links }}
|
{{ partial "links.html" $card.Links }}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="column col3 vertical-center padding-container">
|
|
||||||
<div class="card purple top2bottom padding-container text-content">
|
|
||||||
<h2 class="flex flex-center text-center">
|
|
||||||
<i class="icon-privacy icon-larger2-text" alt="Privacy icon"></i>
|
|
||||||
{{ .Params.Cards.Privacy.Title }}
|
|
||||||
</h2>
|
|
||||||
<p>
|
|
||||||
{{ .Params.Cards.Privacy.Description | markdownify }}
|
|
||||||
</p>
|
|
||||||
<br>
|
|
||||||
<div class="grid flex-center">
|
|
||||||
{{ partial "links.html" .Params.Cards.Privacy.Links }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="column col3 vertical-center padding-container">
|
|
||||||
<div class="card yellow topright2bottomleft padding-container text-content">
|
|
||||||
<h2 class="flex flex-center text-center">
|
|
||||||
<i class="icon-platforms icon-larger2-text" alt="Platforms icon"></i>
|
|
||||||
{{ .Params.Cards.Platforms.Title }}
|
|
||||||
</h2>
|
|
||||||
<p>
|
|
||||||
{{ .Params.Cards.Platforms.Description | markdownify }}
|
|
||||||
</p>
|
|
||||||
<br>
|
|
||||||
<div class="grid flex-center">
|
|
||||||
{{ partial "links.html" .Params.Cards.Platforms.Links }}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="padding-container-3">
|
<section class="padding-container-3">
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="center nav-flex">
|
<div class="center nav-flex">
|
||||||
{{ $currentPage := . }}
|
{{ $currentPage := . }}
|
||||||
<div class="nav-mobile">
|
<div class="nav-mobile">
|
||||||
<a class="navbar-brand" href="{{ .Site.Params.brandWebsite }}" role="button">
|
<a class="navbar-brand" href="{{ .Site.Params.brandWebsite }}{{ .Site.Language.Lang }}" role="button">
|
||||||
<img src="/img/logo.svg" loading=lazy class="icon-brand" alt="Ad5001's icon"/>
|
<img src="/img/logo.svg" loading=lazy class="icon-brand" alt="Ad5001's icon"/>
|
||||||
Ad5001
|
Ad5001
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue