Rename to blog.rss

Web server will set MIME type correctly if file ends with .rss
This commit is contained in:
Midgard 2020-06-16 15:19:03 +02:00
parent ec945e5679
commit 8631f7f7db
Signed by untrusted user who does not match committer: midgard
GPG Key ID: 511C112F1331BBB4
3 changed files with 6 additions and 6 deletions

View File

@ -7,13 +7,13 @@ PYTHON ::= venv/bin/python
.PHONY: all clean public
all: $(BUILD_DIR)/index.html $(BUILD_DIR)/rss.xml $(BUILD_DIR)/syntax.css public $(BLOG_HTML)
all: $(BUILD_DIR)/index.html $(BUILD_DIR)/blog.rss $(BUILD_DIR)/syntax.css public $(BLOG_HTML)
$(BUILD_DIR)/index.html: templates/index.html $(BLOG) page.py
@mkdir -p "$(@D)"
$(PYTHON) page.py --index "$<" $(BLOG) > "$@"
$(BUILD_DIR)/rss.xml: $(BLOG) rss.py page.py
$(BUILD_DIR)/blog.rss: $(BLOG) rss.py page.py
@mkdir -p "$(@D)"
$(PYTHON) rss.py $(BLOG) > "$@"

View File

@ -6,7 +6,7 @@
<title>{title} midgard</title>
<link rel="stylesheet" href="../main.css"/>
<link rel="stylesheet" href="../syntax.css"/>
<link rel="alternate" type="application/rss+xml" href="../rss.xml"/>
<link rel="alternate" type="application/rss+xml" href="../blog.rss"/>
</head>
<body class="blog">
<header>
@ -30,7 +30,7 @@
</main>
<aside id="social">
<a id="rss-link" href="../rss.xml">Follow with RSS</a>
<a id="rss-link" href="../blog.rss">Follow with RSS</a>
<a id="irc-link" href="../irc">Contact on IRC</a>
</aside>

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width"/>
<title>midgard</title>
<link rel="stylesheet" href="main.css"/>
<link rel="alternate" type="application/rss+xml" href="rss.xml"/>
<link rel="alternate" type="application/rss+xml" href="blog.rss"/>
</head>
<body>
<header>
@ -51,7 +51,7 @@
</main>
<aside id="social">
<a id="rss-link" href="rss.xml">Follow with RSS</a>
<a id="rss-link" href="blog.rss">Follow with RSS</a>
<a id="irc-link" href="irc">Contact on IRC</a>
</aside>