about summary refs log tree commit diff
path: root/website/blog/themes/tailwind/layouts/index.html
blob: 4869c466b6135462f723a28e66182e2603e9ff5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{{ define "heading" }}
{{ if .Site.Params.Avatar }}
<img class="hidden md:block w-20 rounded-full mr-6" src="{{ .Site.Params.Avatar | absURL }}" alt="{{ .Site.Params.Author }}">
{{ end }}

<div>
    <h1 class="text-4xl font-bold">{{ .Site.Title }}</h1>
    <p>{{ .Site.Params.tagline }}</p>
</div>
{{ end }}

{{ define "content" }}
<section class="mb-24">
    {{ range site.RegularPages.GroupByDate "2006" -}}
        {{ partial "posts.html" . }}
    {{ end }}
</section>
{{ end }}