diff options
| author | Bobby <[email protected]> | 2024-02-11 17:19:47 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-02-11 17:19:47 -0500 |
| commit | 44a068837b90097ed6da8a930e3b89155473ff96 (patch) | |
| tree | fb3bb8e0156f953097101bb70a6c1ae641afdd7c /blog/views.py | |
| parent | 611fb42f7fb3ebcc2df1a3ea68fbf8e71c16c47f (diff) | |
| download | thatcomputerscientist-44a068837b90097ed6da8a930e3b89155473ff96.tar.xz thatcomputerscientist-44a068837b90097ed6da8a930e3b89155473ff96.zip | |
Disallow Empty Search + Basic Article Improvements
Diffstat (limited to 'blog/views.py')
| -rw-r--r-- | blog/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/blog/views.py b/blog/views.py index a1e1455b..8dc8fe60 100644 --- a/blog/views.py +++ b/blog/views.py @@ -183,6 +183,7 @@ def post(request, slug): first_paragraph = soup.find('p') if first_paragraph is not None: first_paragraph = str(first_paragraph) + first_paragraph = first_paragraph.replace('<p>', '<p class="subhead">') soup.find('p').decompose() post.first_paragraph = first_paragraph |
