From 24fd037bb648329d27715cfc77013654aee6a600 Mon Sep 17 00:00:00 2001 From: Phil Leggetter Date: Thu, 19 Sep 2024 17:51:24 +0100 Subject: [PATCH] chore: add score to search and bold current location in nav --- templates/layout.html | 10 +++++++--- templates/search.html | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/layout.html b/templates/layout.html index d3b121a..09c5dd8 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -55,7 +55,11 @@ justify-content: center; list-style: none; padding: 0; - gap: 10px; + gap: 30px; + } + + .topnav a.current { + font-weight: bolder; } h2 { @@ -136,8 +140,8 @@

Index All The Things!

diff --git a/templates/search.html b/templates/search.html index 60b06a9..461edaa 100644 --- a/templates/search.html +++ b/templates/search.html @@ -36,6 +36,7 @@

Results {% if query %}for "{{ query }}"{% endif %}:

+ @@ -46,6 +47,7 @@

Results {% if query %}for "{{ query }}"{% endif %}:

{% for asset in results %} +
Score Domain Path Content Type
{{ asset.score }} {{ asset.parsed_url.hostname }} ...{{ asset.parsed_url.last_part }}