new: add config hub
This commit is contained in:
55
templates/configs.html
Normal file
55
templates/configs.html
Normal 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>
|
Reference in New Issue
Block a user