| | echo '<a href="?repo=' . urlencode($repo['safe_name']) . '" class="repo-card">'; |
| | echo '<h3>' . htmlspecialchars($repo['name']) . '</h3>'; |
| | - if ($main) echo '<p>Branch: ' . htmlspecialchars($main['name']) . '</p>'; |
| | + |
| | + $descFile = $repo['path'] . '/description'; |
| | + if (file_exists($descFile)) { |
| | + $description = trim(file_get_contents($descFile)); |
| | + if ($description !== '') { |
| | + echo '<p>' . htmlspecialchars($description) . '</p>'; |
| | + } |
| | + } |
| | + |
| | echo '<p>' . $stats['branches'] . ' branches, ' . $stats['tags'] . ' tags</p>'; |
| | |