diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2021-04-06 13:40:12 -0300 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2021-04-06 13:40:12 -0300 |
commit | 1d0a1a3a087b46422fdcb0fa7ca111274d86c87b (patch) | |
tree | d2e9e9e32d2cb4dcdddfbce3c734c91deac5001e | |
parent | ab6f024f98195a55e5f6b8c7264e7a7eb918226e (diff) |
fix broken linkPathname-style links
-rwxr-xr-x | upd8.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js index 123dbcc5..e87eb231 100755 --- a/upd8.js +++ b/upd8.js @@ -290,7 +290,7 @@ const linkDirectory = (key, {expose = null, attr = null, ...conf} = {}) => ...conf }); -const linkPathname = (key, conf) => linkHelper((pathname, {to}) => to(key, pathname), conf); +const linkPathname = (key, conf) => linkHelper(({directory: pathname}, {to}) => to(key, pathname), conf); const linkIndex = (key, conf) => linkHelper((_, {to}) => to('localized.' + key), conf); const link = { |