mirror of
https://gitlab.com/Cian-H/my_blog.git
synced 2025-12-22 14:21:59 +00:00
55 lines
1.6 KiB
HTML
55 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode }}">
|
|
|
|
<head>
|
|
<title>
|
|
{{ i18n "home" }} | {{ .Site.Params.author.name }}
|
|
</title>
|
|
|
|
{{ partial "head.html" . }}
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="flexWrapper">
|
|
{{ partial "header.html" . }}
|
|
|
|
<div class="content vertical" style="justify-content: space-evenly">
|
|
<main class="main">
|
|
<div class="indexWrapper">
|
|
{{ if .Site.Params.author.avatarFirst }}
|
|
{{ partial "avatar.html" . }}
|
|
{{ end }}
|
|
<div>
|
|
<h1 class="indexHeader">{{ .Site.Params.author.name }}</h1>
|
|
</div>
|
|
{{ if not .Site.Params.author.avatarFirst }}
|
|
{{ partial "avatar.html" . }}
|
|
{{ end }}
|
|
{{ if isset .Site.Params "social" }}
|
|
{{ partial "social.html" . }}
|
|
{{ end }}
|
|
</div>
|
|
</main>
|
|
<div class="recent-posts">
|
|
<h2>Recent Posts</h2>
|
|
<ul>
|
|
{{ range first 5 (where .Site.RegularPages "Section" "posts") }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
<span class="date">{{ .Date.Format "January 2, 2006" }}</span>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{{ partial "footer.html" . }}
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|