From 161a8f1917f17f169ca750e37a18d4f35014c6fa Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 14 Apr 2019 15:28:08 -0500 Subject: fixed but that put unpublished src posts in sitemap --- app/src/models.py | 3 +-- design/sass/_details.scss | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/models.py b/app/src/models.py index ff829e1..5f3f2fd 100644 --- a/app/src/models.py +++ b/app/src/models.py @@ -163,8 +163,7 @@ class SrcSitemap(Sitemap): def items(self): return list(chain( - Post.objects.all(), - Book.objects.all(), + Post.objects.all(status=1), Topic.objects.all() )) diff --git a/design/sass/_details.scss b/design/sass/_details.scss index a24227b..b84e680 100644 --- a/design/sass/_details.scss +++ b/design/sass/_details.scss @@ -204,7 +204,7 @@ h4.post-source { text-decoration: none; } } -.post-essay p:first-child:first-letter { +.post-essay ~ p:first-child:first-letter { @include fancy_sans; font-size: 75px; line-height: 60px; -- cgit v1.2.3