Use relative_url and absolute_url where possible (#2387)
* Use relative_url and absolute_url where possible Drops the `contains "://"` check, adopt Jekyll 3.7 Ref: https://github.com/mmistakes/minimal-mistakes/pull/2385#issuecomment-579882236 * One more unneeded {% assign %} * Remove one more assign as noted by mmistakes * Consolidate 4 more captures * Consolidate an extra assign on "active" class
This commit is contained in:
7
assets/js/lunr/lunr-store.js
vendored
7
assets/js/lunr/lunr-store.js
vendored
@ -43,12 +43,7 @@ var store = [
|
||||
"categories": {{ doc.categories | jsonify }},
|
||||
"tags": {{ doc.tags | jsonify }},
|
||||
"url": {{ doc.url | absolute_url | jsonify }},
|
||||
"teaser":
|
||||
{%- if teaser contains "://" -%}
|
||||
{{ teaser | jsonify }}
|
||||
{%- else -%}
|
||||
{{ teaser | absolute_url | jsonify }}
|
||||
{%- endif -%}
|
||||
"teaser": {{ teaser | absolute_url | jsonify }}
|
||||
}{%- unless forloop.last and l -%},{%- endunless -%}
|
||||
{%- endfor -%}
|
||||
{%- endfor -%}]
|
||||
|
Reference in New Issue
Block a user