{"id":18584288,"url":"https://github.com/brob/eleventy-plugin-podcast-tools","last_synced_at":"2025-04-10T12:30:32.410Z","repository":{"id":40428345,"uuid":"229180572","full_name":"brob/eleventy-plugin-podcast-tools","owner":"brob","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T17:56:49.000Z","size":50057,"stargazers_count":9,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T21:21:58.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/brob.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":"2019-12-20T03:09:47.000Z","updated_at":"2024-01-02T10:57:12.000Z","dependencies_parsed_at":"2024-11-07T00:35:26.573Z","dependency_job_id":"4b7c0558-419d-40e0-bf7a-33c4ef11f942","html_url":"https://github.com/brob/eleventy-plugin-podcast-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Feleventy-plugin-podcast-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Feleventy-plugin-podcast-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Feleventy-plugin-podcast-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Feleventy-plugin-podcast-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brob","download_url":"https://codeload.github.com/brob/eleventy-plugin-podcast-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217123,"owners_count":21066633,"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":[],"created_at":"2024-11-07T00:27:00.236Z","updated_at":"2025-04-10T12:30:32.099Z","avatar_url":"https://github.com/brob.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 11ty Plugin Podcast Tools\n\nThis is a (potentially) quick and dirty plugin that will give you filters for using 11ty to host your podcast.\n\n## Installation\n\n`npm install eleventy-plugin-podcast-tools`\n\nAdd the plugin to your 11ty configuration file (probably `.eleventy.js`).\n\n```js\nconst podcastTools = require('eleventy-plugin-podcast-tools');\n\nmodule.exports = function(eleventyConfig) {\n    eleventyConfig.addPlugin(podcastTools);\n\n    ...\n}\n```\n\nUse the filters below to get the information you need from your files.\n\n## Filter: Duration\n\nThe Duration filter currently only works in Nunjucks (it's a Nunjucks async filter).\n\n### Syntax\n\nIn a Nunjucks template, you can use the following filter on a variable or expression that contains a path to an audio file in your project.\n\n```html\n{{ path_to_file | duration }}\n```\n\nThis will return the duration of your audio file in the following (iTunes approved?) syntax: `HH:MM:SS` i.e. `01:05:22`\n\n## Filter: File Size\n\nThis filter (universal) will return the file size of your audio file in (iTunes approved?) bytes.\n\n```html\n{{ path_to_file | filesize }}\n```\n\n## Feedback\n\nThis was quick and dirty based on this twitter thread. If you have feedback, requests, etc. I'm all ears. If you have ideas for improving, I'll 100% accept pull requests of help.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Feleventy-plugin-podcast-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrob%2Feleventy-plugin-podcast-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Feleventy-plugin-podcast-tools/lists"}