mirror of
https://github.com/go-i2p/go-gh-page.git
synced 2025-07-17 13:54:40 -04:00
102 lines
2.9 KiB
HTML
102 lines
2.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{.PageTitle}}</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<nav class="nav-sidebar">
|
|
<div class="repo-info">
|
|
<h2>
|
|
<a href="index.html">{{.RepoFullName}}</a>
|
|
</h2>
|
|
<div class="repo-meta">
|
|
{{if .CommitCount}}📝 {{.CommitCount}} commits{{end}}
|
|
{{if .License}} • 📜 {{.License}}{{end}}
|
|
</div>
|
|
</div>
|
|
|
|
<ul class="nav-links">
|
|
<li><a href="index.html" class="active">Repository Overview</a></li>
|
|
|
|
{{if .DocsPages}}
|
|
<div class="nav-section-title">Documentation:</div>
|
|
{{range .DocsPages}}
|
|
<li><a href="{{.Path}}">{{.Title}}</a></li>
|
|
{{end}}
|
|
{{end}}
|
|
</ul>
|
|
|
|
<div class="nav-footer">
|
|
<a href="{{.RepoURL}}" target="_blank">View on GitHub</a>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="main-content">
|
|
<header class="repo-header">
|
|
<h1>{{.RepoFullName}}</h1>
|
|
<div class="repo-description">{{.Description}}</div>
|
|
|
|
<div class="repo-stats">
|
|
{{if .CommitCount}}
|
|
<div class="repo-stat">
|
|
<span>📝</span> <span>{{.CommitCount}} commits</span>
|
|
</div>
|
|
{{end}}
|
|
|
|
<div class="repo-stat">
|
|
<span>📅</span> <span>Last updated: {{.LastUpdate}}</span>
|
|
</div>
|
|
|
|
{{if .License}}
|
|
<div class="repo-stat">
|
|
<span>📜</span> <span>{{.License}}</span>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</header>
|
|
|
|
<main>
|
|
{{if .ReadmeHTML}}
|
|
<section id="readme" class="repo-section">
|
|
<h2>README</h2>
|
|
<div class="readme-content">
|
|
{{.ReadmeHTML}}
|
|
</div>
|
|
</section>
|
|
{{end}}
|
|
|
|
{{if .Contributors}}
|
|
<section id="contributors" class="repo-section">
|
|
<h2>Top Contributors</h2>
|
|
<div class="contributors-list">
|
|
{{range .Contributors}}
|
|
<div class="contributor-item">
|
|
<!-- Use first letter as avatar if no image available -->
|
|
<div class="contributor-avatar">
|
|
{{if .Name}}{{slice .Name 0 1}}{{else}}?{{end}}
|
|
</div>
|
|
<div class="contributor-info">
|
|
<div class="contributor-name">
|
|
{{.Name}}
|
|
</div>
|
|
<div class="contributor-commits">
|
|
{{.Commits}} commits
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
<a href="{{.RepoURL}}/graphs/contributors" target="_blank">View all contributors on GitHub →</a>
|
|
</section>
|
|
{{end}}
|
|
</main>
|
|
|
|
<footer class="page-footer">
|
|
<p>Generated on {{.GeneratedAt}} • <a href="{{.RepoURL}}" target="_blank">View on GitHub</a></p>
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html> |