]> git.zarvox.org Git - shortlog.git/commitdiff
Remove templates; they are no longer used
authorDrew Fisher <drew.m.fisher@gmail.com>
Sun, 2 Oct 2022 03:29:30 +0000 (20:29 -0700)
committerDrew Fisher <drew.m.fisher@gmail.com>
Sun, 2 Oct 2022 03:29:30 +0000 (20:29 -0700)
shortlog.py
templates/day.html [deleted file]
templates/feed.xml [deleted file]
templates/multiday.html [deleted file]
templates/noentry.html [deleted file]

index 0a41f3f8c030ca492e93f601c2425469e200cf64..833fad33844a607e179f24768f2fb008ccc6eb89 100755 (executable)
@@ -13,7 +13,6 @@ import markdoku
 
 entriesdir = os.path.join(pwd, "entries")
 commentsdir = os.path.join(pwd, "comments")
-templatesdir = os.path.join(pwd, "templates")
 staticsdir = os.path.join(pwd, "static")
 
 monthnames = {"01": "January",
diff --git a/templates/day.html b/templates/day.html
deleted file mode 100644 (file)
index 125fd27..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-$def with (date, entry, comments)
-<!DOCTYPE HTML> 
-<html> 
-<head> 
-<meta http-equiv="Content-Type" content="text/html;charset=utf-8" > 
-<title>Shortlog - a log of everyday things</title> 
-<link rel="stylesheet" type="text/css" href="/shortlog/static/style.css">
-<link rel="alternate" type="application/atom+xml" href="/shortlog/feed">
-</head> 
-<body> 
-<h1>Shortlog - a log of everyday things</h1> 
-<h3><a href="/shortlog/">Home</a></h3>
-<div>
-<h3><a href="/shortlog/$date">$date</a></h3>
-       $:entry
-</div>
-<div id="comments">
-$if len(comments) > 0:
-       <hr><h3>Comments:</h3>
-$for c in comments:
-       <div class="comment">
-       <p><span style="float: right;"><img src="$c[5]" alt="avatar from Gravatar"></span>
-       $if c[2]:
-               <p><a href="$c[2]">$c[0]</a> | $c[4]</p>
-       $else:
-               <p>$c[0] | $c[4]</p>
-       $for paragraph in c[3]:
-               $:paragraph
-       </div>
-       <hr>
-</div>
-<div id="writecomment">
-<h3>Write a comment:</h3>
-<form action="/shortlog/$date" method="post" id="commentform">
-       <p><input name="name" type="text" size="30" aria-required="true" />Name</p>
-       <p><input name="email" type="text" size="30" aria-required="true" />Email (required, but won't be posted)</p>
-       <p><input name="website" type="text" size="30" aria-required="false" />Website (optional)</p>
-       <p><input name="bottest" type="text" size="30" aria-required="true" />Antispam: enter a four digit number</p>
-       <p><textarea name="comment" cols="45" rows="8" aria-required="true"></textarea></p>
-       <p><input name="wantsreply" type="checkbox" value="No" />Don't email me updates to comments</p>
-       <input name="submit" type="submit" id="submit" value="Post Comment" />
-</form>
-</div>
-</body>
-</html>
diff --git a/templates/feed.xml b/templates/feed.xml
deleted file mode 100644 (file)
index 86c7721..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-$def with (timestamp, entries)
-<?xml version="1.0" encoding="utf-8"?>
-<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
-       <title>Shortlog</title>
-       <subtitle>A log of everyday things</subtitle>
-       <link href="http://zarvox.org/shortlog/feed" rel="self"></link>
-       <link href="http://zarvox.org/shortlog/" rel="alternate"></link>
-       <id>http://zarvox.org/shortlog/</id>
-       <updated>$timestamp</updated>
-       <author>
-               <name>Drew Fisher</name>
-               <email>zarvox@zarvox.org</email>
-       </author>
-$for entry in entries:
-       <entry>
-               <title>$entry["date"]</title>
-               <link href="http://zarvox.org/shortlog/$entry['date']" rel="alternate"></link>
-               <id>http://zarvox.org/shortlog/$entry['date']</id>
-               <updated>$entry["timestamp"]</updated>
-               <summary type="html">$entry["content"]</summary>
-       </entry>
-</feed>
diff --git a/templates/multiday.html b/templates/multiday.html
deleted file mode 100644 (file)
index 5d27a4a..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-$def with (entries, notes="")
-$# entries is a list of tuples as follows:
-$# (date of entry,
-$#  entry,
-$#  comment count)
-<!DOCTYPE HTML> 
-<html> 
-<head> 
-<meta http-equiv="Content-Type" content="text/html;charset=utf-8" > 
-<title>Shortlog - a log of everyday things</title> 
-<link rel="stylesheet" type="text/css" href="/shortlog/static/style.css">
-<link rel="alternate" type="application/atom+xml" href="/shortlog/feed">
-</head> 
-<body> 
-<h1>Shortlog - a log of everyday things</h1> 
-<h3>View the past: <a href="/shortlog/week">Week</a> <a href="/shortlog/month">Month</a> <a href="/shortlog/year">Year</a></h3>
-<h4><a href="/shortlog/feed">Atom Feed</a></h4>
-$notes
-$for i in xrange(len(entries)):
-       <div>
-       <h3><a href="/shortlog/$entries[i][0]">$entries[i][0]</a> | <a href="/shortlog/$entries[i][0]#comments">$entries[i][2] comments</a></h3>
-       $:entries[i][1]
-       </div>
-</body>
-</html>
diff --git a/templates/noentry.html b/templates/noentry.html
deleted file mode 100644 (file)
index 1402f10..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-$def with (date)
-<!DOCTYPE HTML> 
-<html> 
-<head> 
-<meta http-equiv="Content-Type" content="text/html;charset=utf-8" > 
-<title>Shortlog - a log of everyday things</title> 
-</head> 
-<body> 
-<h1>Shortlog - a log of everyday things</h1> 
-<h3><a href="/shortlog/">Home</a></h3>
-<p>There's no entry for $date.  Perhaps you reached this page by mistake?</p>
-</body>
-</html>