diff options
| author | Mitja Felicijan <m@mitjafelicijan.com> | 2023-07-08 23:25:41 +0200 |
|---|---|---|
| committer | Mitja Felicijan <m@mitjafelicijan.com> | 2023-07-08 23:25:41 +0200 |
| commit | cd6644ea4ddc78597934ab0ef5ba50e3c3daa927 (patch) | |
| tree | 03de331a8db6386dfd6fa75155bfbcea6b4feaf3 /templates/post.html | |
| parent | 84ed124529ffeee1590295b8de3a8faf51848680 (diff) | |
| download | mitjafelicijan.com-cd6644ea4ddc78597934ab0ef5ba50e3c3daa927.tar.gz | |
Moved to a simpler SSG
Diffstat (limited to 'templates/post.html')
| -rw-r--r-- | templates/post.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..28ffad2 --- /dev/null +++ b/templates/post.html | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | {{ template "base.html" . }} | ||
| 2 | |||
| 3 | {{ define "title" }}{{ .Page.Title }}{{ end }} | ||
| 4 | {{ define "description" }}{{ .Page.Summary }}{{ end }} | ||
| 5 | |||
| 6 | {{ define "content" }} | ||
| 7 | <div> | ||
| 8 | <h1>{{ .Page.Title }}</h1> | ||
| 9 | <p>{{ .Page.Created.Format "Jan 2, 2006" }}</p> | ||
| 10 | <div> | ||
| 11 | {{ .Page.HTML }} | ||
| 12 | </div> | ||
| 13 | </div> | ||
| 14 | {{ end }} | ||
