Hugo theme (#1)
This commit is contained in:
parent
693a189ffa
commit
dbde1a1ef9
25 changed files with 283 additions and 404 deletions
18
layouts/index.html
Normal file
18
layouts/index.html
Normal file
|
|
@ -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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue