From cdbe7b4e63da1f9b8680b120c336bea8e5e73c45 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 19 Jan 2023 22:39:31 +0100 Subject: Fixed broken git.adyxax.org external link --- content/blog/hugo/search.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/blog/hugo/search.md b/content/blog/hugo/search.md index d58f51c..fd1b314 100644 --- a/content/blog/hugo/search.md +++ b/content/blog/hugo/search.md @@ -81,7 +81,7 @@ The `search` template just need to be written accordingly, and the http templati ### The golang webservice -The webservice lives in a folder of my hugo repository and can be found [here](https://git.adyxax.org/adyxax/www/src/branch/master/search). The website's makefile first builds the hugo website, then copies the HTML template and the json index in the search folder. It then builds the golang binary and embeds these. +The webservice lives in a folder of my hugo repository and can be found [here](https://git.adyxax.org/adyxax/www/tree/search). The website's makefile first builds the hugo website, then copies the HTML template and the json index in the search folder. It then builds the golang binary and embeds these. When the webservice starts, it parses the JSON index and generates separate lists of unique words found in titles, descriptions, tags and page content. These lists each have a weight that factors in the results when the searched words are found in the list via a simple `string.Contains` match. -- cgit v1.2.3