Rename feed by default to feed.xml

This helps with processing in browsers.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
Jacob Kiers 2022-11-29 23:08:12 +01:00
parent 0f65550169
commit 49a9670c4a
2 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@
<html> <html>
<head> <head>
<title>Newsletters</title> <title>Newsletters</title>
<link rel="alternate" type="application/atom+xml" title="ATOM feed" href="./feed.atom" /> <link rel="alternate" type="application/atom+xml" title="ATOM feed" href="./feed.xml" />
</head> </head>
<body> <body>
<h1>Newsletters 2 Web</h1> <h1>Newsletters 2 Web</h1>
<p>The real feed can be found at <a href="./feed.atom">feed.atom</a></p> <p>The real feed can be found at <a href="./feed.xml">feed.xml</a></p>
<p>Nothing to see here.</p> <p>Nothing to see here.</p>
<p>This is a public landing page for an instance of the <p>This is a public landing page for an instance of the
<a href="https://code.kiers.eu/newsletter-to-web/newsletter-to-web">Newsletters 2 Web</a> <a href="https://code.kiers.eu/newsletter-to-web/newsletter-to-web">Newsletters 2 Web</a>

View File

@ -32,7 +32,7 @@ pub(crate) enum Command {
/// Host name hosting the feed /// Host name hosting the feed
hostname: String, hostname: String,
/// Feed file /// Feed file
#[clap(value_parser, default_value = "output/feed.atom")] #[clap(value_parser, default_value = "output/feed.xml")]
filename: PathBuf, filename: PathBuf,
/// Create an HTML file for each message /// Create an HTML file for each message
#[clap(short, long, value_parser, default_value_t = false)] #[clap(short, long, value_parser, default_value_t = false)]