Hexo+NextAlgolia

script type=text/javascript src= url_for(theme.js) /search.js/script

_config.yml

indexName: algoliaSettings.indexName,

images/algolia_logo.svg alt=Algolia /

instantsearch.widgets.pagination(

HTMLCLASSpopup-trigger

i class=fa fa-angle-double-right/i

__(menu.search)

algoliaSettings.labels.hits_empty.replace(

% elseif theme.algolia_search %

hexoTemplate renderswigswig

Tipshexocontent

iissnan

].forEach(search.addWidget, search);

appId: algoliaSettings.applicationID,

API-KEYSINDEX

Algolia100ms

link href= url_for(theme.css) /search.css rel=stylesheet type=text/css /

header.swigmenuendif

search.jssearch.cssfooter.swig

isAlgoliaSettingsValid = algoliaSettings.applicationID &&

hitsPerPage: algoliaSettings.hits.per_page

data._highlightResult.title.value +

i class=fa fa-angle-left/i

search.jsCONFIC

i class=fa fa-angle-double-left/i

instantsearch.widgets.searchBox(

a href= class=popup-trigger

Next5.1(Github Branch5.1)

placeholder: bels.input_placeholder

$hits $time

stats = algoliaSettings.labels.hits_stats

AlgoliaIndices

i class=fa fa-angle-right/i

Leave a Reply