diff --git a/config.toml b/config.toml index 043ae25..bef2fec 100755 --- a/config.toml +++ b/config.toml @@ -85,7 +85,7 @@ keepWhitespace = false [caches] [caches.getjson] dir = ":cacheDir/:project" - maxAge = "10s" + maxAge = "300s" [outputFormats] [outputFormats.API] diff --git a/layouts/shortcodes/latest-download.html b/layouts/shortcodes/latest-download.html index 828f882..dfac19d 100755 --- a/layouts/shortcodes/latest-download.html +++ b/layouts/shortcodes/latest-download.html @@ -1,46 +1,46 @@ {{$type := .Get 0}} {{ $url := "https://api.github.com/repos/nroduit/Weasis/releases/latest" }} {{ $jfile := getJSON $url }} -
System | -Architecture | -Package | -Size | -Weasis installer | -Comments | -||||
---|---|---|---|---|---|---|---|---|---|
{{ $system }} | -{{ $arch }} | -{{ upper ( substr $package 1 ) }} | -{{ printf "%.1f MB" (div $val.size 1000000) }} | -- - {{ $val.name }} - - | -{{ cond (eq $package ".msi") "Requires Windows 7 or higher"
- (cond (eq $package ".pkg") (cond (eq $arch "arm 64-bit") "Requires macOS 11 or higher (Apple Silicon)" "Requires macOS 10.13 or higher" )
- (cond (eq $arch "arm 32-bit") "Requires GLIBC_2.17. Only tested with Raspberry Pi 4"
- (cond (eq $arch "arm 64-bit") "Requires GLIBC_2.27" (cond (eq $package ".rpm") "Requires GLIBC_2.17, libstdc++.so.6 and libgcc" "Requires GLIBC_2.17" ))))
- }}
- . Checksum sha256 - |
-
System | +Arch. | +Pack. | +Size | +Weasis installer | +Comments | +
---|---|---|---|---|---|
{{ $system }} | +{{ $arch }} | +{{ upper ( substr $package 1 ) }} | +{{ printf "%.1f MB" (div $val.size 1000000) }} | ++ + {{ $val.name }} + sha256 + | +{{ cond (eq $package ".msi") "Requires Windows 7 or higher" + (cond (eq $package ".pkg") (cond (eq $arch "arm-64") "Requires macOS 11 or higher (Apple Silicon)" "Requires macOS 10.13 or higher" ) + (cond (eq $arch "arm-32") "Requires GLIBC_2.17. Only tested with Raspberry Pi 4" + (cond (eq $arch "arm-64") "Requires GLIBC_2.27" (cond (eq $package ".rpm") "Requires GLIBC_2.17, libstdc++.so.6 and libgcc" "Requires GLIBC_2.17" )))) + }} + | +
System | -Architecture | -Package | +System | +Arch. | +Pack. | Size | -Weasis installer | +Weasis installer | Comments |
---|---|---|---|---|---|---|---|---|---|
{{ $system }} | +{{ $system }} | {{ $arch }} | {{ upper ( substr $package 1 ) }} | -{{ printf "%.1f MB" (div $val.size 1000000) }} | +{{ printf "%.1f MB" (div $val.size 1000000) }} | - - {{ $val.name }} - + + {{ $val.name }} + {{ $date := time "2024-05-01" }} + {{ if ge (time $elem_val.published_at) $date }} + sha256 + {{ end }} | {{ cond ( ge $elem_index 1) "" (cond (eq $package ".msi") "Requires Windows 7 or higher"
- (cond (eq $package ".pkg") (cond (eq $arch "arm 64-bit") "Requires macOS 11 or higher (Apple Silicon)" "Requires macOS 10.13 or higher" )
- (cond (eq $arch "arm 32-bit") "Requires GLIBC_2.17. Only tested with Raspberry Pi 4"
- (cond (eq $arch "arm 64-bit") "Requires GLIBC_2.27" (cond (eq $package ".rpm") "Requires GLIBC_2.17, libstdc++.so.6 and libgcc" "Requires GLIBC_2.17" )))))
+ (cond (eq $package ".pkg") (cond (eq $arch "arm-64") "Requires macOS 11 or higher (Apple Silicon)" "Requires macOS 10.13 or higher" )
+ (cond (eq $arch "arm-32") "Requires GLIBC_2.17. Only tested with Raspberry Pi 4"
+ (cond (eq $arch "arm-64") "Requires GLIBC_2.27" (cond (eq $package ".rpm") "Requires GLIBC_2.17, libstdc++.so.6 and libgcc" "Requires GLIBC_2.17" )))))
}}
- {{ if ( eq $elem_index 0) }}
- . Checksum sha256 - {{ end }} |