|
|
@@ -15,12 +15,16 @@ class SearchResultList extends React.Component {
|
|
|
|
|
|
render() {
|
|
|
const resultList = this.props.pages.map((page) => {
|
|
|
+ const showTags = (page.tags != null) && (page.tags.length > 0);
|
|
|
+
|
|
|
return (
|
|
|
<div id={page._id} key={page._id} className="search-result-page mb-5">
|
|
|
- <h2><a href={page.path}>{page.path}</a></h2>
|
|
|
- { page.tags.length > 0 && (
|
|
|
- <span><i className="tag-icon icon-tag"></i> {page.tags.join(', ')}</span>
|
|
|
- )}
|
|
|
+ <h2>
|
|
|
+ <a href={page.path}>{page.path}</a>
|
|
|
+ { showTags && (
|
|
|
+ <div className="mt-1 small"><i className="tag-icon icon-tag"></i> {page.tags.join(', ')}</div>
|
|
|
+ )}
|
|
|
+ </h2>
|
|
|
<RevisionLoader
|
|
|
growiRenderer={this.growiRenderer}
|
|
|
pageId={page._id}
|