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

resources: Create a ResourceFinder interface #9063

Merged
merged 1 commit into from
Apr 5, 2022

Commits on Apr 5, 2022

  1. resources: Create a common ResourceFinder interface

    And make both .Resources and resources implement it.
    
    This gets us 2 new methods/functions, so you can now also do:
    
    * .Resources.Get
    * resources.ByType
    
    Note that GetRemote is not covered by this interface, as that is only available as a global template function.
    
    Fixes gohugoio#8653
    bep committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    8adb8ca View commit details
    Browse the repository at this point in the history