Rename to blog.rss
Web server will set MIME type correctly if file ends with .rss
This commit is contained in:
parent
ec945e5679
commit
8631f7f7db
3 changed files with 6 additions and 6 deletions
4
makefile
4
makefile
|
@ -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) > "$@"
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue