diff --git a/assets/js/search.js b/assets/js/search.js index 6ec8e9f..1b11d75 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -12,7 +12,8 @@ var context = { title: item.title, url: item.url, - summary: item.content.substring(0, 200) + summary: item.content.substring(0, 200), + authors: item.authors }; var html = template(context); searchResults.innerHTML += html diff --git a/search.html b/search.html index c25205f..93d3b89 100644 --- a/search.html +++ b/search.html @@ -10,7 +10,7 @@ {%- for project in site.projects -%} "{{ project.url | slugify }}": { "title": "{{ project.title | xml_escape }}", - "authors": "{{ project.authors | join | replace: '_', ' ' | xml_escape }}", + "authors": "{{ project.authors | join: ", " | xml_escape }}", "category": "{{ project.category | xml_escape }}", "content": {{ project.content | strip_html | strip_newlines | jsonify }}, "url": "{{ project.url | xml_escape }}" @@ -22,14 +22,23 @@ {% raw %}