diff --git a/content/_index.md b/content/_index.md index 95d0241..a9dd5d7 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,6 +1,7 @@ --- title: "🍲 Based Cooking 🍳" description: 'The fast-loading recipe site with cooking only and no ads.' +layout: single --- ## What do you want to cook? diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 53f64c5..a6174d7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,9 +1,8 @@ -{{ partial "header.html" . }} - -

{{ .Title }}

- +{{ define "title" }} +{{ .Title }} +{{ end }} +{{ define "main" }} {{ .Content }} - {{ $author := index .Site.Data.authors (.Params.author | default "default") }} {{- if $author -}}

Contributor(s)

@@ -29,5 +28,4 @@ {{- end -}} - -{{ partial "footer.html" . }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index 3772f32..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ partial "header.html" . -}} -

{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}

-
-{{ .Content }} -
-{{ partial "footer.html" . }}