1
0

Check if we should not show a website.

This commit is contained in:
Alexander Andreev 2023-05-23 03:28:21 +04:00
parent b512af25a3
commit 45c2ff6505
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -41,7 +41,10 @@ block content
article article
header header
- var created_tz = util.ToClientTimezone(entry.Created, r).Format("Monday _2 January 2006 15:04:05 -07:00") - var created_tz = util.ToClientTimezone(entry.Created, r).Format("Monday _2 January 2006 15:04:05 -07:00")
| ##{entry.ID} by #[span.highlighted #{entry.Name}] #[em #{entry.Website}] on #[time(datetime=created_tz) #{created_tz}] - var website = ""
if (!entry.HideWebsite)
- website = entry.Website
| ##{entry.ID} by #[span.highlighted #{entry.Name}] #[em #{website}] on #[time(datetime=created_tz) #{created_tz}]
each line in strings.Split(entry.Message, "\n") each line in strings.Split(entry.Message, "\n")
+entryLine(line) +entryLine(line)
if (entry.Reply != nil) if (entry.Reply != nil)