summaryrefslogtreecommitdiff
path: root/src/pyssg/template.py
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2021-05-17 15:56:52 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2021-05-17 15:56:52 -0600
commita57078e898219fdf09004413012d424ac96eb524 (patch)
tree355fd330350405f3469c686147f7a18f0528d35e /src/pyssg/template.py
parent30c699f96429598b9ff88103971ccf689e163799 (diff)
fix sorting of pages and update default templatesv0.2.2
Diffstat (limited to 'src/pyssg/template.py')
-rw-r--r--src/pyssg/template.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pyssg/template.py b/src/pyssg/template.py
index cd80d28..b3ce48d 100644
--- a/src/pyssg/template.py
+++ b/src/pyssg/template.py
@@ -62,7 +62,9 @@ class Template(HF):
os.mkdir('article')
os.chdir('article')
self.__write_template('header.html',
- ['<h1>$$TITLE</h1>'])
+ ['<h1>$$TITLE</h1>\n',
+ '<p>$$AUTHOR</p>\n',
+ '<p>Created: $$CTIME, modified: $$MTIME</p>\n'])
self.__write_template('footer.html',
[''])
@@ -78,9 +80,9 @@ class Template(HF):
['<h2>Articles</h2>\n',
'<ul>\n'])
self.__write_template('list_entry.html',
- ['<li><a href="$$URL">$$DATE - $$TITLE</a></li>\n'])
+ ['<li>$$DATE - <a href="$$URL">$$TITLE</a></li>\n'])
self.__write_template('list_separator.html',
- [''])
+ ['<h3>$$SEP</h3>\n'])
self.__write_template('list_footer.html',
['</ul>\n'])
self.__write_template('footer.html',