Add initial tag system

This commit is contained in:
Stefan Ritter 2012-01-20 22:59:11 +01:00
parent 944e824467
commit bdbc414fea
2 changed files with 11 additions and 1 deletions

View File

@ -574,7 +574,17 @@ else:
else:
print(ind*4 + "<div class=\"entry_title\">%s</div>" % title)
print(ind*4 + "<div class=\"entry_date\">%s</div>" % date)
# Read tags
tags = content.readline().strip()
if re.match(line_start_plus, tags):
tags = tags.replace("+", "")
print(ind*4 + "<div class=\"tags\"><b>Tags:</b> %s</div>" % tags)
else:
content.seek(0)
print(ind*4 + "<div class=\"entry_content\">")
for line in content:
if no_break.match(line):
print(ind*5 + line.strip())

View File

@ -122,7 +122,7 @@ a {
color: black;
}
.entry_date, .comment_date {
.entry_date, .comment_date, .tags {
font-size: 0.8em;
color: #666;
}