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>
|
||||
<h1 class="text-center">{{ i18n "softwareCommitments" }}</h1>
|
||||
<div class="columns-container padding-container-3" >
|
||||
<div class="column col3 vertical-center padding-container">
|
||||
<div class="card blue topleft2bottomright padding-container text-content">
|
||||
{{ $cardsCount := len .Params.Cards.List }}
|
||||
{{ 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">
|
||||
<i class="icon-free icon-larger2-text" alt="Free (as in freedom) icon"></i>
|
||||
{{ .Params.Cards.FLOSS.Title }}
|
||||
<i class="icon-{{ $card.Icon }} icon-larger2-text"></i>
|
||||
{{ $card.Title }}
|
||||
</h2>
|
||||
<p>
|
||||
{{ .Params.Cards.FLOSS.Description | markdownify }}
|
||||
{{ $card.Description | markdownify }}
|
||||
</p>
|
||||
<br>
|
||||
<div class="grid flex-center">
|
||||
{{ partial "links.html" .Params.Cards.FLOSS.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 }}
|
||||
{{ partial "links.html" $card.Links }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
<section class="padding-container-3">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="center nav-flex">
|
||||
{{ $currentPage := . }}
|
||||
<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"/>
|
||||
Ad5001
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue