2016-09-07 16:10:48 -04:00
|
|
|
---
|
|
|
|
title: search
|
|
|
|
layout: none
|
|
|
|
search: exclude
|
|
|
|
---
|
|
|
|
|
|
|
|
[
|
|
|
|
{% for page in site.pages %}
|
|
|
|
{% unless page.search == "exclude" %}
|
2018-04-09 11:36:25 +02:00
|
|
|
|
|
|
|
{% if page.permalink contains "pmd_rules_" and page.keywords %}
|
|
|
|
{% assign rules = page.keywords | split: ", " %}
|
|
|
|
{% for rule in rules %}
|
|
|
|
{
|
|
|
|
"title": "{{ rule | escape }} ({{page.language}}, {{page.title}})",
|
|
|
|
"tags": "{{ page.tags }}",
|
|
|
|
"keywords": "{{rule}}",
|
|
|
|
"url": "{{ page.url | remove: "/"}}#{{ rule | downcase }}",
|
|
|
|
"summary": "{{page.summary | strip }}"
|
|
|
|
}
|
|
|
|
{% unless forloop.last %},{% endunless %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2016-09-07 16:10:48 -04:00
|
|
|
{
|
|
|
|
"title": "{{ page.title | escape }}",
|
|
|
|
"tags": "{{ page.tags }}",
|
|
|
|
"keywords": "{{page.keywords}}",
|
|
|
|
"url": "{{ page.url | remove: "/"}}",
|
|
|
|
"summary": "{{page.summary | strip }}"
|
2017-05-25 10:22:39 +02:00
|
|
|
}
|
2018-04-09 11:36:25 +02:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2017-05-25 10:22:39 +02:00
|
|
|
{% unless forloop.last and site.posts.size < 1 %},{% endunless %}
|
2016-09-07 16:10:48 -04:00
|
|
|
{% endunless %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% for post in site.posts %}
|
|
|
|
|
|
|
|
{
|
|
|
|
"title": "{{ post.title | escape }}",
|
|
|
|
"tags": "{{ post.tags }}",
|
|
|
|
"keywords": "{{post.keywords}}",
|
2017-05-25 10:22:39 +02:00
|
|
|
"url": "{{ post.url | remove: "/" }}",
|
2016-09-07 16:10:48 -04:00
|
|
|
"summary": "{{post.summary | strip }}"
|
|
|
|
}
|
|
|
|
{% unless forloop.last %},{% endunless %}
|
|
|
|
{% endfor %}
|
|
|
|
|
2017-05-25 10:22:39 +02:00
|
|
|
]
|