Compare commits

...

3 Commits

@ -21,3 +21,6 @@ MAIL = "dummy@mail.com"
# Directory to store entries in # Directory to store entries in
ENTRY_DIR = "templates/entry" ENTRY_DIR = "templates/entry"
# Set the timezone of your blog
TIMEZONE = "+0000"

@ -15,6 +15,7 @@ WEBSITE = config.WEBSITE
ENTRY_DIR = config.ENTRY_DIR ENTRY_DIR = config.ENTRY_DIR
LANGUAGE = config.LANGUAGE LANGUAGE = config.LANGUAGE
LOCAL = "de_DE.UTF-8" if LANGUAGE == "de-de" else "en_US.UTF-8" LOCAL = "de_DE.UTF-8" if LANGUAGE == "de-de" else "en_US.UTF-8"
TIMEZONE = config.TIMEZONE
locale.setlocale(locale.LC_TIME, LOCAL) locale.setlocale(locale.LC_TIME, LOCAL)
@ -184,7 +185,6 @@ def get_rss_string():
Returns: Returns:
string: rss-string of everything that is in the ENTRY_DIR. string: rss-string of everything that is in the ENTRY_DIR.
""" """
locale.setlocale(locale.LC_TIME, "en_US.UTF-8")
path_ex = ENTRY_DIR path_ex = ENTRY_DIR
content_string = "" content_string = ""
if path.exists(path_ex): if path.exists(path_ex):
@ -202,9 +202,11 @@ def get_rss_string():
content_string += "<title>" + title + "</title>\n" content_string += "<title>" + title + "</title>\n"
content_string += "<guid>" + WEBSITE + \ content_string += "<guid>" + WEBSITE + \
"/index.html#" + filename + "</guid>\n" "/index.html#" + filename + "</guid>\n"
locale.setlocale(locale.LC_TIME, "en_US.UTF-8")
content_string += "<pubDate>" + \ content_string += "<pubDate>" + \
datetime.fromtimestamp(os.path.getmtime(file)).strftime( datetime.fromtimestamp(os.path.getmtime(file)).strftime(
"%a, %d %b %Y %H:%M:%S") + " +0100</pubDate>\n" "%a, %d %b %Y %H:%M:%S") + " " + TIMEZONE + "</pubDate>\n"
locale.setlocale(locale.LC_TIME, LOCAL)
content_string += "<description>\n<![CDATA[<html>\n<head>\n</head>\n<body>\n" content_string += "<description>\n<![CDATA[<html>\n<head>\n</head>\n<body>\n"
html_string = "" html_string = ""
for line in text: for line in text:
@ -212,7 +214,6 @@ def get_rss_string():
content_string += absolutize_html(html_string) content_string += absolutize_html(html_string)
content_string += "\n</body></html>\n]]>\n</description>\n" content_string += "\n</body></html>\n]]>\n</description>\n"
content_string += "</item>\n" content_string += "</item>\n"
locale.setlocale(locale.LC_TIME, LOCAL)
return content_string return content_string

@ -31,6 +31,7 @@ html {
footer { footer {
height: 100px; height: 100px;
padding-top: 20px; padding-top: 20px;
width: 100%;
} }
footer .center { footer .center {
@ -38,11 +39,12 @@ footer .center {
} }
.container { .container {
min-height: 100%;
padding-bottom: 50px; padding-bottom: 50px;
padding-left: 10%; padding-left: 10%;
padding-right: 10%; padding-right: 10%;
padding-top: 5%; padding-top: 5vh;
/* position: relative; */
min-height: calc(100vh - 50px - 5vh - 100px - 100px);
} }
.container .flash { .container .flash {
@ -163,11 +165,10 @@ form {
} }
.standalone { .standalone {
max-height: 100%; min-height: 100vh;
} }
.entry { .entry {
max-height: 100%;
/* border-radius: 0 10px 30px 0; */ /* border-radius: 0 10px 30px 0; */
margin-bottom: 20px; margin-bottom: 20px;
padding-left: 20px; padding-left: 20px;
@ -252,7 +253,7 @@ form.search input[type=text] {
form.search button[type=submit] { form.search button[type=submit] {
float: left; float: left;
width: 5%; width: 5%;
padding: 12px; padding: 10px;
font-size: 17px; font-size: 17px;
border: 1px solid grey; border: 1px solid grey;
border-left: none; /* Prevent double borders */ border-left: none; /* Prevent double borders */

@ -35,9 +35,9 @@
<!-- Content --> <!-- Content -->
<footer> <footer>
<div class="center"> <div class="center">
<a href="{{ url_for('imprint') }}"> <a href="{{ url_for('imprint') }}">{% if language=="de-de" %}Impressum und Kontakt{% else %}Imprint and Contact{%
{% if language=="de-de" %}Impressum und Kontakt{% else %}Imprint and Contact{% endif %} endif %}</a>.<br>
</a><br> <a href="{{ url_for('feed') }}">{% if language=="de-de" %}RSS-Feed{% else %}RSS feed{% endif %}</a>.<br>
Made with <a href="https://github.com/tiyn/beaker-blog">Beaker Blog</a>. Made with <a href="https://github.com/tiyn/beaker-blog">Beaker Blog</a>.
</div> </div>
</footer> </footer>

Loading…
Cancel
Save