1
0
mirror of https://github.com/thangisme/notes.git synced 2024-09-16 08:38:13 -04:00

change to relative_url

This commit is contained in:
marksie1988 2020-06-26 11:41:50 +01:00
parent d7050b3f04
commit 88759c1cf7

View File

@ -16,7 +16,7 @@ namespace :search do
{% for page in site.html_pages %}{% if page.search_exclude != true %}{% if comma == true%},{% endif %}"{{ forloop.index0 }}": {
"title": "{{ page.title | replace: \'&\', \'&\' }}",
"content": "\'+content+\'",
"url": "{{ page.url | absolute_url }}",
"url": "{{ page.url | relative_url }}",
"relUrl": "{{ page.url }}"
}{% assign comma = true %}
{% endif %}{% endfor %}