diff options
author | William Carroll <wpcarro@gmail.com> | 2019-11-19T18·36-0300 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-11-19T18·36-0300 |
commit | dbde1a1ef9865dfb180c9e42e1cc696dfd19554c (patch) | |
tree | f32056d54e7aa9f52e9ed5376850e524f541254f /layouts/index.html | |
parent | 693a189ffaacebd82646f1d03f0577c555f26cb3 (diff) |
Hugo theme (#1)
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 000000000000..4869c466b613 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,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 }} |