about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-01-23 18:06:04 -0800
committerFranck Cuny <franck@fcuny.net>2022-01-23 18:06:04 -0800
commit5e8862e4b89a540ae35d359b55ee5385e7ddb8a2 (patch)
treed0d29f98c8f1533d56ea4582c213783a478c76ca
parentcss: change style for tables (diff)
downloadfcuny.net-5e8862e4b89a540ae35d359b55ee5385e7ddb8a2.tar.gz
layout: drop the div 'main'
The div 'main' is not needed, we are creating an element named 'named'
in the main block.
-rw-r--r--layouts/_default/baseof.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 3fd7011..0c72fb1 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -2,11 +2,9 @@
 <html lang="en">
   {{ partial "head.html" . }}
   <body>
-    <div class="main">
-      {{- partial "header.html" . -}}
-      <main>
-       {{ block "main" . }}{{ end }}
-      </main>
-    </div>
+    {{- partial "header.html" . -}}
+    <main>
+     {{ block "main" . }}{{ end }}
+    </main>
   </body>
 </html>