Change singles to page

This commit is contained in:
Yash Mehrotra
2021-08-02 00:00:51 +05:30
parent 1335568c1f
commit 20dcd274c1
3 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
{{ if eq .Type "singles" }} {{ if eq .Type "page" }}
{{- partial "single.html" . -}} {{- partial "page.html" . -}}
{{ else }} {{ else }}
{{- partial "list.html" . -}} {{- partial "list.html" . -}}
{{ end }} {{ end }}

View File

@@ -3,7 +3,7 @@
{{- partial "post.html" . -}} {{- partial "post.html" . -}}
{{ end }} {{ end }}
{{ if eq .Type "singles" }} {{ if eq .Type "page" }}
{{- partial "single.html" . -}} {{- partial "page.html" . -}}
{{ end }} {{ end }}
{{ end }} {{ end }}