<link rel="stylesheet" type="text/css" href="{{ static_url("main.css") }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- {% if rss_url %}
- <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ rss_url }}" />
- {% end %}
+ {% block head %}{% end block %}
</head>
<body id="page-top" class="{% if request.host in ("www.ipfire.org", "dev.ipfire.org") and request.path in ("/", "/donate") %}background{% end %}">
{% extends "../base.html" %}
+{% block head %}
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="https://blog.ipfire.org/feed.xml" />
+{% end block %}
+
{% block subtitle %}{{ _("Blog") }}{% end block %}
{% block menu %}
{% extends "base.html" %}
+{% block head %}
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="https://blog.ipfire.org/feed.xml" />
+{% end block %}
+
{% block title %}{{ _("Welcome to IPFire") }}{% end block %}
{% block container %}
class IndexHandler(BaseHandler):
- rss_url = "/news.rss"
-
"""
This handler displays the welcome page.
"""
from .. import util
class BaseHandler(tornado.web.RequestHandler):
- rss_url = None
-
def get_account(self, uid):
# Find the name of the author
return self.accounts.find(uid)
"format_size" : util.format_size,
"format_time" : util.format_time,
"hostname" : self.hostname,
- "rss_url" : self.rss_url,
"year" : today.year,
}
ret.update(self.ssl_params)