tag fix in search

This commit is contained in:
Utsob Roy 2023-01-08 20:03:01 +06:00
parent 0c830fc1db
commit 43c28d459f

View File

@ -157,7 +157,7 @@
// we need to add title, url from ref // we need to add title, url from ref
results.forEach(r => { results.forEach(r => {
resultsHTML += `<div class="searchresult"><a class="search-link" href="${r.url}">${r.title}</a><span onclick="window.location='${r.url}'"><div class="header-meta"> resultsHTML += `<div class="searchresult"><a class="search-link" href="${r.url}">${r.title}</a><span onclick="window.location='${r.url}'"><div class="header-meta">
{% if tags %}<div class="header-tags">{% for tag in tags %}<a class="tag" href="JavaScript:Void(0);">#{{tag}}</div>{% endfor %}</a>{% endif %} {% if tags %}<div class="header-tags">{% for tag in tags %}<a class="tag" href="JavaScript:Void(0);">#{{tag}}</a>{% endfor %}</a>{% endif %}
</div>${r.content}</span></div>`; </div>${r.content}</span></div>`;
}); });
resultsHTML += '</div>'; resultsHTML += '</div>';