From ac28e9824eb5babd4ebcd4e1ee23f5c1b5ce45a1 Mon Sep 17 00:00:00 2001 From: Pablo Marcos <48572431+MarionMoseby@users.noreply.github.com> Date: Mon, 17 May 2021 20:32:39 +0200 Subject: Make search multilingual (#305) * Make search multilingual * Added Support for custom country flags * Add search.md for more language + fix search behavior Signed-off-by: hossainemruz Co-authored-by: Pablo Marcos Co-authored-by: Emruz Hossain --- content/notes/search.bn.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/notes/search.cn.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/notes/search.de.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/notes/search.es.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/notes/search.fr.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/notes/search.hi.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/notes/search.id.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/notes/search.it.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/notes/search.jp.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/notes/search.ko.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/notes/search.ru.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/notes/search.vn.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.bn.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.cn.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.de.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.es.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.fr.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.hi.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.id.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.it.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.jp.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.ko.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.ru.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ content/posts/search.vn.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ 24 files changed, 1296 insertions(+) create mode 100644 content/notes/search.bn.md create mode 100644 content/notes/search.cn.md create mode 100644 content/notes/search.de.md create mode 100644 content/notes/search.es.md create mode 100644 content/notes/search.fr.md create mode 100644 content/notes/search.hi.md create mode 100644 content/notes/search.id.md create mode 100644 content/notes/search.it.md create mode 100644 content/notes/search.jp.md create mode 100644 content/notes/search.ko.md create mode 100644 content/notes/search.ru.md create mode 100644 content/notes/search.vn.md create mode 100644 content/posts/search.bn.md create mode 100644 content/posts/search.cn.md create mode 100644 content/posts/search.de.md create mode 100644 content/posts/search.es.md create mode 100644 content/posts/search.fr.md create mode 100644 content/posts/search.hi.md create mode 100644 content/posts/search.id.md create mode 100644 content/posts/search.it.md create mode 100644 content/posts/search.jp.md create mode 100644 content/posts/search.ko.md create mode 100644 content/posts/search.ru.md create mode 100644 content/posts/search.vn.md (limited to 'content') diff --git a/content/notes/search.bn.md b/content/notes/search.bn.md new file mode 100644 index 0000000..2f67d73 --- /dev/null +++ b/content/notes/search.bn.md @@ -0,0 +1,54 @@ +--- +title: "অনুসন্ধানের ফলাফল" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/notes/search.cn.md b/content/notes/search.cn.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/notes/search.cn.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/notes/search.de.md b/content/notes/search.de.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/notes/search.de.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/notes/search.es.md b/content/notes/search.es.md new file mode 100644 index 0000000..77889e8 --- /dev/null +++ b/content/notes/search.es.md @@ -0,0 +1,54 @@ +--- +title: "Resultados de Búsqueda" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +Este archivo existe únicamente para responder a la URL /search con la plantilla de diseño `search` relacionada. + +No se muestra ningún contenido aquí, todo el contenido se basa en la plantilla layouts/page/search.html + +Establecer una prioridad muy baja en el mapa del sitio le dirá a los motores de búsqueda que éste no es un contenido importante. + +Esta implementación utiliza Fusejs, jquery y mark.js + + +## Configuración inicial + +La búsqueda depende del tipo de contenido de salida adicional de JSON en config.toml + +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Búsqueda de archivos adicionales + +Para buscar campos adicionales definidos en el front matter, debes añadirlo en 2 lugares. + +### Editar layouts/_default/index.JSON +Esto expone los valores en /index.json: por ejemplo, para agregar `categories` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Editar las opciones de fuse.js para buscar +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/notes/search.fr.md b/content/notes/search.fr.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/notes/search.fr.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/notes/search.hi.md b/content/notes/search.hi.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/notes/search.hi.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/notes/search.id.md b/content/notes/search.id.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/notes/search.id.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/notes/search.it.md b/content/notes/search.it.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/notes/search.it.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/notes/search.jp.md b/content/notes/search.jp.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/notes/search.jp.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/notes/search.ko.md b/content/notes/search.ko.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/notes/search.ko.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/notes/search.ru.md b/content/notes/search.ru.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/notes/search.ru.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/notes/search.vn.md b/content/notes/search.vn.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/notes/search.vn.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.bn.md b/content/posts/search.bn.md new file mode 100644 index 0000000..2f67d73 --- /dev/null +++ b/content/posts/search.bn.md @@ -0,0 +1,54 @@ +--- +title: "অনুসন্ধানের ফলাফল" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.cn.md b/content/posts/search.cn.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/posts/search.cn.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.de.md b/content/posts/search.de.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/posts/search.de.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.es.md b/content/posts/search.es.md new file mode 100644 index 0000000..77889e8 --- /dev/null +++ b/content/posts/search.es.md @@ -0,0 +1,54 @@ +--- +title: "Resultados de Búsqueda" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +Este archivo existe únicamente para responder a la URL /search con la plantilla de diseño `search` relacionada. + +No se muestra ningún contenido aquí, todo el contenido se basa en la plantilla layouts/page/search.html + +Establecer una prioridad muy baja en el mapa del sitio le dirá a los motores de búsqueda que éste no es un contenido importante. + +Esta implementación utiliza Fusejs, jquery y mark.js + + +## Configuración inicial + +La búsqueda depende del tipo de contenido de salida adicional de JSON en config.toml + +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Búsqueda de archivos adicionales + +Para buscar campos adicionales definidos en el front matter, debes añadirlo en 2 lugares. + +### Editar layouts/_default/index.JSON +Esto expone los valores en /index.json: por ejemplo, para agregar `categories` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Editar las opciones de fuse.js para buscar +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.fr.md b/content/posts/search.fr.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/posts/search.fr.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.hi.md b/content/posts/search.hi.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/posts/search.hi.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.id.md b/content/posts/search.id.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/posts/search.id.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.it.md b/content/posts/search.it.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/posts/search.it.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.jp.md b/content/posts/search.jp.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/posts/search.jp.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.ko.md b/content/posts/search.ko.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/posts/search.ko.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.ru.md b/content/posts/search.ru.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/posts/search.ru.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/content/posts/search.vn.md b/content/posts/search.vn.md new file mode 100644 index 0000000..4586d1f --- /dev/null +++ b/content/posts/search.vn.md @@ -0,0 +1,54 @@ +--- +title: "Search Results" +date: 2010-06-08T08:06:25+06:00 +weight: 999999 +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` -- cgit v1.2.3