Skip to content

Commit 63c417e

Browse files
committed
tools: move hosting from homepage to Tools
Signed-off-by: Julia Evans <[email protected]>
1 parent 0f8c255 commit 63c417e

File tree

3 files changed

+34
-23
lines changed

3 files changed

+34
-23
lines changed

content/tools/hosting.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
section: "tools"
3+
subsection: "hosting"
4+
title: "Git - Hosting"
5+
url: /tools/hosting.html
6+
---
7+
8+
<div id="main">
9+
<h1>Git Hosting</h1>
10+
11+
{{< hosting >}}
12+
</div>

layouts/partials/site-root.html

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -71,26 +71,3 @@ <h3>Community</h3>
7171
</section>
7272
</div>
7373

74-
<section id="companies-projects">
75-
<h3 class="text-center">Products providing Git hosting</h3>
76-
<ul>
77-
{{ $m := slice
78-
(dict "name" "gitlab" "url" "https://gitlab.com")
79-
(dict "name" "github" "url" "https://github.com")
80-
(dict "name" "forgejo" "url" "https://forgejo.org")
81-
(dict "name" "codeberg" "url" "https://codeberg.org")
82-
(dict "name" "sourcehut" "url" "https://sourcehut.org")
83-
(dict "name" "gitea" "url" "https://gitea.com")
84-
(dict "name" "tangled" "url" "https://tangled.org")
85-
(dict "name" "radicle" "url" "https://radicle.xyz")
86-
(dict "name" "gerrit" "url" "https://www.gerritcodereview.com")
87-
(dict "name" "azure-repos" "url" "https://azure.microsoft.com/en-us/products/devops/repos/")
88-
}}
89-
{{ range shuffle $m }}
90-
<li><a href="{{ .url }}">{{ partial "company-svg" (printf "company-project-logos/%s" .name) }}</a></li>
91-
{{ end }}
92-
</ul>
93-
<script type="text/javascript">
94-
document.getElementById("companies-projects").style.setProperty("--seed", Math.floor(Math.random() * 1000));
95-
</script>
96-
</section>

layouts/shortcodes/hosting.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<section id="companies-projects">
2+
<ul>
3+
{{ $m := slice
4+
(dict "name" "gitlab" "url" "https://gitlab.com")
5+
(dict "name" "github" "url" "https://github.com")
6+
(dict "name" "forgejo" "url" "https://forgejo.org")
7+
(dict "name" "codeberg" "url" "https://codeberg.org")
8+
(dict "name" "sourcehut" "url" "https://sourcehut.org")
9+
(dict "name" "gitea" "url" "https://gitea.com")
10+
(dict "name" "tangled" "url" "https://tangled.org")
11+
(dict "name" "radicle" "url" "https://radicle.xyz")
12+
(dict "name" "gerrit" "url" "https://www.gerritcodereview.com")
13+
(dict "name" "azure-repos" "url" "https://azure.microsoft.com/en-us/products/devops/repos/")
14+
}}
15+
{{ range shuffle $m }}
16+
<li><a href="{{ .url }}">{{ partial "company-svg" (printf "company-project-logos/%s" .name) }}</a></li>
17+
{{ end }}
18+
</ul>
19+
<script type="text/javascript">
20+
document.getElementById("companies-projects").style.setProperty("--seed", Math.floor(Math.random() * 1000));
21+
</script>
22+
</section>

0 commit comments

Comments
 (0)