diff --git a/_includes/image.html b/_includes/image.html index ad12972..7b3b0fa 100644 --- a/_includes/image.html +++ b/_includes/image.html @@ -1 +1 @@ -
{% if {{include.url}} %}{% endif %}{{include.alt}}{% if {{include.url}} %}{% endif %}{% if {{include.caption}} %}
{{include.caption}}
{% endif %} +
{% if {{include.url}} %}{% endif %}{{include.alt}}{% if {{include.url}} %}{% endif %}{% if {{include.caption}} %}
{{include.caption}}
{% endif %}
diff --git a/pages/mydoc/mydoc_icons.md b/pages/mydoc/mydoc_icons.md index 8fc4dca..dcb1fb6 100644 --- a/pages/mydoc/mydoc_icons.md +++ b/pages/mydoc/mydoc_icons.md @@ -199,13 +199,13 @@ And here's the shortcode: {% raw %} ``` -{{site.data.alerts.callout_info}This is a special callout information message. +{{site.data.alerts.callout_info}This is a special callout information message.{{site.data.alerts.end}} {% endraw %} ``` Here's the result: -{{site.data.alerts.callout_info}}This is a special callout information message. +{{site.data.alerts.callout_info}}This is a special callout information message.{{site.data.alerts.end}} You can use any of the following: {% raw %} diff --git a/pages/mydoc/mydoc_search_configuration.md b/pages/mydoc/mydoc_search_configuration.md index 99a512e..0107493 100644 --- a/pages/mydoc/mydoc_search_configuration.md +++ b/pages/mydoc/mydoc_search_configuration.md @@ -35,7 +35,7 @@ I've found that include the `body` field in the search creates too many problems {% raw %} ```json - "body": "{{ page.content | strip_html | strip_newlines | replace: '\', '\\\\' | replace: '"', '\\"' | replace: '^t', ' ' }}", + "body": "{{ page.content | strip_html | strip_newlines | replace: '\', '\\\\' | replace: '"', '\\"' | replace: ' ', ' ' }}", ``` {% endraw %} diff --git a/search.json b/search.json index 348c498..b61ffb7 100644 --- a/search.json +++ b/search.json @@ -13,7 +13,8 @@ search: exclude "keywords": "{{page.keywords}}", "url": "{{ page.url | remove: "/"}}", "summary": "{{page.summary | strip }}" -}, +} +{% unless forloop.last and site.posts.size < 1 %},{% endunless %} {% endunless %} {% endfor %} @@ -29,4 +30,4 @@ search: exclude {% unless forloop.last %},{% endunless %} {% endfor %} -] \ No newline at end of file +]