From fdaa87e1ea5f5e612658e366e63c76c60ddacba4 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 2 Aug 2019 21:44:29 -0700 Subject: [PATCH] Add single page layout, and display recent posts --- content/_index.md | 4 +++- themes/vanilla/layouts/_default/single.html | 4 ++++ themes/vanilla/layouts/index.html | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/content/_index.md b/content/_index.md index 971e633..5adda84 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,4 +1,6 @@ --- 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! diff --git a/themes/vanilla/layouts/_default/single.html b/themes/vanilla/layouts/_default/single.html index e69de29..e22c3a1 100644 --- a/themes/vanilla/layouts/_default/single.html +++ b/themes/vanilla/layouts/_default/single.html @@ -0,0 +1,4 @@ +{{ define "main" }} +

{{ .Title }}

+{{ .Content }} +{{ end }} diff --git a/themes/vanilla/layouts/index.html b/themes/vanilla/layouts/index.html index 9983b08..08554e6 100644 --- a/themes/vanilla/layouts/index.html +++ b/themes/vanilla/layouts/index.html @@ -1,3 +1,10 @@ {{ define "main" }} {{ .Content }} + +Recent posts: + {{ end }}