Skip to content

Commit 8c09cd7

Browse files
committed
Change variables and add /api/ in the path
1 parent ee35f18 commit 8c09cd7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

_includes/search-providers/nanosearch/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ window.Lazyload.js([SOURCES.jquery, PAHTS.search_js], function() {
3737
function remoteSearchByQuery(query) {
3838
console.log(`searching: ${query}`);
3939
var i, j, key, keys, cur, _title;
40-
const url = 'https://bs.nanosearch.io/sites/mincong.io/posts/search?' + $.param({
40+
const url = 'https://bs.nanosearch.io/api/sites/mincong.io/posts/search?' + $.param({
4141
q: query
4242
});
4343
let start = Date.now();

_plugins/hooks/site/post_write/blogsearch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
pos = post.id.rindex('/') + 1
3030
postId = post.id[pos..-1] # hack: remove prefix
31-
uri = URI.parse('https://bs.nanosearch.io/sites/mincong.io/posts/' + postId)
31+
uri = URI.parse('https://bs.nanosearch.io/api/sites/mincong.io/posts/' + postId)
3232
Jekyll.logger.info uri
3333

3434
http = Net::HTTP.new(uri.host, uri.port)

docker-jekyll.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ echo "version: ${version}"
2323
# (https://rubygems.org) is not accessible in the mainland China.
2424
docker run --rm \
2525
-p 4000:4000 \
26-
--env "JIMI_USERNAME=${JIMI_USERNAME}" \
27-
--env "JIMI_PASSWORD=${JIMI_PASSWORD}" \
26+
--env "BS_ENABLED=true" \
27+
--env "BS_USERNAME=${BS_USERNAME}" \
28+
--env "BS_PASSWORD=${BS_PASSWORD}" \
2829
--env "SERVICE_VERSION=${version}" \
2930
--name jekyll \
3031
--volume "${PWD}:/srv/jekyll" \

0 commit comments

Comments
 (0)