' + firstline + '
') for line in notefi: if line == '\n': continue elif line[0] == '<': pagefi.write(line) elif line[0] == '\\': pagefi.write(line[1:]) else: pagefi.write('' + line + '
') pagefi.write('#!/usr/bin/python3 import os import sys import datetime import rlgall import pytz navbar = '
' rsshead = """The Gallery's blog, with news and thoughts on roguelike games. A comment system is planned but does not exist yet. There is an RSS feed for the benefit of robots.
""" phead = rlgall.phead.replace("/scoring/scores.css", "notes.css") ptitle = '' + note[3] + '
') indexfile.write('\n'.format(note[0])) indexfile.write(rlgall.pend) indexfile.close() def mkrssfile(postdata, notedir): rssfile = open(notedir + "/feed.rss", "w") rssfile.write(rsshead) nowstr = fmtdate(None) rssfile.write("' + firstline + '
') for line in notefi: if line == '\n': continue elif line[0] == '<': pagefi.write(line) elif line[0] == '\\': pagefi.write(line[1:]) else: pagefi.write('' + line + '
') pagefi.write('