From 1f37388df8f2f39b516b624192e7524e632026a9 Mon Sep 17 00:00:00 2001 From: leaf Date: Fri, 22 Dec 2023 16:29:55 +0800 Subject: [PATCH] fix(config): change site.url to blog.atomicstep.org --- .gitignore | 10 ++++++++++ Makefile | 2 +- _config.yml | 2 +- _includes/sidebar-search.html | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..d2ea25c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +_site/* +Makefile +*.py +*.png +*.jpg +*.gif +*.jpeg +gitignore +.jekyll-cache/ +.jekyll-metadata diff --git a/Makefile b/Makefile index 556d4451..952d8cae 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ IP=$(shell ifconfig | grep 192.168 | awk '{print $$2}') dev: @echo "Listen to http://$(IP):4000" - @bundle exec jekyll serve --host 0.0.0.0 --port 4000 + @bundle exec jekyll serve --host 0.0.0.0 update: diff --git a/_config.yml b/_config.yml index 16c48fce..a307ffe1 100644 --- a/_config.yml +++ b/_config.yml @@ -9,7 +9,7 @@ encoding: utf-8 title: Berry's blog brief-intro: Do what you love & Love what you do. baseurl: '' # the subpath of your site, e.g. /blog -url: 'https://berrysleaf.github.io' # the base hostname & protocol for your site +url: 'https://blog.atomicstep.org' # the base hostname & protocol for your site permalink: /:year/:month/:day/:title/ diff --git a/_includes/sidebar-search.html b/_includes/sidebar-search.html index e0da7c53..9bbaf33c 100644 --- a/_includes/sidebar-search.html +++ b/_includes/sidebar-search.html @@ -54,7 +54,7 @@ searchResultTemplate: '
  • {title}
  • ', noResultsText: 'No results found', limit: 10, - fuzzy: false, + fuzzy: true, templateMiddleware: function(prop, value, template) { if (prop === 'title') { var v = document.getElementById('search_box').value;