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 /templates | |
| parent | 611fb42f7fb3ebcc2df1a3ea68fbf8e71c16c47f (diff) | |
| download | thatcomputerscientist-44a068837b90097ed6da8a930e3b89155473ff96.tar.xz thatcomputerscientist-44a068837b90097ed6da8a930e3b89155473ff96.zip | |
Disallow Empty Search + Basic Article Improvements
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/blog/partials/base.html | 1 | ||||
| -rw-r--r-- | templates/blog/search.html | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/templates/blog/partials/base.html b/templates/blog/partials/base.html index 207d29a1..3db00ea9 100644 --- a/templates/blog/partials/base.html +++ b/templates/blog/partials/base.html @@ -88,6 +88,7 @@ placeholder="Search..." autocomplete="off" value="{{ request.GET.q }}" + required /> </form> </div> diff --git a/templates/blog/search.html b/templates/blog/search.html index 33a41b14..721f8d8d 100644 --- a/templates/blog/search.html +++ b/templates/blog/search.html @@ -27,8 +27,14 @@ <input type="submit" value="Search" class="button button-special" style="margin: 10px 0;"/> </form> </td> - <td id="search_results" style="width: 530px; vertical-align: top; padding-left: 20px;"> + <td id="search_results" style="width: 530px; max-width: 530px; vertical-align: top; padding-left: 20px;"> <h2>Search Results</h2> + <style> + div > pre { + white-space: pre-wrap; + word-wrap: break-word; + } + </style> <p style="margin-bottom: 20px;">Your search for "<strong>{{ request.GET.q }}</strong>" returned {{ search_results }} Result{% if search_results != 1 %}s{% endif %}.</p> {% if 'posts' in search_in %} |
