new: add feeds to news page

This commit is contained in:
ngn
2024-08-23 14:11:48 +03:00
parent 52af211541
commit 60bff6356c
15 changed files with 204 additions and 45 deletions

View File

@ -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>