Open mem opened 6 years ago
Sorry, I didn't realize I had an old hugo binary in my path :-(
But I still think it's better to use intersect than union. Would you like me to correct the commit message?
Are you sure the behaviour of intersect == Union ?
The functions are absolutely not equivalent. See https://gohugo.io/functions/intersect/ and https://gohugo.io/functions/union/.
Even if the documentation says there's an "union" function that computes the union of two sets, looking at Hugo's source code, there's no such function.
Use "intersect" instead. It's more appropriate, too, because it will eliminate duplicates in the two lists, if there are any.
Signed-off-by: Marcelo E. Magallon marcelo.magallon@gmail.com