Skip to content

Commit

Permalink
fixed bug where hovering over search results showed the string {desc};
Browse files Browse the repository at this point in the history
…fixes daattali#1156
  • Loading branch information
daattali committed Jun 16, 2023
1 parent 4607fa1 commit 6ea95fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 2 additions & 0 deletions _includes/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}" \
Expand All @@ -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" }}" \
Expand Down

0 comments on commit 6ea95fb

Please sign in to comment.