mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 20:55:21 +00:00
tag fix in search
This commit is contained in:
parent
0c830fc1db
commit
43c28d459f
@ -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>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user