{"id":25456199,"url":"https://github.com/deuill/hugo-module-listenbrainz","last_synced_at":"2025-10-06T22:23:43.203Z","repository":{"id":277979554,"uuid":"930588043","full_name":"deuill/hugo-module-listenbrainz","owner":"deuill","description":"A Hugo module for including a 'Now Playing' widget on your site, powered by ListenBrainz","archived":false,"fork":false,"pushed_at":"2025-02-10T22:01:23.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-05-09T05:10:13.228Z","etag":null,"topics":["hugo","hugo-module","listenbrainz"],"latest_commit_sha":null,"homepage":"https://go.deuill.org/hugo-module-listenbrainz","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deuill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-10T21:55:34.000Z","updated_at":"2025-04-20T10:21:29.000Z","dependencies_parsed_at":"2025-02-17T11:01:36.403Z","dependency_job_id":null,"html_url":"https://github.com/deuill/hugo-module-listenbrainz","commit_stats":null,"previous_names":["deuill/hugo-module-listenbrainz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deuill%2Fhugo-module-listenbrainz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deuill%2Fhugo-module-listenbrainz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deuill%2Fhugo-module-listenbrainz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deuill%2Fhugo-module-listenbrainz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deuill","download_url":"https://codeload.github.com/deuill/hugo-module-listenbrainz/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254567945,"owners_count":22092869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hugo","hugo-module","listenbrainz"],"created_at":"2025-02-18T01:29:20.596Z","updated_at":"2025-10-06T22:23:43.140Z","avatar_url":"https://github.com/deuill.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ListenBrainz Module for Hugo\n\nA ready-to use module for Hugo, providing a layout and shortcode for adding a \"Now Listening\" widget\npowered by [ListenBrainz][listenbrainz].\n\n## Installation\n\nFirstly, make sure to initialize the [Hugo module system][hugo-modules] for your site, if you haven't done so\nalready:\n\n```sh\nhugo mod init \u003crepository-url\u003e\n```\n\nThen, add the ListenBrainz module to your site configuration:\n\n```yaml\nmodule:\n  imports:\n    - path: go.deuill.org/hugo-module-listenbrainz\n```\n\nRemember to keep this and other modules on your site updated with `hugo mod get -u`.\n\n## Configuration\n\nBy default, the ListenBrainz module expects to be configured in the site-wide configuration file,\ne.g. for `hugo.yaml`:\n\n```toml\nparams:\n  listenBrainz:\n    username: example\n```\n\nWhich would fetch listening data for [listenbrainz.org/user/example][listenbrainz-example]. It is,\nhowever, also possible to pass different usernames in both layout inclusions and shortcode\ninvocations; see the section below for more information.\n\n## Use\n\nThe ListenBrainz module can be used as either a layout:\n\n```html\n{{- with .Site.Params.listenBrainz.username}}\n    {{partial \"listenbrainz.html\" .}}\n{{- end}}\n```\n\nOr a short-code:\n\n```markdown\n# Example\n\nHere's what I'm listening to right now:\n\n{{\u003c listenbrainz \u003e}}\n\nAnd here's what this other user is listening to:\n\n{{\u003c listenbrainz username=\"other\" \u003e}}\n```\n\nThe short-code example above shows how a non-default username might also be specified; site-wide\nconfiguration will be used if no specific username is given.\n\n## License\n\nAll code in this repository is covered by the terms of the MIT License, the full text of which can be found in the LICENSE file.\n\n[hugo-modules]: https://gohugo.io/hugo-modules/use-modules/#use-a-module-for-a-theme\n[listenbrainz]: https://listenbrainz.org\n[listenbrainz-example]: https://listenbrainz.org/user/example/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeuill%2Fhugo-module-listenbrainz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeuill%2Fhugo-module-listenbrainz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeuill%2Fhugo-module-listenbrainz/lists"}