Refactor site to new theme
Some checks failed
Build and Deploy Hugo / deploy (push) Failing after 20s
Some checks failed
Build and Deploy Hugo / deploy (push) Failing after 20s
This commit is contained in:
parent
1c5cdb3b97
commit
2519b96a86
16 changed files with 2590 additions and 83 deletions
19
layouts/index.html
Normal file
19
layouts/index.html
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{{ define "main" }}
|
||||
<content>
|
||||
{{ .Content }}
|
||||
|
||||
<h2>My most recent posts</h2>
|
||||
<ul class="blog-posts">
|
||||
{{ $max := default 3 .Site.Params.postsToShowOnIndex }}
|
||||
{{ $posts := where .Site.RegularPages "Section" "posts" }}
|
||||
{{ range first $max $posts.ByDate.Reverse }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
<p><a href="/posts/">All posts →</a></p>
|
||||
|
||||
</content>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue