Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this functional? #3

Open
ericdfields opened this issue Aug 26, 2021 · 0 comments
Open

Is this functional? #3

ericdfields opened this issue Aug 26, 2021 · 0 comments

Comments

@ericdfields
Copy link

I added the bare bones to config, trying to get this to work:

[[module]]
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-heroicons"

And then using your example in my template:

{{ $icon := resources.Get "svg/heroicons/outline/search.svg" }} 
{{ $icon.Content | safeHTML }}

resulted in the following error:

Error: Error building site: failed to render pages: render of "home" failed: "/Users/ericbrookfield/Development/quickstart/layouts/index.html:31:12": execute of template failed: template: index.html:31:12: executing "main" at <$icon.Content>: nil pointer evaluating resource.Resource.Content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant