11 lines
267 B
HTML
11 lines
267 B
HTML
{{ define "main" }}
|
|
{{ if eq .Type "post" }}
|
|
{{- partial "post.html" . -}}
|
|
{{- partial "toc.html" . -}}
|
|
{{ end }}
|
|
|
|
{{ if eq .Type "page" }}
|
|
{{- partial "page.html" . -}}
|
|
{{- partial "toc.html" . -}}
|
|
{{ end }}
|
|
{{ end }}
|