{{template "base/head" .}}
<div class="page-content pages-landing pages-simple">
	{{template "pages/header" .}}

	<main class="pages-main">
		{{if .Config.Hero.Title}}
		<section class="pages-hero">
			<div class="container">
				{{if .Config.Branding.Logo}}
				<img src="{{.Config.Branding.Logo}}" alt="{{.Repository.Name}}" class="pages-logo">
				{{end}}
				<h1 class="pages-title">{{.Config.Hero.Title}}</h1>
				{{if .Config.Hero.Tagline}}
				<p class="pages-tagline">{{.Config.Hero.Tagline}}</p>
				{{end}}
				<div class="pages-cta">
					{{if .Config.Hero.CTAPrimary.Text}}
					<a href="{{.Config.Hero.CTAPrimary.Link}}" class="ui primary button">
						{{.Config.Hero.CTAPrimary.Text}}
					</a>
					{{end}}
					{{if .Config.Hero.CTASecondary.Text}}
					<a href="{{.Config.Hero.CTASecondary.Link}}" class="ui button {{if eq .Config.Hero.CTASecondary.Style "outline"}}basic{{end}}">
						{{.Config.Hero.CTASecondary.Text}}
					</a>
					{{end}}
				</div>
			</div>
		</section>
		{{end}}

		{{if .ReadmeContent}}
		<section class="pages-readme">
			<div class="container">
				<div class="markup">
					{{.ReadmeContent}}
				</div>
			</div>
		</section>
		{{end}}

		<section class="pages-stats">
			<div class="container">
				<div class="pages-stats-grid">
					<div class="pages-stat">
						<span class="pages-stat-icon">{{svg "octicon-star"}}</span>
						<span class="pages-stat-value">{{.NumStars}}</span>
						<span class="pages-stat-label">{{ctx.Locale.Tr "repo.stars"}}</span>
					</div>
					<div class="pages-stat">
						<span class="pages-stat-icon">{{svg "octicon-repo-forked"}}</span>
						<span class="pages-stat-value">{{.NumForks}}</span>
						<span class="pages-stat-label">{{ctx.Locale.Tr "repo.forks"}}</span>
					</div>
					{{if .Repository.PrimaryLanguage}}
					<div class="pages-stat">
						<span class="pages-stat-icon language-color" style="background-color: {{.Repository.PrimaryLanguage.Color}}"></span>
						<span class="pages-stat-value">{{.Repository.PrimaryLanguage.Language}}</span>
						<span class="pages-stat-label">{{ctx.Locale.Tr "repo.language"}}</span>
					</div>
					{{end}}
				</div>
			</div>
		</section>
	</main>

	{{template "pages/footer" .}}
</div>
{{template "base/footer" .}}
