0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-10 19:44:33 +01:00

improve template docs

This commit is contained in:
silverwind 2025-12-05 02:36:14 +01:00
parent efdc304c96
commit fd5cc7dfca
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443

View File

@ -1,8 +1,8 @@
{{/* Template Attributes:
* Repo: The repo
* ShowRepoAvatar: Enable repo avatar when `true`
* ShowRepoOwnerAvatar: Enable owner avatars when `true`
* Size: Icon size in pixels
* Repo (string, required): The repo
* Size (int, required): Icon size in pixels
* ShowRepoAvatar (boolean, optional): Render the repo's avatar, if one is set
* ShowRepoOwnerAvatar (boolean, optional): Render the repo's owner avatar
*
* Note: Keep the icon logic in sync with web_src/js/utils/mappings.ts
*/}}