From 209327a39dd8d40feb5086a5d86c4cb7f35d2bd4 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 29 Jun 2022 11:55:20 +0530 Subject: web: server: Use div instead of span for snippets and metadata. A div is already a block element. There is no need to use a span and then make it a block element. * tissue/document.scm (document->sxml): Use div instead of span for snippets and metadata. * tissue/issue.scm (document->sxml): Use div instead of span for snippets and metadata. * tissue/web/server.scm (%css)[.search-result-metadata]: Remove "display: block" property. --- tissue/document.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tissue/document.scm') diff --git a/tissue/document.scm b/tissue/document.scm index cc49010..a89dbb8 100644 --- a/tissue/document.scm +++ b/tissue/document.scm @@ -244,8 +244,8 @@ a list of search results." ,(document-title document)) ,@(let ((snippet (document-sxml-snippet document mset))) (if snippet - (list `(span (@ (class "search-result-snippet")) - ,@snippet)) + (list `(div (@ (class "search-result-snippet")) + ,@snippet)) (list))))) (define (read-gemtext-document file) -- cgit v1.2.3