Add single page layout, and display recent posts
This commit is contained in:
parent
d1ad723a22
commit
fdaa87e1ea
|
@ -1,4 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Daniel's Blog
|
title: Daniel's Blog
|
||||||
---
|
---
|
||||||
This is the index.
|
## Hello!
|
||||||
|
Welcome to my blog. Here, I write various posts, usually on the topics of
|
||||||
|
functional programming, compiler development, programming language theory, and occasionally video games. I hope you find something useful here!
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<h2>{{ .Title }}</h2>
|
||||||
|
{{ .Content }}
|
||||||
|
{{ end }}
|
|
@ -1,3 +1,10 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
|
Recent posts:
|
||||||
|
<ul>
|
||||||
|
{{ range first 10 (where (where .Site.Pages.ByDate "Section" "blog") ".Kind" "!=" "section") }}
|
||||||
|
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user