(1) Background Normally, we feel intuitive to put files under different nested sub directory, each directory could represents as file’s category it belongs to or with specific purpose. E,g: I created a post which describe how to fix some problem when coding in golang, so I will have a following directory hierarchy: - blog * blog-a.md * blog-b.md - program - golang - golang-a-problem.md - golang-b-problem.md Then, I created another post which fix another problem for coding in web, then I will create another web directory:

Read More…

(1) Background To fix following issue: Add “contains” operator in where function to support list pages in nested subdir I implemented a new contains operator in Hugo where function in following PR: tpl: Add “contains” operator in where tpl function (2) How Hugo where function works Basically Hugo where function use the checkCondition() function to check if the given field value matches the match value or not.

Read More…

Why language specific params defined in “[lanuage]” missing some information defined outside “[lanuage]” [params] [params.home] var1 ="1" var2 ="2" [languages] [languages.en] [languages.en.params.home] var1="changed" The language specific params will override the variable with the same name defined outside of “[language]“, In above example, there is no var2 availble, and Site.Params.Home only can see var1=“changed” Why baseURL defined in config file doesn’t take effect when running in hugo server mode?

Read More…