summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-27 18:02:31 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-27 18:02:31 +0530
commitf009e561cccbed762aa4e49fdb4842a65c91c76a (patch)
tree4a2398f58cd2eef9c98cd1f1e09d30442ac6a087
parent6146ded8446baa3d3c4da01ad2f0df35f9142f76 (diff)
changed footer position on homepage
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/index.html10
-rw-r--r--static/css/home.css6
-rw-r--r--static/css/styles.css4
4 files changed, 17 insertions, 7 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index ad5c70f..9426b12 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -11,6 +11,8 @@
{{- block "main" . }}{{- end }}
</main>
- {{- partial "footer.html" . -}}
+ {{ if ne .Kind "home" }}
+ {{- partial "footer.html" . -}}
+ {{ end }}
</body>
</html>
diff --git a/layouts/index.html b/layouts/index.html
index 46e5188..8071971 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -16,9 +16,13 @@
</div>
</div>
- <div id="content">
- {{ .Content }}
- </div>
+ {{ .Content }}
+
+ <footer id="home-footer">
+ <div id="copyright">
+ {{ .Site.Copyright | safeHTML }}
+ </div>
+ </footer>
</div>
</div>
{{ end }}
diff --git a/static/css/home.css b/static/css/home.css
index a408685..1216ea4 100644
--- a/static/css/home.css
+++ b/static/css/home.css
@@ -17,7 +17,7 @@
}
#home #nav-wrapper {
- margin: 3rem 0;
+ margin: 1rem 0 3rem 0;
width: 100%;
display: flex;
flex-direction: row;
@@ -49,6 +49,10 @@
color: var(--home-fg);
}
+#home #home-footer {
+ margin-top: 3rem;
+}
+
@media only screen and (max-width: 1000px) {
#home-wrapper {
display: block;
diff --git a/static/css/styles.css b/static/css/styles.css
index cb3afb4..4ff894f 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -106,12 +106,12 @@ main:not(#site-home-page) {
color: var(--nav-selected-fg);
}
-footer {
+footer:not(#home-footer) {
max-width: 95%;
margin: auto;
}
-footer #copyright {
+footer:not(#home-footer) #copyright {
text-align: center;
line-height: 1.1;
}