Browse Source

Updated colors, use non-breaking space in date

master
Macoy Madson 2 years ago
parent
commit
e5a8b03300
  1. 3
      SimpleBlogServer.py
  2. 14
      webResources/styles.css

3
SimpleBlogServer.py

@ -51,10 +51,11 @@ class HomeHandler(tornado.web.RequestHandler):
for tag in tags:
tagsHtml += '<label>{}</label>'.format(tag)
# Use non-breaking spaces on dates for better wrapping
contentListHtml += ('<div class="blogPostLinkContainer"><a class="blogPostLink" href="blog/{contentPath}">{title}</a><time class="publishedDate">— {published}</time>{tagsHtml}</div>\n'
.format(contentPath = metadata.contentPath,
title = metadata.properties["TITLE"],
published = metadata.properties["PUBLISHED"].strftime("%B %d, %Y"),
published = metadata.properties["PUBLISHED"].strftime("%B&nbsp;%d,&nbsp;%Y"),
tagsHtml = tagsHtml))
# Home is also just a rendered content file, just with a special name

14
webResources/styles.css

@ -57,6 +57,7 @@ a:active {
text-decoration: underline;
}
/* Regular body text */
p,
blockquote,
li,
@ -66,8 +67,8 @@ td {
}
time {
color: #95aec7;
/* color: #c7ae9; */
/* color: #95aec7; */
color: #7c91a5;
font-style: italic;
font-size: smaller;
}
@ -86,8 +87,8 @@ li {
label {
/* font-size: large; */
/* color: #f07f43; */
color: #c79595;
color: #9c7575;
/* color: #c79595; */
margin-left: 10px;
font-style: italic;
}
@ -96,3 +97,8 @@ img {
width: 100%;
height: auto;
}
::selection {
background-color: #c7ae95;
color: #000000;
}

Loading…
Cancel
Save