new: add config hub

This commit is contained in:
ngn
2024-05-05 21:22:45 +03:00
parent cb150c9280
commit 12e3b0c2d4
11 changed files with 343 additions and 18 deletions

55
templates/configs.html Normal file
View File

@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>MatterLinux | Configs</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=1200">
<link href="/global.css" rel="stylesheet">
<link href="/configs.css" rel="stylesheet">
<link href="/md.css" rel="stylesheet">
</head>
<body>
{{template "parts/bar" .}}
<main>
<div class="md">
<h1>Config Hub</h1>
{{.content.HTML}}
</div>
<div class="list">
{{range .list}}
<div class="config">
<img src="{{.Image}}">
<div class="details">
<h1>{{.Name}}</h1>
<table>
<tr>
<th>URL</th>
<td><a href="{{.Redirect}}">{{.Name}}</a></td>
</tr>
{{ if .Desc }}
<tr>
<th>Description</th>
<td>{{.Desc}}</td>
</tr>
{{ end }}
<tr>
<th>Author</th>
<td>{{.Author}}</td>
</tr>
<tr>
<th>Keywords</th>
<td>{{.Keywords}}</td>
</tr>
</table>
<p>
Run the following to install this
confiugraiton:
</p>
<pre>$ mc-pull {{.Name}}</pre>
</div>
</div>
{{end}}
</div>
</main>
</body>
</html>

View File

@ -17,27 +17,27 @@
<div class="list">
<div class="entry">
<h1>Version</h1>
<h1>{{.readme.ID}}</h1>
<h1>{{.content.ID}}</h1>
</div>
<div class="entry">
<h1>Release Archive</h1>
<div class="downloads">
<a href="https://rel.matterlinux.xyz/{{.readme.Title}}/matterlinux_{{.readme.ID}}.tar.gz">Download</a>
<a href="https://rel.matterlinux.xyz/{{.contentTitle}}/matterlinux_{{.content.ID}}.tar.gz">Download</a>
<p>|</p>
<a href="https://rel.matterlinux.xyz/{{.readme.Title}}/matterlinux_{{.readme.ID}}.tar.gz.sig">Signature</a>
<a href="https://rel.matterlinux.xyz/{{.contentTitle}}/matterlinux_{{.content.ID}}.tar.gz.sig">Signature</a>
</div>
</div>
<div class="entry">
<h1>Release ISO</h1>
<div class="downloads">
<a href="https://rel.matterlinux.xyz/{{.readme.Title}}/matterlinux_{{.readme.ID}}.iso">Download</a>
<a href="https://rel.matterlinux.xyz/{{.contentTitle}}/matterlinux_{{.content.ID}}.iso">Download</a>
<p>|</p>
<a href="https://rel.matterlinux.xyz/{{.readme.Title}}/matterlinux_{{.readme.ID}}.iso.sig">Signature</a>
<a href="https://rel.matterlinux.xyz/{{.contentTitle}}/matterlinux_{{.content.ID}}.iso.sig">Signature</a>
</div>
</div>
</div>
<div class="readme md">
{{.readme.HTML}}
<div class="content md">
{{.content.HTML}}
</div>
</main>
</body>

View File

@ -4,7 +4,8 @@
<title>MatterLinux | Error</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=1200">
<link href="/style.css" rel="stylesheet">
<link href="/global.css" rel="stylesheet">
<link href="/error.css" rel="stylesheet">
</head>
<body>
<div class="error">

View File

@ -6,6 +6,7 @@
<a href="/wiki">Wiki</a>
<a href="https://git.matterlinux.xyz/Matter">Source</a>
<a href="https://tracker.matterlinux.xyz">Packages</a>
<a href="/hub">Configs</a>
<a href="https://security.matterlinux.xyz">Security</a>
<a href="/download">Download</a>
</div>