2021-12-30 22:58:11 +00:00
<!--
Omegamma - Hugo theme for ad5001.eu and related websites
Copyright (C) 2021-2022 Ad5001 < mail @ ad5001 . eu >
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see < https: / / www . gnu . org / licenses / > .
-->
2021-06-13 17:49:30 +00:00
<!DOCTYPE html>
2021-09-30 13:41:21 +00:00
<!-- Common app data -->
2022-01-21 12:05:46 +00:00
{{ $site := .Site }}
2021-08-02 00:40:30 +00:00
{{ $lang := .Site.Language.Lang }}
2021-08-02 20:14:51 +00:00
{{ $appindex := .Params.SectionHeader.AppIndex }}
2021-08-11 13:07:15 +00:00
{{ $i18nData := index .Site.Data $lang }}
{{ $i18nAppData := index $i18nData.apps $appindex }}
{{ $AppData := index .Site.Data.metadata $appindex }}
2021-09-30 13:41:21 +00:00
<!-- Store disclaimers -->
2021-08-03 12:59:16 +00:00
{{ $disclaimers := newScratch }}
{{ $disclaimers.Set "snapcraft" false }}
{{ $disclaimers.Set "firefox" false }}
2021-06-14 15:16:22 +00:00
2021-08-02 00:40:30 +00:00
< html lang = "{{ $lang }}" >
2021-06-13 17:49:30 +00:00
{{- partial "head.html" . -}}
< body >
{{- partial "header.html" . -}}
< div id = "content" >
{{ partial "section-app-header.html" (dict "Data" .Params.SectionHeader "Site" .Site) }}
< br >
<!-- About section -->
2021-06-14 15:16:22 +00:00
< section id = "about-section" class = "center content-center padding-container" >
2021-06-13 17:49:30 +00:00
< h1 > {{ .Params.About.Title }}< / h1 >
< p > {{ .Params.About.Content | markdownify }}< / p >
< / section >
<!-- other sections -->
{{ range .Params.Sections }}
< section class = "center content-center columns-container padding-container" >
{{ if eq .Type "text|image" }}
2021-06-14 15:16:22 +00:00
< div class = "column col2 text-left vertical-center" >
2021-06-13 17:49:30 +00:00
{{ .Content | markdownify }}
< / div >
< div class = "column col2" >
2021-10-04 08:00:45 +00:00
< img class = "vertical-center fill-width" alt = "{{ .Alt }}" src = "/img/{{ .Image }}" loading = "lazy" / >
2021-06-13 17:49:30 +00:00
< / div >
{{ else if eq .Type "image|text" }}
< div class = "column col2" >
2021-10-04 08:00:45 +00:00
< img class = "vertical-center fill-width" alt = "{{ .Alt }}" src = "/img/{{ .Image }}" loading = "lazy" / >
2021-06-13 17:49:30 +00:00
< / div >
< div class = "column col2 text-left vertical-center" >
{{ .Content | markdownify }}
< / div >
2021-06-14 15:16:22 +00:00
{{ else if eq .Type "text/image" }}
2022-01-24 19:39:59 +00:00
< div class = "column col1 col1-fill text-center" >
2021-06-13 17:49:30 +00:00
{{ .Content | markdownify }}
2021-10-04 08:00:45 +00:00
< img src = "/img/{{ .Image }}" alt = "{{ .Alt }}" loading = "lazy" / >
2021-06-13 17:49:30 +00:00
< / div >
2021-06-14 15:16:22 +00:00
{{ else if eq .Type "text" }}
2022-01-24 19:39:59 +00:00
< div class = "column col1 col1-fill text-center" >
2021-06-14 15:16:22 +00:00
{{ .Content | markdownify }}
< / div >
2021-06-13 17:49:30 +00:00
{{ end }}
< / section >
< br >
{{ end }}
2021-06-14 15:16:22 +00:00
< section id = "technical-details-section" class = "center content-center padding-container" >
< hr >
2021-08-11 23:40:40 +00:00
< h1 class = "flex flex-center" > < i class = "icon-wrench icon-larger-text" > < / i > {{ i18n "technicalSheet" }}< / h1 >
2021-06-14 15:16:22 +00:00
< div class = "grid" >
< p class = "inline column col2" >
2021-08-11 23:40:40 +00:00
< i class = "icon-universal icon-as-text" > < / i >
2021-08-11 13:07:15 +00:00
{{ i18n "supportedPlatforms" }} {{ partial "platforms.html" $AppData.platforms }}
2021-06-14 15:16:22 +00:00
< / p >
< p class = "inline column col2" >
2021-08-11 23:40:40 +00:00
< i class = "icon-lang icon-as-text" > < / i >
2022-01-21 12:05:46 +00:00
{{ i18n "translated" }} {{ partial "flags.html" $AppData.translated }}<!-- {{ partial "translations.html" $AppData.translated }} -->
2021-06-14 15:16:22 +00:00
< / p >
< p class = "inline column col2" >
2021-08-11 23:40:40 +00:00
< i class = "icon-git icon-as-text" > < / i >
2021-08-11 13:07:15 +00:00
{{ i18n "latestVersion" }}v{{ $AppData.version }}
2021-06-14 15:16:22 +00:00
< / p >
< p class = "inline column col2" >
2021-08-11 23:40:40 +00:00
< i class = "icon-git icon-as-text" > < / i >
2021-08-11 13:07:15 +00:00
{{ i18n "status" }}{{ $i18nAppData.status }}
2021-06-14 15:16:22 +00:00
< / p >
< p class = "inline column col2" >
2021-08-11 23:40:40 +00:00
< i class = "icon-code icon-as-text" > < / i >
2021-08-11 13:07:15 +00:00
{{ i18n "programingLanguages" }}{{ delimit $AppData.languages ", " }}
2021-06-14 15:16:22 +00:00
< / p >
< p class = "inline column col2" >
2021-08-11 23:40:40 +00:00
< i class = "icon-frameworks icon-as-text" > < / i >
2021-08-11 13:07:15 +00:00
{{ i18n "frameworks" }} {{ delimit $i18nAppData.frameworks ", " | markdownify }}
2021-06-14 15:16:22 +00:00
< / p >
2021-08-11 13:07:15 +00:00
{{ if $AppData.touchfriendly }}
2021-06-14 15:16:22 +00:00
< p class = "inline column col2" >
2021-08-11 23:40:40 +00:00
< i class = "icon-touch icon-as-text" > < / i >
2021-06-14 15:16:22 +00:00
{{ i18n "touchFriendly" }}
< / p >
{{ end }}
2021-08-11 13:07:15 +00:00
{{ if $AppData.keyboardoriented }}
2021-06-14 15:16:22 +00:00
< p class = "inline column col2" >
2021-08-11 23:40:40 +00:00
< i class = "icon-keyboard icon-as-text" > < / i >
2021-06-14 15:16:22 +00:00
{{ i18n "keyboardOriented" }}
< / p >
{{ end }}
2021-06-23 01:18:18 +00:00
< p class = "inline column col2" >
2021-08-11 23:40:40 +00:00
< i class = "icon-license icon-as-text" > < / i >
2021-08-11 13:07:15 +00:00
{{ i18n "license" }} {{ $AppData.license | markdownify }}
2021-06-23 01:18:18 +00:00
< / p >
2021-06-14 15:16:22 +00:00
< / div >
2021-06-18 17:41:15 +00:00
< div class = "grid flex-center" >
2021-07-16 22:36:59 +00:00
{{ partial "links.html" .Params.Technical.Links }}
2021-06-18 17:41:15 +00:00
< / div >
2021-06-14 15:16:22 +00:00
< / section >
{{ if .Params.Download.Show }}
<!-- download section -->
< section id = "download-section" class = "center content-center padding-container text-center" >
< hr >
2021-08-11 23:40:40 +00:00
< h1 class = "flex flex-center" > < i class = "icon-download icon-larger-text" > < / i > {{ i18n "download" }}< / h1 >
2022-01-19 18:56:47 +00:00
{{ i18n "downloadApp" (dict "Name" .Name "Version" $AppData.version "Platforms" (delimit $AppData.platforms ", ")) }} < a href = "https://artifacts.accountfree.org/service/rest/repository/browse/apps.ad5001.eu-apps/{{ $appindex }}/" > {{ i18n "olderVersions" }}< / a >
2021-06-14 15:16:22 +00:00
< br > < br >
<!-- download table -->
< div class = "center columns-container" >
{{ $download := .Params.Download }}
{{ range $download.Categories }}
< div class = "column app-download col{{ len $download.Categories | safeHTMLAttr }}" >
< div class = "fill-width primary vertical-center app-download-platform" >
2021-08-11 23:40:40 +00:00
< i class = "icon-{{ lower .Platform }} icon-as-text" > < / i > {{ .Title }}
2021-06-14 15:16:22 +00:00
< / div >
2021-07-25 20:33:01 +00:00
< div class = "app-os-sources" >
2021-06-14 15:16:22 +00:00
{{ $links := index $download.Links .Name }}
{{ range $links }}
2021-07-25 20:33:01 +00:00
< div >
2021-06-14 15:16:22 +00:00
< h3 > {{ .Title }}< / h3 >
2021-08-02 00:40:30 +00:00
{{ if hasPrefix .Title "Flatpak" }}
2022-04-11 02:00:36 +00:00
< a href = "https://flathub.org/apps/details/{{ .Index }}" >
2021-08-03 12:59:16 +00:00
{{ partial "badge.html" (dict "Icon" "flathub" "Lang" $lang "Alt" "storeFlathub" ) }}
2022-01-12 10:52:18 +00:00
< br >
2022-01-20 01:14:00 +00:00
< img loading = 'lazy' src = "https://img.shields.io/flathub/v/{{ .Index }}?label=on%20flathub&logo=Flathub&logoColor=white&color=4A86CF" alt = "Version on flathub" / >
2023-01-19 15:37:56 +00:00
<!-- <img loading='lazy' src="https://img.shields.io/endpoint?url=https://api.ad5001.eu/badges/flathub/?query={{ .Index }}" alt="Installs on flathub"/> -->
2022-01-19 18:07:36 +00:00
< / a >
2021-08-03 12:59:16 +00:00
< br > < br > {{ i18n "warnExternalWebsite" "flathub.org" }}
2021-08-02 00:40:30 +00:00
{{ else if hasPrefix .Title "Snap" }}
2021-08-03 12:59:16 +00:00
{{ $disclaimers.Set "snapcraft" true }}
2022-04-11 02:00:36 +00:00
< a href = "https://snapcraft.io/{{ .Index }}" >
2021-08-03 12:59:16 +00:00
{{ partial "badge.html" (dict "Icon" "snapcraft" "Lang" $lang "Alt" "storeSnapcraft" ) }}
2022-01-12 11:15:04 +00:00
< br >
2022-01-20 19:52:00 +00:00
< img loading = 'lazy' src = "https://badgen.net/snapcraft/v/{{ .Index }}?label=on%20snapstore&color=FA6441&icon=https://ad5001.eu/icons/skills/snapcraft.svg" alt = "Version on snapstore" / >
2023-01-19 15:37:56 +00:00
<!-- <img loading='lazy' src="https://img.shields.io/endpoint?url=https://api.ad5001.eu/badges/snapstore/?query={{ .Index }}" alt="Installs on snapstore"/> -->
2022-01-20 19:52:00 +00:00
2021-08-03 12:59:16 +00:00
< / a >
< br > < br > {{ i18n "warnExternalWebsite" "snapcraft.io" }}
2021-10-03 13:50:37 +00:00
{{ else if hasPrefix .Title "Launchpad" }}
{{ $disclaimers.Set "launchpad" true }}
2022-04-11 02:00:36 +00:00
< a href = "https://launchpad.net/~ad5001/+archive/ubuntu/{{ .Index }}/" >
2021-10-03 13:50:37 +00:00
{{ partial "badge.html" (dict "Icon" "launchpad" "Lang" $lang "Alt" "storeLaunchpad" ) }}
< / a >
2022-01-20 01:14:00 +00:00
< br > < br > {{ i18n "warnExternalWebsite" "launchpad.net" }}<!-- <br><br>
{{ i18n "withTheCommandLine" }}< br >
< p class = "text-left code" > $ sudo add-apt-repository ppa:ad5001/logarithmplotter< br > $ sudo apt update< / p > -->
2021-08-02 00:40:30 +00:00
{{ else if hasPrefix .Title "Firefox" }}
2021-08-03 12:59:16 +00:00
{{ $disclaimers.Set "firefox" true }}
2022-04-11 02:00:36 +00:00
< a href = "https://addons.mozilla.org/en-US/firefox/addon/{{ .Index }}/" >
2021-08-03 12:59:16 +00:00
{{ partial "badge.html" (dict "Icon" "amo" "Lang" $lang "Alt" "storeFirefoxAddons" ) }}
2022-01-12 10:52:18 +00:00
< br >
2022-01-20 01:14:00 +00:00
< img loading = 'lazy' src = "https://img.shields.io/amo/v/{{ .Index }}?logo=Firefox" alt = "{{ $AppData.version }} on addons.mozilla.org" / >
< img loading = 'lazy' src = "https://badgen.net/amo/stars/{{ .Index }}" alt = "Rating on addons.mozilla.org" / >
< img loading = 'lazy' src = "https://badgen.net/amo/users/{{ .Index }}" alt = "User count on addons.mozilla.org" / >
2022-01-19 18:07:36 +00:00
< / a >
2021-08-03 12:59:16 +00:00
< br > < br > {{ i18n "warnExternalWebsite" "addons.mozilla.org" }}
2021-08-02 00:40:30 +00:00
{{ else }}
2021-08-11 13:07:15 +00:00
{{ i18n "file" }} {{ replace .Name "< version > " $AppData.version }}< br > < br >
2021-08-02 21:53:47 +00:00
< div class = "primary center fit-content" role = "button" >
2021-08-11 13:07:15 +00:00
{{ $filename := replace .File "< version > " $AppData.version }}
2023-03-30 16:53:21 +00:00
< a href = "https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/{{ $appindex }}/v{{ $AppData.version }}/{{ $filename }}" download rel = "noreferrer" >
2021-08-11 23:40:40 +00:00
< i class = "icon-download icon-as-text" > < / i > {{ i18n "download" }}
2021-08-02 21:53:47 +00:00
< / a >
< / div >
2021-08-02 00:40:30 +00:00
{{ end }}
2021-06-14 15:16:22 +00:00
< / div >
2021-07-25 20:33:01 +00:00
< hr >
2021-06-14 15:16:22 +00:00
{{ end }}
< / div >
< / div >
{{ end }}
< / div >
< p > {{ .Params.Download.Footnote | markdownify }} < / p >
2021-08-03 12:59:16 +00:00
<!-- Disclaimers -->
{{ if ($disclaimers.Get "snapcraft") }}
< p > {{ i18n "disclaimerSnapcraft" | markdownify }}< / p >
{{ end }}
{{ if ($disclaimers.Get "firefox") }}
< p > {{ i18n "disclaimerFirefox" | markdownify }}< / p >
{{ end }}
2021-06-14 15:16:22 +00:00
< / section >
{{ end }}
2021-06-13 17:49:30 +00:00
< / div >
{{- partial "footer.html" . -}}
2022-01-21 15:27:27 +00:00
< script type = "application/ld+json" >
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "{{ .Title }}",
"description": "{{ .Page.Description }}.",
"applicationCategory": "{{ $AppData.category }}",
"image": "{{ .Params.HeaderImage }}",
2022-01-21 15:29:23 +00:00
"operatingSystem": "{{ delimit $AppData.platforms ", " }}",
2022-01-21 15:27:27 +00:00
"offers": {
"price": 0.00,
"priceCurrency": "EUR"
},
"author": {
"@type": "Person",
"name": "Ad5001",
2022-01-21 15:31:16 +00:00
"url": "https://ad5001.eu"
2022-01-21 15:27:27 +00:00
},
"softwareVersion": "{{ $AppData.version }}",
"license": "{{ $AppData.spdx }}"
}
< / script >
2021-06-13 17:49:30 +00:00
< / body >
< / html >