From 8a0783adfb8399cbde4b42782dfc182d9bf54aed Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Mon, 20 Jul 2020 20:32:07 +0530
Subject: [PATCH] new layout - create baseof - separate list, single
- header, footer
---
layouts/_default/baseof.html | 31 ++++++++++++++++++++++++
layouts/_default/list.html | 4 ++--
layouts/_default/single.html | 4 ++--
layouts/partials/footer.html | 21 ++++------------
layouts/partials/header.html | 46 +++++++++++++-----------------------
5 files changed, 56 insertions(+), 50 deletions(-)
create mode 100644 layouts/_default/baseof.html
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 00000000..4035dd6b
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,31 @@
+
+
+
+
+ {{- partial "head.html" . }}
+
+
+
+
+
+
+
+ {{- block "main" . }}
+ {{end }}
+
+
+
+ {{ $highlight := resources.Get "highlight.min.js" | minify }}
+
+
+
+
+
\ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 96863ba4..969f98b6 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,4 +1,4 @@
-{{- partial "header.html" . }}
+{{ define "main" }}
{{- $scope := .Site }}
@@ -39,4 +39,4 @@
{{- end }}
-{{- partial "footer.html" . }}
\ No newline at end of file
+{{ end }}{{/* end main */}}
\ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 08976000..842fa318 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,4 +1,4 @@
-{{- partial "header.html" . }}
+{{ define "main" }}
-{{- partial "footer.html" . }}
\ No newline at end of file
+{{ end }}{{/* end main */}}
\ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index c186c8f0..11cff658 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,16 +1,5 @@
-
-
-{{ $highlight := resources.Get "highlight.min.js" | minify }}
-
-
-