From 0a4b5f801ed6797d2f06bfdd1e79f5978ab3f362 Mon Sep 17 00:00:00 2001
From: Karl <kc0bfv@gmail.com>
Date: Sun, 08 Dec 2019 18:16:39 +0000
Subject: [PATCH] Set maximum width of 1024px for content

---
 layouts/_default/baseof.html |   34 ++++++++++++++++++----------------
 static/css/myboth.css        |    1 +
 2 files changed, 19 insertions(+), 16 deletions(-)

diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index ead1c49..0a4167d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -2,26 +2,28 @@
 <html lang="{{ .Site.LanguageCode }}">
     <head>{{- partial "head.html" . -}}</head>
     <body>
-        <div id="header" class="top-section">
-            {{- partial "body_header.html" . -}}
-        </div>
-        <div id="content" class="top-section">
-            <div class="container-fluid">
-                <div class="row">
-                    <div class="col col-12 col-sm-8 col-lg-9">
-                        <div class="row">
-                            {{- block "main" . }}{{- end }}
+        <div id="full_body">
+            <div id="header" class="top-section">
+                {{- partial "body_header.html" . -}}
+            </div>
+            <div id="content" class="top-section">
+                <div class="container-fluid">
+                    <div class="row">
+                        <div class="col col-12 col-sm-8 col-lg-9">
+                            <div class="row">
+                                {{- block "main" . }}{{- end }}
+                            </div>
                         </div>
-                    </div>
-                    <div class="col col-8 offset-2 col-sm-4 offset-sm-0 col-lg-3">
-                        {{- partial "navbar" . -}}
+                        <div class="col col-8 offset-2 col-sm-4 offset-sm-0 col-lg-3">
+                            {{- partial "navbar" . -}}
+                        </div>
                     </div>
                 </div>
             </div>
+            <div id="footer" class="top-section">
+                {{- partial "body_footer.html" . -}}
+            </div>
+            {{- partial "foot.html" . -}}
         </div>
-        <div id="footer" class="top-section">
-            {{- partial "body_footer.html" . -}}
-        </div>
-        {{- partial "foot.html" . -}}
     </body>
 </html>
diff --git a/static/css/myboth.css b/static/css/myboth.css
index d71a9f9..1603bef 100644
--- a/static/css/myboth.css
+++ b/static/css/myboth.css
@@ -2,6 +2,7 @@
 #headerimg { width: 100%; }
 #footer { font-size: .8em; }
 #sideimage { width: 100%; }
+#full_body { max-width: 1024px; margin: auto; }
 
 /* Make my own styles up */
 .top-section { margin: 20px; }

--
Gitblit v1.10.0