Skip to content

Commit ae8d992

Browse files
committed
add custom footer to baseof.hrtml
1 parent 32487cc commit ae8d992

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

layouts/_default/baseof.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ .Site.LanguageCode }}"{{ if and .Site.Params.enableDarkMode .Site.Params.overrideSystemPreferences }}{{ with .Site.Params.defaultTheme | default "light" }} data-theme="{{ . }}"{{ end }}{{ end }}>
3+
{{ partial "head.html" . }}
4+
<body>
5+
<div class="container">
6+
{{ partial "header.html" . }}
7+
{{ if ne .Site.Params.headerLayout "flex" }}
8+
{{ if or (and .IsHome .Site.Params.displayMenuInHome) (and (not .IsHome) .Site.Params.enableMenu) }}
9+
{{ partial "menu.html" . }}
10+
{{ end }}
11+
{{ partial "components/multilingual.html" . }}
12+
{{ partial "components/dark-mode.html" . }}
13+
{{ end }}
14+
{{ block "main" . }}{{ end }}
15+
{{ partial "components/back-to-top.html" . }}
16+
{{ partial "custom/footer.html" . }}
17+
</div>
18+
{{ partial "components/service-worker.html" . }}
19+
{{ partial "third-party/script.html" . }}
20+
</body>
21+
</html>

layouts/partials/custom/footer.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151

5252
}
5353

54+
.footer-title {
55+
margin: 0;
56+
text-align: left;
57+
}
5458

5559
@media (max-width: 768px) {
5660
.footer-container {

0 commit comments

Comments
 (0)