Fixing platforms not being displayed.

This commit is contained in:
Adsooi 2021-08-12 01:37:14 +02:00
parent 8d996d8734
commit 39566136aa
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -1,16 +1,17 @@
<!-- heading sections for apps --> <!-- heading sections for apps -->
{{ $data := index .Site.Data .Site.Language.Lang }} {{ $data := index .Site.Data .Site.Language.Lang }}
{{ $appdata := index $data.apps .Data.AppIndex }} {{ $i18nAppData := index $data.apps .Data.AppIndex }}
{{ $AppData := index .Site.Data.metadata $appindex }}
{{ with .Data }} {{ with .Data }}
<section style="background: {{ .Background | safeCSS }};" class="section-header"> <section style="background: {{ .Background | safeCSS }};" class="section-header">
<div class="columns-container"> <div class="columns-container">
<div class="column col3 center text-right vertical-center {{ if .TextWhite }}text-white{{ end }}"> <div class="column col3 center text-right vertical-center {{ if .TextWhite }}text-white{{ end }}">
<br> <br>
<h1 class="flex flex-right">&nbsp;<img src="/icons/apps/{{ .AppIndex | safeHTML }}.svg" class="icon-larger-text shadowed" alt="{{ .AppIndex | safeHTML }} app icon"/>{{ $appdata.name | safeHTML }}</h1> <h1 class="flex flex-right">&nbsp;<img src="/icons/apps/{{ .AppIndex | safeHTML }}.svg" class="icon-larger-text shadowed" alt="{{ .AppIndex | safeHTML }} app icon"/>{{ $i18nAppData.name | safeHTML }}</h1>
<h2>{{ $appdata.description | safeHTML }}</h2> <h2>{{ $i18nAppData.description | safeHTML }}</h2>
{{ if .ShowPlatforms }} {{ if .ShowPlatforms }}
<p class="flex flex-right">{{ i18n "availableOn" }}&nbsp; <p class="flex flex-right">{{ i18n "availableOn" }}&nbsp;
{{ partial "platforms.html" $appdata.platforms }} {{ partial "platforms.html" $AppData.platforms }}
</p> </p>
{{ end }} {{ end }}
<div class="grid flex-right">&nbsp; <div class="grid flex-right">&nbsp;
@ -19,7 +20,7 @@
<br> <br>
</div> </div>
<div class="column col2-3 center flex"> <div class="column col2-3 center flex">
<img class="vertical-center-img" alt="{{ $appdata.name | safeHTML }} preview" src="/img/full/{{ .AppIndex }}.png"/> <img class="vertical-center-img" alt="{{ $i18nAppData.name | safeHTML }} preview" src="/img/full/{{ .AppIndex }}.png"/>
</div> </div>
</div> </div>
<div class="section-end-triangle"></div> <div class="section-end-triangle"></div>