From 72252d692444e68a5857bd3b3040d5fbf9881b69 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 20 Apr 2026 10:50:21 +0200 Subject: [PATCH 1/1] Fix for kafkaesque abstract --- requirements/requirements.txt | 4 ++-- src/catalogue/templates/catalogue/book_detail.html | 2 +- .../static/2022/styles/layout/_article.scss | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 1fba04c93..ad5eb4e64 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -27,7 +27,7 @@ django-countries==7.6.1 oauthlib>=3.0.1,<3.1 # contact -pyyaml==5.4.1 +pyyaml==6.0.3 polib==1.2 @@ -42,7 +42,7 @@ mutagen==1.47 sorl-thumbnail==12.10.0 # home-brewed & dependencies -librarian==26.2 +librarian==26.4.1 # celery tasks celery[redis]==5.4.0 diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html index 2f51787eb..7074a81aa 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -335,7 +335,7 @@ {% endif %} -
+
{% content_warning book %} {{ book.abstract|safe }} diff --git a/src/wolnelektury/static/2022/styles/layout/_article.scss b/src/wolnelektury/static/2022/styles/layout/_article.scss index ba7e14546..cb913a36e 100644 --- a/src/wolnelektury/static/2022/styles/layout/_article.scss +++ b/src/wolnelektury/static/2022/styles/layout/_article.scss @@ -226,3 +226,17 @@ margin-bottom: .7em; } } + + +.abstract { + h2 { + font-size: 1.1em; + margin-top: 1.5em; + margin-bottom: 0; + font-weight: bold; + } + em.author-emphasis { + font-weight: bold; + font-style: normal; + } +} -- 2.20.1