Skip to content

Commit 89fe79d

Browse files
author
SPRINX0\prochazka
committed
refactor
1 parent 6a7cbdb commit 89fe79d

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

data/download-os.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Windows:
2+
description: "Compatible with Windows 10, 11 and Server editions"
3+
4+
Linux:
5+
description: "Supports major Linux distributions"
6+
7+
MacOS:
8+
description: "For macOS 10.15 Catalina and later"
9+
10+
Web:
11+
description: "Platform-independent solutions"
12+
13+
"Source code":
14+
description: "Build from source"

layouts/shortcodes/download.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ <h2>Download DbGate Community</h2>
2828
</p>
2929

3030
{{ $items := index .Site.Data.download }}
31+
{{ $osDescriptions := index .Site.Data "download-os" }}
3132

3233
<div id="download-sections-container">
3334
{{ range $items }}
@@ -41,7 +42,7 @@ <h2>Download DbGate Community</h2>
4142
<h3 class="os-name">
4243
{{.text}}
4344
</h3>
44-
<p class="os-description">{{ if eq .text "Windows" }}Compatible with Windows 10, 11 and Server editions{{ else if eq .text "Linux" }}Supports major Linux distributions{{ else if eq .text "MacOS" }}For macOS 10.15 Catalina and later{{ else if eq .text "Web" }}Platform-independent solutions{{ else if eq .text "Source code" }}Build from source{{ end }}</p>
45+
<p class="os-description">{{ (index $osDescriptions .text).description }}</p>
4546
</div>
4647
</div>
4748
<div class="download-options">

0 commit comments

Comments
 (0)