1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00
Bjørn Erik Pedersen b3daa1f4bf hugolib: Fix .IsTranslated with identical filenames
This commit refines the key used to map translations:

* Use `translationKey` set in front matter
* Fall back to path + base filename (i.e. the filename without extension and language code)

Note that the Page Kinde will be prepended to both cases above. It does not make sense to have a section as translation for the home page.

Fixes #2699
2017-11-17 19:46:32 +01:00
..
2017-11-17 11:01:46 +01:00
2017-08-07 20:19:24 +02:00
2017-11-11 09:39:43 +01:00
2017-09-07 16:21:33 +02:00
2017-07-04 09:11:49 +02:00
2017-08-17 09:43:39 +02:00
2017-11-17 11:01:46 +01:00