🐛 Fix main content not growing to window height

Fixes #201
This commit is contained in:
James Panther
2022-05-25 13:57:24 +10:00
parent 586eb4e820
commit 3b3d78afaf
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased] ## [Unreleased]
### Fixed
- Main content area doesn't grow to window height ([#201](https://github.com/jpanther/congo/issues/201))
## [2.2.0] - 2022-05-09 ## [2.2.0] - 2022-05-09
### Added ### Added
+2 -2
View File
@@ -26,7 +26,7 @@
> >
</div> </div>
{{- partial "header.html" . -}} {{- partial "header.html" . -}}
<div class="relative"> <div class="relative flex flex-col grow">
<main id="main-content" class="grow"> <main id="main-content" class="grow">
{{- block "main" . }}{{- end }} {{- block "main" . }}{{- end }}
{{ if and (.Site.Params.showScrollToTop | default true) (gt .WordCount 200) }} {{ if and (.Site.Params.showScrollToTop | default true) (gt .WordCount 200) }}
@@ -44,10 +44,10 @@
</div> </div>
{{ end }} {{ end }}
</main> </main>
{{- partial "footer.html" . -}}
{{ if .Site.Params.enableSearch | default false }} {{ if .Site.Params.enableSearch | default false }}
{{- partial "search.html" . -}} {{- partial "search.html" . -}}
{{ end }} {{ end }}
{{- partial "footer.html" . -}}
</div> </div>
</body> </body>
</html> </html>