new: add feeds to news page
This commit is contained in:
@ -2,9 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | Configs</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/global.css" rel="stylesheet">
|
||||
{{template "parts/head" .}}
|
||||
<link href="/configs.css" rel="stylesheet">
|
||||
<link href="/md.css" rel="stylesheet">
|
||||
</head>
|
||||
|
@ -2,9 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | Download</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/global.css" rel="stylesheet">
|
||||
{{template "parts/head" .}}
|
||||
<link href="/download.css" rel="stylesheet">
|
||||
<link href="/md.css" rel="stylesheet">
|
||||
</head>
|
||||
@ -12,26 +10,20 @@
|
||||
{{template "parts/bar" .}}
|
||||
<main>
|
||||
<div class="md">
|
||||
<h1>Download MatterLinux</h1>
|
||||
<h1>Download MatterLinux {{.content.ID}}</h1>
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="entry">
|
||||
<h1>Version</h1>
|
||||
<h1>{{.content.ID}}</h1>
|
||||
</div>
|
||||
<div class="entry">
|
||||
<h1>Release Archive</h1>
|
||||
<h1>Archive</h1>
|
||||
<div class="downloads">
|
||||
<a href="https://rel.matterlinux.xyz/{{.content.Title}}/matterlinux_{{.content.ID}}.tar.gz">Download</a>
|
||||
<p>|</p>
|
||||
<a href="https://rel.matterlinux.xyz/{{.content.Title}}/matterlinux_{{.content.ID}}.tar.gz.sig">Signature</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="entry">
|
||||
<h1>Release ISO</h1>
|
||||
<h1>ISO</h1>
|
||||
<div class="downloads">
|
||||
<a href="https://rel.matterlinux.xyz/{{.content.Title}}/matterlinux_{{.content.ID}}.iso">Download</a>
|
||||
<p>|</p>
|
||||
<a href="https://rel.matterlinux.xyz/{{.content.Title}}/matterlinux_{{.content.ID}}.iso.sig">Signature</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2,13 +2,11 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | Error</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/global.css" rel="stylesheet">
|
||||
{{template "parts/head" .}}
|
||||
<link href="/error.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="error">
|
||||
<div class="error">
|
||||
<h1>{{.msg}}</h1>
|
||||
<a href="/">Go Back to Home</a>
|
||||
</div>
|
||||
|
@ -2,9 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/global.css" rel="stylesheet">
|
||||
{{template "parts/head" .}}
|
||||
<link href="/md.css" rel="stylesheet">
|
||||
<link href="/index.css" rel="stylesheet">
|
||||
</head>
|
||||
|
@ -2,14 +2,22 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | News</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/global.css" rel="stylesheet">
|
||||
{{template "parts/head" .}}
|
||||
<link href="/news.css" rel="stylesheet">
|
||||
<link rel="alternate" type="application/atom+xml" href="/news/feed.atom" title="Atom Feed">
|
||||
<link rel="alternate" type="application/rss+xml" href="/news/feed.rss" title="RSS Feed">
|
||||
</head>
|
||||
<body>
|
||||
{{template "parts/bar" .}}
|
||||
<main>
|
||||
<div class="feed-menu">
|
||||
<p>Feeds</p>
|
||||
<div class="feeds">
|
||||
<a href="/news/feed.atom">Atom</a>
|
||||
<a href="/news/feed.rss">RSS</a>
|
||||
<a href="/news/feed.json">JSON</a>
|
||||
</div>
|
||||
</div>
|
||||
{{range .news}}
|
||||
<a href="/news/{{.ID}}" class="small">
|
||||
<h1>{{.Date}}</h1>
|
||||
|
3
templates/parts/head.html
Normal file
3
templates/parts/head.html
Normal file
@ -0,0 +1,3 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/global.css" rel="stylesheet">
|
@ -2,9 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | {{.title}}</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/global.css" rel="stylesheet">
|
||||
{{template "parts/head" .}}
|
||||
<link href="/post.css" rel="stylesheet">
|
||||
<link href="/md.css" rel="stylesheet">
|
||||
</head>
|
||||
@ -14,7 +12,10 @@
|
||||
<div class="md">
|
||||
<h1>{{.post.Title}}</h1>
|
||||
</div>
|
||||
<p class="subtext">{{.post.Date}} | by {{.post.Author}}</p>
|
||||
<div class="subtext">
|
||||
<p class="date">{{.post.Date}}</p>
|
||||
<p class="author">by {{.post.Author}}</p>
|
||||
</div>
|
||||
<div class="md">
|
||||
{{.post.HTML}}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user