Skip to content

Commit 6619da9

Browse files
vdyedscho
authored andcommitted
Adapt the GUI Clients page to Hugo
This commit adapts the page to use Hugo constructs, and it also splits the JSON containing the list of GUI Clients into individual files inside `data/`. The files in `data/guis/` were written via: git show HEAD:resources/guis.yml | ruby -e ' # cannot use YAML.load because that would lose comments $filename = nil $content = "" def write return if $filename.nil? File.open($filename, "w") { |f| f.write("---\n#{$content}---\n") } unless $filename.nil? $filename = nil $content = "" end ARGF.each do |line| if line.start_with?("-") then write line[0] = " " end if line.start_with?(" ") then $filename = "data/guis/#{line[8..].chomp.gsub(/ *\(.*\)$/, "").gsub(/ /, "-").downcase}.yml" if line.start_with?(" name: ") $content += line[2..] .gsub(/^image_tag: /, "\\0images/") .gsub(/^url:/, "project_url:") .gsub(/([-:] )([^"]*[^"0-9][^"]*)\n$/, "\\1\"\\2\"\n") .gsub(/^-/, " -") end end write ' Signed-off-by: Victoria Dye <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 43cb0da commit 6619da9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+633
-527
lines changed

content/downloads/guis/_index.html

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
<%- @section = "downloads" %>
2-
<%- @subsection = "guis" %>
3-
<%- @page_title = "Git - GUI Clients" %>
4-
5-
<% content_for :sidebar do %>
6-
<%= render 'shared/book' %>
7-
<% end %>
1+
---
2+
section: "downloads"
3+
subsection: "guis"
4+
title: "Git - GUI Clients"
5+
url: /downloads/guis.html
6+
aliases:
7+
- /downloads/guis/index.html
8+
---
89

910
<div id="main">
1011
<h1>GUI Clients</h1>
@@ -16,12 +17,12 @@ <h1>GUI Clients</h1>
1617
</p>
1718

1819
<p>
19-
<%= link_to "All", '#', {:class => "subtle-button gui-os-filter selected", 'data-os' => ''} %>
20-
<%= link_to "Windows", '#', {:class => "subtle-button gui-os-filter", 'data-os' => 'windows'} %>
21-
<%= link_to "Mac", '#', {:class => "subtle-button gui-os-filter", 'data-os' => 'mac'} %>
22-
<%= link_to "Linux", '#', {:class => "subtle-button gui-os-filter", 'data-os' => 'linux'} %>
23-
<%= link_to "Android", '#', {:class => "subtle-button gui-os-filter", 'data-os' => 'android'} %>
24-
<%= link_to "iOS", '#', {:class => "subtle-button gui-os-filter", 'data-os' => 'ios'} %>
20+
<a href="#" class="subtle-button gui-os-filter selected" data-os="">All</a>
21+
<a href="#" class="subtle-button gui-os-filter" data-os="windows">Windows</a>
22+
<a href="#" class="subtle-button gui-os-filter" data-os="mac">Mac</a>
23+
<a href="#" class="subtle-button gui-os-filter" data-os="linux">Linux</a>
24+
<a href="#" class="subtle-button gui-os-filter" data-os="android">Android</a>
25+
<a href="#" class="subtle-button gui-os-filter" data-os="ios">iOS</a>
2526
<div id="os-filter-count">
2627
<strong>0</strong>
2728
<span class="os">Linux</span>
@@ -31,19 +32,7 @@ <h1>GUI Clients</h1>
3132

3233
<div class="two-column">
3334
<ul class="gui-thumbnails">
34-
<% guis_info.sort_by { |g| g["order"] }.each do |gui| %>
35-
<li class="<%= platforms_to_css_class(gui["platforms"]).join(' ') %>">
36-
<%= link_to(image_tag("#{gui['image_tag']}", {:width => '294', :height => '166'}), "#{gui['url']}") %>
37-
<h4>
38-
<%= link_to("#{gui['name']}", "#{gui['url']}") %>
39-
</h4>
40-
<p class="description">
41-
<strong>Platforms:</strong> <%= gui["platforms"].sort.join(", ") %></br>
42-
<strong>Price:</strong> <%= gui["price"] %></br>
43-
<strong>License:</strong> <%= gui["license"] %>
44-
</p>
45-
</li>
46-
<% end %>
35+
{{< guis >}}
4736
</ul>
4837
</div>
4938

data/guis/anchorpoint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: "Anchorpoint"
3+
project_url: "https://anchorpoint.app"
4+
image_tag: "images/guis/[email protected]"
5+
platforms:
6+
- "Windows"
7+
- "Mac"
8+
price: "Free / 20€"
9+
license: "Proprietary"
10+
trend_name: "anchorpoint"
11+
order: 22
12+
---

data/guis/aurees.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: "Aurees (no longer under active development)"
3+
project_url: "https://aurees.com/"
4+
image_tag: "images/guis/[email protected]"
5+
platforms:
6+
- "Windows"
7+
- "Mac"
8+
- "Linux"
9+
price: "Free"
10+
license: "Proprietary"
11+
order: 28
12+
---

data/guis/commandgit.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: "CommandGit"
3+
project_url: "https://CommandGit.com"
4+
image_tag: "images/guis/[email protected]"
5+
platforms:
6+
- "Windows"
7+
price: "$5.99/MO (Free 14-day trial)"
8+
license: "Proprietary"
9+
trend_name: "CommandGit"
10+
order: 49
11+
---

data/guis/cong.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: "Cong"
3+
project_url: "http://cong.tools/"
4+
image_tag: "images/guis/[email protected]"
5+
platforms:
6+
- "Windows"
7+
price: "Free"
8+
license: "Proprietary"
9+
trend_name: "Git Cong"
10+
order: 36
11+
---

data/guis/fork.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: "Fork"
3+
project_url: "https://git-fork.com/"
4+
image_tag: "images/guis/[email protected]"
5+
platforms:
6+
- "Windows"
7+
- "Mac"
8+
# No details on the evaluation limits or terms
9+
price: "$49.99 (Free evaluation)"
10+
license: "Proprietary"
11+
trend_name: "Fork Git client"
12+
order: 12
13+
---

data/guis/fugitive.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: "Fugitive"
3+
project_url: "https://github.com/tpope/vim-fugitive"
4+
image_tag: "images/guis/[email protected]"
5+
platforms:
6+
- "Windows"
7+
- "Mac"
8+
- "Linux"
9+
price: "Free"
10+
license: "Vim"
11+
trend_name: "Vim fugitive"
12+
order: 16
13+
---

data/guis/giggle.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: "giggle"
3+
project_url: "https://wiki.gnome.org/Apps/giggle/"
4+
image_tag: "images/guis/[email protected]"
5+
platforms:
6+
- "Linux"
7+
price: "Free"
8+
license: "GNU GPL"
9+
trend_name: "Git giggle"
10+
order: 27
11+
---

data/guis/git-cola.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: "git-cola"
3+
project_url: "https://git-cola.github.io/"
4+
image_tag: "images/guis/[email protected]"
5+
platforms:
6+
- "Windows"
7+
- "Mac"
8+
- "Linux"
9+
price: "Free"
10+
license: "GNU GPL"
11+
order: 25
12+
---

data/guis/git-extensions.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: "Git Extensions"
3+
project_url: "https://gitextensions.github.io/"
4+
image_tag: "images/guis/[email protected]"
5+
platforms:
6+
- "Windows"
7+
price: "Free"
8+
license: "GNU GPL"
9+
order: 4
10+
---

0 commit comments

Comments
 (0)