{"id":21500820,"url":"https://github.com/mcanouil/quarto-badge","last_synced_at":"2025-06-28T17:07:13.625Z","repository":{"id":186511253,"uuid":"656310478","full_name":"mcanouil/quarto-badge","owner":"mcanouil","description":"Badge is an extension for Quarto to provide a shortcode to display software version or anything as a badge.","archived":false,"fork":false,"pushed_at":"2025-05-25T12:30:44.000Z","size":47,"stargazers_count":13,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-25T12:33:41.926Z","etag":null,"topics":["quarto","quarto-extension","quarto-pub","quarto-shortcode","quartopub"],"latest_commit_sha":null,"homepage":"http://m.canouil.dev/quarto-badge/","language":"Lua","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/mcanouil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"mcanouil","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-06-20T17:26:57.000Z","updated_at":"2025-05-25T12:30:47.000Z","dependencies_parsed_at":"2025-05-09T19:44:33.483Z","dependency_job_id":null,"html_url":"https://github.com/mcanouil/quarto-badge","commit_stats":null,"previous_names":["mcanouil/quarto-version-badge","mcanouil/quarto-badge"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/mcanouil/quarto-badge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcanouil","download_url":"https://codeload.github.com/mcanouil/quarto-badge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-badge/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262465750,"owners_count":23315638,"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":["quarto","quarto-extension","quarto-pub","quarto-shortcode","quartopub"],"created_at":"2024-11-23T17:47:48.764Z","updated_at":"2025-06-28T17:07:13.603Z","avatar_url":"https://github.com/mcanouil.png","language":"Lua","funding_links":["https://github.com/sponsors/mcanouil"],"categories":[],"sub_categories":[],"readme":"# Badge Extension For Quarto\n\n`badge` is an extension for Quarto to provide a shortcode to display software version.\n\n## Installing\n\n```bash\nquarto add mcanouil/quarto-badge\n```\n\nThis will install the extension under the `_extensions` subdirectory.\nIf you're using version control, you will want to check in this directory.\n\n## Using\n\nThe shortcode `{{\u003c badge \u003ckey\u003e \u003cvalue\u003e \u003e}}` will display a badge with the given version number.\n\nYou can provide any number of badges by specifying an array under the `badge` key in the `_quarto.yml` file or in the front matter of the document.\n\n```yaml\nbadge:\n  - key: current\n    colour: firebrick\n  - key: future\n    class: bg-danger\n    href: https://github.com/mcanouil/quarto-version-badge\n  - key: old\n    class: bg-warning\n    href: https://github.com/mcanouil/quarto-version-badge/releases/tag/{{value}}\n```\n\n- `{{value}}` will be replaced by the value of the badge.\n- You can use `colour` or `color` to specify the colour of the badge.\n- You can also use `class` to specify a class to add to the badge.\n\n```markdown\n{{\u003c badge current 1.0.0 \u003e}}\n{{\u003c badge future 2.0.0 \u003e}}\n{{\u003c badge old 0.1.0 \u003e}}\n```\n\n\u003e [!CAUTION]\n\u003e The `href` attribute is optional and currently breaks the table of contents links when used in headers.\n\n## Example\n\nHere is the source code for a minimal example: [example.qmd](example.qmd).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcanouil%2Fquarto-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcanouil%2Fquarto-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcanouil%2Fquarto-badge/lists"}