File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ { { - $pages := slice } }
2+ { { - range . Site . Pages } }
3+ { { - if or ( partial "_relearn/pageIsSpecial.gotmpl" . ) ( . Params . search_ignore ) } }
4+ { { - continue } }
5+ { { - else if and . Title . RelPermalink ( or ( ne . Site . Params . disableSearchHiddenPages true ) ( not ( partialCached "_relearn/pageIsHiddenSelfOrAncestor.gotmpl" ( dict "page" . "to" . Site . Home ) . Path . Site . Home . Path ) ) ) } }
6+ { { - $tags := slice } }
7+ { { - range . GetTerms "tags" } }
8+ { { - $tags = $tags | append ( partial "title.gotmpl" ( dict "page" . Page "linkTitle" true ) | plainify ) } }
9+ { { - end } }
10+ { { - $pages = $pages | append ( dict
11+ "uri" ( partial "permalink.gotmpl" ( dict "to" . ) )
12+ "title" ( partial "title.gotmpl" ( dict "page" . ) | plainify )
13+ "tags" $tags
14+ "breadcrumb" ( trim ( partial "breadcrumbs.html" ( dict "page" . "dirOnly" true ) | plainify | htmlUnescape ) "\n\r\t " )
15+ "description" ( trim ( or . Description . Summary | plainify | htmlUnescape ) "\n\r\t " )
16+ "content" ( trim ( . Plain | htmlUnescape ) "\n\r\t " )
17+ ) } }
18+ { { - end } }
19+ { { - end - } }
20+ var relearn_searchindex = { { $pages | jsonify ( dict "indent" " ") }}
You can’t perform that action at this time.
0 commit comments