diff --git a/.travis.yml b/.travis.yml index b31ff47..013a27a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ jobs: - cp _config.theme.yml themes/icarus/_config.yml - ([[ -e _config.page.yml ]] && cp _config.page.yml themes/icarus/) || true - ([[ -e _config.post.yml ]] && cp _config.post.yml themes/icarus/) || true - # - hexo algolia + - hexo algolia - hexo g deploy: provider: pages diff --git a/source/_posts/en/Donation-Buttons.md b/source/_posts/en/Donation-Buttons.md index a67a907..6f9211f 100644 --- a/source/_posts/en/Donation-Buttons.md +++ b/source/_posts/en/Donation-Buttons.md @@ -26,13 +26,6 @@ donates: qrcode: /gallery/donate/wechat.jpg --- -
-
- -This article is also available in 简体中文. -
-
- This article covers donation button configurations supported by Icarus 3. If you need to display multiple donation buttons at once, add individual button configuration to the `donates` array like the following: @@ -47,6 +40,13 @@ donates: ... {% endcodeblock %} +
+
+ +This article is also available in 简体中文. +
+
+
diff --git a/source/_posts/en/Search-Plugins.md b/source/_posts/en/Search-Plugins.md index c2b7b8f..afb9392 100644 --- a/source/_posts/en/Search-Plugins.md +++ b/source/_posts/en/Search-Plugins.md @@ -9,21 +9,25 @@ language: en toc: true --- -
-This article is also available in: 简体中文. -
+This article covers search plugin configurations supported by Icarus 3. -This article covers some search plugins supported by Icarus 3. +
+
+ +This article is also available in 简体中文. +
+
- 1. Log into your Google account and visit [Google CSE](https://cse.google.com/cse/create/new) to create a CSE. - Type in the domain name of your site in the "Sites to Search" field, select correct language from the "Language" - select box, and fill in the "Name of the search engine". Click the "Create" button to finish engine creation. + Type in the URL of your site (without `http://` or `https://`) in the "Sites to Search" field. + Select the correct language from the "Language" select box. + Then, fill in the "Name of the search engine". + Click the "Create" button to finish engine creation. + + {% img "box ml-auto mr-auto" /gallery/screenshots/google-cse-create.png 360 '"Create Custom Search - Google CSE" "Create Custom Search - Google CSE"' %} +
2. Then, click the "Get code" button on the right side of "Add it to your site". Copy the value of `cx` to the search settings in your theme's configuration file. - For example, the following HTML code + + {% img "box ml-auto mr-auto" /gallery/screenshots/google-cse-code.png 360 '"Get Code - Google CSE" "Get Code - Google CSE"' %} +
+ + For example, the following HTML code: {% codeblock "Google CSE HTML code" lang:html %} {% endcodeblock %} - can be mapped to the following theme configuration + maps to the following theme configuration: {% codeblock themes/icarus/_config.yml lang:yaml %} search: @@ -147,7 +169,7 @@ Please refer to it for a complete list of supported plugins and their configurat **Installation Guide** 1. Insight is the default search engine of this site. - You can enable it using the following theme configuration + You can enable it using the following theme configuration: {% codeblock themes/icarus/_config.yml lang:yaml %} search: @@ -155,6 +177,9 @@ Please refer to it for a complete list of supported plugins and their configurat {% endcodeblock %} -
+
+
+ Something wrong with this article? Click here to submit your revision.
+
diff --git a/source/gallery/screenshots/algolia-api-keys.png b/source/gallery/screenshots/algolia-api-keys.png new file mode 100644 index 0000000..36cde4a Binary files /dev/null and b/source/gallery/screenshots/algolia-api-keys.png differ diff --git a/source/gallery/screenshots/algolia-create-api-key.png b/source/gallery/screenshots/algolia-create-api-key.png new file mode 100644 index 0000000..c9f33ab Binary files /dev/null and b/source/gallery/screenshots/algolia-create-api-key.png differ diff --git a/source/gallery/screenshots/algolia-create-index.png b/source/gallery/screenshots/algolia-create-index.png new file mode 100644 index 0000000..6f59302 Binary files /dev/null and b/source/gallery/screenshots/algolia-create-index.png differ diff --git a/source/gallery/screenshots/google-cse-code.png b/source/gallery/screenshots/google-cse-code.png new file mode 100644 index 0000000..5d3bc90 Binary files /dev/null and b/source/gallery/screenshots/google-cse-code.png differ diff --git a/source/gallery/screenshots/google-cse-create.png b/source/gallery/screenshots/google-cse-create.png new file mode 100644 index 0000000..0795960 Binary files /dev/null and b/source/gallery/screenshots/google-cse-create.png differ