Fixing bug with wrong appindex, removing useless alts.

This commit is contained in:
Adsooi 2021-08-12 01:40:40 +02:00
parent 39566136aa
commit ebd1e63256
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 14 additions and 14 deletions

View file

@ -52,46 +52,46 @@
{{ end }} {{ end }}
<section id="technical-details-section" class="center content-center padding-container"> <section id="technical-details-section" class="center content-center padding-container">
<hr> <hr>
<h1 class="flex flex-center"><i class="icon-wrench icon-larger-text" alt=""></i>{{ i18n "technicalSheet" }}</h1> <h1 class="flex flex-center"><i class="icon-wrench icon-larger-text"></i>{{ i18n "technicalSheet" }}</h1>
<div class="grid"> <div class="grid">
<p class="inline column col2"> <p class="inline column col2">
<i class="icon-universal icon-as-text" alt=""></i> <i class="icon-universal icon-as-text"></i>
{{ i18n "supportedPlatforms" }}&nbsp;{{ partial "platforms.html" $AppData.platforms }} {{ i18n "supportedPlatforms" }}&nbsp;{{ partial "platforms.html" $AppData.platforms }}
</p> </p>
<p class="inline column col2"> <p class="inline column col2">
<i class="icon-lang icon-as-text" alt=""></i> <i class="icon-lang icon-as-text"></i>
{{ i18n "translated" }}&nbsp;{{ partial "translations.html" $AppData.translated }} {{ i18n "translated" }}&nbsp;{{ partial "translations.html" $AppData.translated }}
</p> </p>
<p class="inline column col2"> <p class="inline column col2">
<i class="icon-git icon-as-text" alt=""></i> <i class="icon-git icon-as-text"></i>
{{ i18n "latestVersion" }}v{{ $AppData.version }} {{ i18n "latestVersion" }}v{{ $AppData.version }}
</p> </p>
<p class="inline column col2"> <p class="inline column col2">
<i class="icon-git icon-as-text" alt=""></i> <i class="icon-git icon-as-text"></i>
{{ i18n "status" }}{{ $i18nAppData.status }} {{ i18n "status" }}{{ $i18nAppData.status }}
</p> </p>
<p class="inline column col2"> <p class="inline column col2">
<i class="icon-code icon-as-text" alt=""></i> <i class="icon-code icon-as-text"></i>
{{ i18n "programingLanguages" }}{{ delimit $AppData.languages ", " }} {{ i18n "programingLanguages" }}{{ delimit $AppData.languages ", " }}
</p> </p>
<p class="inline column col2"> <p class="inline column col2">
<i class="icon-frameworks icon-as-text" alt=""></i> <i class="icon-frameworks icon-as-text"></i>
{{ i18n "frameworks" }}&nbsp;{{ delimit $i18nAppData.frameworks ", " | markdownify }} {{ i18n "frameworks" }}&nbsp;{{ delimit $i18nAppData.frameworks ", " | markdownify }}
</p> </p>
{{ if $AppData.touchfriendly }} {{ if $AppData.touchfriendly }}
<p class="inline column col2"> <p class="inline column col2">
<i class="icon-touch icon-as-text" alt=""></i> <i class="icon-touch icon-as-text"></i>
{{ i18n "touchFriendly" }} {{ i18n "touchFriendly" }}
</p> </p>
{{ end }} {{ end }}
{{ if $AppData.keyboardoriented }} {{ if $AppData.keyboardoriented }}
<p class="inline column col2"> <p class="inline column col2">
<i class="icon-keyboard icon-as-text" alt=""></i> <i class="icon-keyboard icon-as-text"></i>
{{ i18n "keyboardOriented" }} {{ i18n "keyboardOriented" }}
</p> </p>
{{ end }} {{ end }}
<p class="inline column col2"> <p class="inline column col2">
<i class="icon-license icon-as-text" alt=""></i> <i class="icon-license icon-as-text"></i>
{{ i18n "license" }}&nbsp;{{ $AppData.license | markdownify }} {{ i18n "license" }}&nbsp;{{ $AppData.license | markdownify }}
</p> </p>
</div> </div>
@ -103,7 +103,7 @@
<!-- download section --> <!-- download section -->
<section id="download-section" class="center content-center padding-container text-center"> <section id="download-section" class="center content-center padding-container text-center">
<hr> <hr>
<h1 class="flex flex-center"><i class="icon-download icon-larger-text" alt=""></i>{{ i18n "download" }}</h1> <h1 class="flex flex-center"><i class="icon-download icon-larger-text"></i>{{ i18n "download" }}</h1>
{{ i18n "downloadApp" (dict "Name" .Name "Platforms" (delimit $AppData.platforms ", ")) }} {{ i18n "downloadApp" (dict "Name" .Name "Platforms" (delimit $AppData.platforms ", ")) }}
<br><br> <br><br>
<!-- download table --> <!-- download table -->
@ -112,7 +112,7 @@
{{ range $download.Categories }} {{ range $download.Categories }}
<div class="column app-download col{{ len $download.Categories | safeHTMLAttr }}"> <div class="column app-download col{{ len $download.Categories | safeHTMLAttr }}">
<div class="fill-width primary vertical-center app-download-platform"> <div class="fill-width primary vertical-center app-download-platform">
<i class="icon-{{ lower .Platform }} icon-as-text" alt=""></i>{{ .Title }} <i class="icon-{{ lower .Platform }} icon-as-text"></i>{{ .Title }}
</div> </div>
<div class="app-os-sources"> <div class="app-os-sources">
{{ $links := index $download.Links .Name }} {{ $links := index $download.Links .Name }}
@ -141,7 +141,7 @@
<div class="primary center fit-content" role="button"> <div class="primary center fit-content" role="button">
{{ $filename := replace .File "<version>" $AppData.version }} {{ $filename := replace .File "<version>" $AppData.version }}
<a href="https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/{{ $appindex }}/v{{ $AppData.version }}/{{ $filename }}" download rel="noreferrer"> <a href="https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/{{ $appindex }}/v{{ $AppData.version }}/{{ $filename }}" download rel="noreferrer">
<i class="icon-download icon-as-text" alt=""></i>{{ i18n "download" }} <i class="icon-download icon-as-text"></i>{{ i18n "download" }}
</a> </a>
</div> </div>
{{ end }} {{ end }}

View file

@ -1,7 +1,7 @@
<!-- heading sections for apps --> <!-- heading sections for apps -->
{{ $data := index .Site.Data .Site.Language.Lang }} {{ $data := index .Site.Data .Site.Language.Lang }}
{{ $i18nAppData := index $data.apps .Data.AppIndex }} {{ $i18nAppData := index $data.apps .Data.AppIndex }}
{{ $AppData := index .Site.Data.metadata $appindex }} {{ $AppData := index .Site.Data.metadata .Data.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">