Mercurial > hg > rlgallery-misc
comparison py/rlgnotes @ 91:d417016bbf73
Small website changes.
author | John "Elwin" Edwards |
---|---|
date | Mon, 27 Jan 2020 18:11:53 -0500 |
parents | 5b4ff5680037 |
children |
comparison
equal
deleted
inserted
replaced
90:44cf8c7c2c7a | 91:d417016bbf73 |
---|---|
4 import sys | 4 import sys |
5 import datetime | 5 import datetime |
6 import rlgall | 6 import rlgall |
7 import pytz | 7 import pytz |
8 | 8 |
9 navbar = '<div class="nav"><a href="/">rlgallery.org</a> -> \ | 9 navbar = '<div class="nav"><a href="/">RLGallery</a> -> \ |
10 <a href="/notes/">Notes</a> -> {0}</div>' | 10 <a href="/notes/">Notes</a> -> {0}</div>' |
11 | 11 |
12 rsshead = """<?xml version="1.0" encoding="UTF-8"?> | 12 rsshead = """<?xml version="1.0" encoding="UTF-8"?> |
13 <rss version="2.0"> | 13 <rss version="2.0"> |
14 <channel> | 14 <channel> |
15 <title>Roguelike Gallery</title> | 15 <title>Roguelike Gallery</title> |
16 <description>News and notes from the Roguelike Gallery.</description> | 16 <description>News and notes from the Roguelike Gallery.</description> |
17 <link>http://rlgallery.org/notes/</link> | 17 <link>https://rlgallery.org/notes/</link> |
18 """ | 18 """ |
19 | 19 |
20 indexintro = """<p>The Gallery's blog, with news and thoughts on roguelike | 20 indexintro = """<p>The Gallery's blog, with news and thoughts on roguelike |
21 games. A comment system is planned but does not exist yet. There is an | 21 games. A comment system is planned but does not exist yet. There is an |
22 <a href="feed.rss">RSS feed</a> for the benefit of robots.</p> | 22 <a href="feed.rss">RSS feed</a> for the benefit of robots.</p> |
29 posthead = '<h3 class="posttitle">{0}</h2>\n' | 29 posthead = '<h3 class="posttitle">{0}</h2>\n' |
30 | 30 |
31 datediv = '<div class="datehead">{0}</div>\n' | 31 datediv = '<div class="datehead">{0}</div>\n' |
32 | 32 |
33 def noteurl(tag): | 33 def noteurl(tag): |
34 return "http://rlgallery.org/notes/" + tag + ".html" | 34 return "https://rlgallery.org/notes/" + tag + ".html" |
35 | 35 |
36 def itementry(tagname, value): | 36 def itementry(tagname, value): |
37 return " <{0}>{1}</{0}>\n".format(tagname, value) | 37 return " <{0}>{1}</{0}>\n".format(tagname, value) |
38 | 38 |
39 def fmtdate(dt): | 39 def fmtdate(dt): |