From: Drew Fisher Date: Sun, 2 Oct 2022 03:29:30 +0000 (-0700) Subject: Remove templates; they are no longer used X-Git-Url: http://git.zarvox.org/shortlog/static/widgets.js?a=commitdiff_plain;h=424ab88b351f3d58cf3ca29c61339f5aa70b9eb3;p=shortlog.git Remove templates; they are no longer used --- diff --git a/shortlog.py b/shortlog.py index 0a41f3f..833fad3 100755 --- a/shortlog.py +++ b/shortlog.py @@ -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 index 125fd27..0000000 --- a/templates/day.html +++ /dev/null @@ -1,45 +0,0 @@ -$def with (date, entry, comments) - - - - -Shortlog - a log of everyday things - - - - -

Shortlog - a log of everyday things

-

Home

-
-

$date

- $:entry -
-
-$if len(comments) > 0: -

Comments:

-$for c in comments: -
-

avatar from Gravatar - $if c[2]: -

$c[0] | $c[4]

- $else: -

$c[0] | $c[4]

- $for paragraph in c[3]: - $:paragraph -
-
-
-
-

Write a comment:

-
-

Name

-

Email (required, but won't be posted)

-

Website (optional)

-

Antispam: enter a four digit number

-

-

Don't email me updates to comments

- -
-
- - diff --git a/templates/feed.xml b/templates/feed.xml deleted file mode 100644 index 86c7721..0000000 --- a/templates/feed.xml +++ /dev/null @@ -1,22 +0,0 @@ -$def with (timestamp, entries) - - - Shortlog - A log of everyday things - - - http://zarvox.org/shortlog/ - $timestamp - - Drew Fisher - zarvox@zarvox.org - -$for entry in entries: - - $entry["date"] - - http://zarvox.org/shortlog/$entry['date'] - $entry["timestamp"] - $entry["content"] - - diff --git a/templates/multiday.html b/templates/multiday.html deleted file mode 100644 index 5d27a4a..0000000 --- a/templates/multiday.html +++ /dev/null @@ -1,25 +0,0 @@ -$def with (entries, notes="") -$# entries is a list of tuples as follows: -$# (date of entry, -$# entry, -$# comment count) - - - - -Shortlog - a log of everyday things - - - - -

Shortlog - a log of everyday things

-

View the past: Week Month Year

-

Atom Feed

-$notes -$for i in xrange(len(entries)): -
-

$entries[i][0] | $entries[i][2] comments

- $:entries[i][1] -
- - diff --git a/templates/noentry.html b/templates/noentry.html deleted file mode 100644 index 1402f10..0000000 --- a/templates/noentry.html +++ /dev/null @@ -1,13 +0,0 @@ -$def with (date) - - - - -Shortlog - a log of everyday things - - -

Shortlog - a log of everyday things

-

Home

-

There's no entry for $date. Perhaps you reached this page by mistake?

- -