HUGO

Disabling External Helpers

Is there a way to disable external helpers? Better yet, can these be disabled by default? I doubt even 5% of Hugo users make use of them. In addition they conflict with expected behavior in page bundles.

For example, consider the following code:

{{ printf "%#v" ($.Resources.GetMatch .filename) }}

Given a page resource with any filename ending in .org, .ad, rst or pdc, to name a few, above will print <nil> as it is unable to locate that resource even though it exists by name in the bundle.

If it doesn’t make sense to disable external helpers by default, please at least give us a workaround or a simple way to disable them.


This is a follow-up to an ealier question which resulted in a workaround requiring me to hack the default behavior of the hugo binary.

1 Like

Two pairs of eyes is better than one. Thanks, boss.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.