mirror of
https://github.com/DependencyTrack/dependency-track.git
synced 2025-10-19 16:03:19 +00:00
Added searching of change log entries
This commit is contained in:
parent
a37abf2342
commit
930f68c485
1 changed files with 20 additions and 0 deletions
|
@ -26,6 +26,26 @@ sitemap: false
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% for item in site.posts %}
|
||||||
|
{% if item.title %}
|
||||||
|
{% unless item.excluded_in_search %}
|
||||||
|
{% if added %},{% endif %}
|
||||||
|
{% assign added = false %}
|
||||||
|
|
||||||
|
"{{ item.url | slugify }}": {
|
||||||
|
"id": "{{ item.url | slugify }}",
|
||||||
|
"title": "Change Log: ({{ item.title | xml_escape }})",
|
||||||
|
"category": "{{ collection.title | xml_escape }}",
|
||||||
|
"url": " {{ item.url | xml_escape }}",
|
||||||
|
"content": {{ item.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }}
|
||||||
|
}
|
||||||
|
|
||||||
|
{% assign added = true %}
|
||||||
|
{% endunless %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script src="{{ site.baseurl }}/scripts/lunr.min.js"></script>
|
<script src="{{ site.baseurl }}/scripts/lunr.min.js"></script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue