Skip to content

Commit

Permalink
Download section ordering tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Dec 13, 2023
1 parent af473ed commit 587db53
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions script/release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ func main() {
}

func osWeight(os string) int {
// In order of commonality among our users
switch os {
case "windows":
return 1
case "linux":
return 1
case "windows":
return 2
case "macos":
return 3
Expand Down
12 changes: 6 additions & 6 deletions themes/default/layouts/shortcodes/release.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
<h5>Syncthing <b>{{.version}}</b></h5>

<div style="column-count: 2" class="my-2">
<dl class="dl-item">
<dt>Source Code</dt>
<dd><a href="https://github.com/syncthing/syncthing/releases/download/v{{.}}/syncthing-source-v{{.}}.tar.gz">Source tar.gz</a>
&sdot; <a href="https://github.com/syncthing/syncthing/releases/download/v{{.}}/syncthing-source-v{{.}}.tar.gz.asc">GPG signature</a>
</dd>
</dl>
{{ range .oses }}
<dl class="dl-item">
<dt>{{.os}}</dt>
Expand All @@ -18,6 +12,12 @@ <h5>Syncthing <b>{{.version}}</b></h5>
{{ end }}</dd>
</dl>
{{ end }}
<dl class="dl-item">
<dt>Source Code</dt>
<dd><a href="https://github.com/syncthing/syncthing/releases/download/v{{.}}/syncthing-source-v{{.}}.tar.gz">Source tar.gz</a>
&sdot; <a href="https://github.com/syncthing/syncthing/releases/download/v{{.}}/syncthing-source-v{{.}}.tar.gz.asc">GPG signature</a>
</dd>
</dl>
</div>
{{ else }}
<p>Download the <a href="https://github.com/syncthing/syncthing/releases/latest">latest release</a> from GitHub.</p>
Expand Down

0 comments on commit 587db53

Please sign in to comment.