File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 84
84
},
85
85
},
86
86
{%- endfor -% }
87
- {% for collection in site .collections % }
87
+ {%- for collection in site .collections - % }
88
88
{%- for item in collection .docs -% }
89
89
{
90
- {%- assign title = item .title | escape -% }
90
+ {%- if item .inline -% }
91
+ {%- assign title = item .content | remove: ' <p>' | remove: ' </p>' | escape | strip -% }
92
+ {%- else -% }
93
+ {%- assign title = item .title | escape -% }
94
+ {%- endif -% }
91
95
id: " {{ collection .label }}-{{ title | slugify }}" ,
92
- title: " {{ title }} " ,
96
+ title: ' {{ title | emojify }} ' ,
93
97
description: " {{ item .description | strip_html | strip_newlines | escape }}" ,
94
98
section: " {{ collection .label | capitalize }}" ,
95
- handler : () => {
96
- window .location .href = " {{ item .url | relative_url }}" ;
97
- },
99
+ {%- unless item .inline -% }
100
+ handler : () => {
101
+ window .location .href = " {{ item .url | relative_url }}" ;
102
+ },
103
+ {%- endunless -% }
98
104
},
99
105
{%- endfor -% }
100
- {% endfor % }
106
+ {%- endfor - % }
101
107
{%- if site .socials_in_search -% }
102
108
{%- if site .email -% }
103
109
{
You can’t perform that action at this time.
0 commit comments