mirror-sync/mirror-file-generator/templates/default/repo.html
James Coleman 782c24e9f5 Add dark mode support with logo_dark and repo_icon_dark variants
Introduces logo_dark and repo_icon_dark config options that serve alternate
images to dark-OS browsers via HTML <picture> elements, and adds a CSS
prefers-color-scheme dark block to the default header template.
2026-06-05 12:30:09 -05:00

16 lines
538 B
HTML

<a href="${repo_path}">
<div class="repo">
<picture>
${repo_icon_dark_source}
<img class="repo-icon" src="${repo_icon}" alt="${repo_title}" />
</picture>
<div class="repo-body">
<div class="repo-title">${repo_title}</div>
<div class="repo-size">Size: ${repo_size}</div>
<div class="repo-sync">Last Sync: ${repo_sync_time}</div>
<div class="repo-desc">
${repo_description}
</div>
</div>
</div>
</a>