From 5d009e879929ad0be6453a1a41bdf3226781a96f Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Fri, 16 Jun 2023 06:01:44 +0000 Subject: [PATCH] fixed bug where hovering over search results showed the string {desc}; fixes #1156 --- CHANGELOG.md | 1 + _includes/search.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ac40d23b23f..4db47816f0e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Unreleased version - BREAKING CHANGE: Allow changing the order of the social network links that appear in the footer (#1152) +- Fixed bug where hovering over search results showed the text "{desc}" (#1156) ## v6.0.1 (2023-06-08) diff --git a/_includes/search.html b/_includes/search.html index becf37b584c0..2ce261987b1f 100644 --- a/_includes/search.html +++ b/_includes/search.html @@ -12,6 +12,7 @@ {% for post in site.posts %} \ { \ "title" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \ + "desc" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \ "category" : "{{ post.tags | join: \', \' }}", \ "url" : "{{ site.baseurl }}{{ post.url }}", \ "date" : "{{ post.date | date: "%B %e, %Y" | default: "January 1, 1970" }}" \ @@ -20,6 +21,7 @@ {% for page in site.html_pages %}{% if page.title != "{title}" and page.title != "404 - Page not found" %} \ { \ "title" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}", \ + "desc" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}", \ "category" : "{% if page.tags %}{{ page.tags | join: \', \' }}{% else %}page{% endif %}", \ "url" : "{{ site.baseurl }}{{ page.url }}", \ "date" : "{{ page.date | date: '%B %e, %Y' | default: "January 1, 1970" }}" \