From 1ba03008e204b05c1acc2d480a9abac438fb8d31 Mon Sep 17 00:00:00 2001 From: f-dinucci Date: Mon, 30 May 2022 22:48:06 +0200 Subject: [PATCH] refactor[index]: partials are now loaded by baseof, for all pages Due to previous commits, now the partials are being loaded for all the pages through baseof.html, so it is not necessary to load them in the index (this would result in double-loading) --- layouts/index.html | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 4931c8a..ba6cda2 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,12 +1,3 @@ - - - - {{ partial "header.html" . }} - {{ $.Site.Title }} - - - {{ partial "navbar.html" . }} +{{ define "main" }} {{ partial "home.html" . }} - {{ partial "footer.html" . }} - - +{{ end }}