Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make default header dark #64

Merged
merged 2 commits into from
Dec 30, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
make default footer dark
  • Loading branch information
carlosgauci committed Dec 10, 2022
commit 70e41b8f18b9129e9089c43f2decc8fa275a7916
7 changes: 1 addition & 6 deletions themes/haystack/layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
{{/* Website Footer */}}

{{/* Default color */}}
{{ $theme := "light" }}
{{ $theme := "dark" }}

{{/* Get color from frontmatter if specified */}}
{{ with .Params.Footer }}
{{ $theme = . }}
{{ end }}

{{/* Set to dark on 404 page since there is no frontmatter */}}
{{ if eq .Page.Kind "404" }}
{{ $theme = "dark" }}
{{ end }}

<footer
class="footer{{ if eq $theme "dark" }} footer-dark{{ end }}"
>
Expand Down