Moved a link to a footer of a post. Removed "Link:". Add span element if there is no URL, because justify-content: space-between is used, and without an element a date will move to the left with display: flex, even with text-align: right.
This commit is contained in:
parent
5bc4f13c38
commit
24cf81a3ce
@ -5,5 +5,6 @@ button:not(:last-child) { padding-right: 1rem; }
|
||||
article header a { color: var(--text-color); }
|
||||
|
||||
article footer {
|
||||
text-align: right;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0; }
|
@ -31,15 +31,16 @@ block content
|
||||
header
|
||||
a(href=`#${post.PostID()}`)
|
||||
h3= post.Category.Name + ": " + post.Title
|
||||
if (post.URL != "")
|
||||
p Link:
|
||||
a(href=post.PostURL(r.Host, false)) #{post.PostURL(r.Host, false)}
|
||||
each line in strings.Split(post.Body, "\n")
|
||||
if (line[0] == '>')
|
||||
p.quote!= line
|
||||
else
|
||||
p!= line
|
||||
footer
|
||||
if (post.URL != "")
|
||||
a(href=post.PostURL(r.Host, false)) #{post.PostURL(r.Host, false)}
|
||||
else
|
||||
span
|
||||
time(datetime=util.ToClientTimezone(post.Date, r))= util.ToClientTimezone(post.Date, r).Format(time.RFC1123)
|
||||
else
|
||||
p.center Nothing? There must be some... Looks like database went down.
|
||||
|
Loading…
Reference in New Issue
Block a user