summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--serve.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/serve.go b/serve.go
index 4f3aef8..3883d9a 100644
--- a/serve.go
+++ b/serve.go
@@ -427,7 +427,13 @@ func (ctx *serveContext) handleArchiveDay(w http.ResponseWriter, r *http.Request
day, _ := strconv.Atoi(vars["day"])
articles, _, err := viewArticlesFromDb(db, 1, `
- SELECT article_id, published, slug, title, full_html, 0 AS ReadMore
+ SELECT
+ article_id,
+ published,
+ slug,
+ title,
+ IF(summary_html = '', full_html, summary_html),
+ summary_html != '' AS ReadMore
FROM article
WHERE
YEAR(published) = ?