-
-
Notifications
You must be signed in to change notification settings - Fork 284
feat: support custom footer section #518
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
Changes from 5 commits
aea9235
0c2c148
756769d
71b2b11
797b485
869731e
aa557df
13e11d5
1a5a34b
e3d29ca
243f4f5
c36a1ef
1d9aded
d27087d
7ec5843
26ba81f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -327,6 +327,7 @@ | |
"hx-gap-1", | ||
"hx-gap-2", | ||
"hx-gap-4", | ||
"hx-gap-6", | ||
"hx-gap-x-1.5", | ||
"hx-gap-y-2", | ||
"hx-grid", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,14 +24,23 @@ | |
<hr class="dark:hx-border-neutral-800" /> | ||
{{- end -}} | ||
{{- end -}} | ||
<div | ||
class="{{ $footerWidth }} hx-mx-auto hx-flex hx-justify-center hx-py-12 hx-pl-[max(env(safe-area-inset-left),1.5rem)] hx-pr-[max(env(safe-area-inset-right),1.5rem)] hx-text-gray-600 dark:hx-text-gray-400 md:hx-justify-start" | ||
> | ||
<div class="hx-flex hx-w-full hx-flex-col hx-items-center sm:hx-items-start"> | ||
{{- if (.Site.Params.footer.displayPoweredBy | default true) }}<div class="hx-font-semibold">{{ template "theme-credit" $poweredBy }}</div>{{ end }} | ||
{{- if .Site.Params.footer.displayCopyright }}<div class="hx-mt-6 hx-text-xs">{{ $copyright | markdownify }}</div>{{ end }} | ||
|
||
{{- if .Site.Params.footer.customSection -}} | ||
<div | ||
class="{{ $footerWidth }} hx-pl-[max(env(safe-area-inset-left),0rem)] hx-pr-[max(env(safe-area-inset-right),0rem)] hx-text-gray-600 dark:hx-text-gray-400" | ||
> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer keep the left and right padding, e.g.
to make this section styling more consistent There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fair, but I will add a custom class so people can customize its style |
||
{{ partial "custom/footer.html" (dict "context" . "footerButtonColor" "hx-rounded-md hx-transition-colors hover:hx-bg-gray-100 hover:hx-text-gray-900 dark:hover:hx-bg-primary-100/5 dark:hover:hx-text-gray-50" ) }} | ||
</div> | ||
imfing marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<hr class="dark:hx-border-neutral-800" /> | ||
{{- end -}} | ||
<div | ||
class="{{ $footerWidth }} hx-mx-auto hx-flex hx-justify-center hx-py-12 hx-pl-[max(env(safe-area-inset-left),1.5rem)] hx-pr-[max(env(safe-area-inset-right),1.5rem)] hx-text-gray-600 dark:hx-text-gray-400 md:hx-justify-start" | ||
> | ||
<div class="hx-flex hx-w-full hx-flex-col hx-items-center sm:hx-items-start hx-gap-6"> | ||
{{- if (.Site.Params.footer.displayPoweredBy | default true) }}<div class="hx-font-semibold">{{ template "theme-credit" $poweredBy }}</div>{{ end }} | ||
{{- if .Site.Params.footer.displayCopyright }}<div class="hx-text-xs">{{ $copyright | markdownify }}</div>{{ end }} | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
|
||
{{- define "theme-credit" -}} | ||
|
Uh oh!
There was an error while loading. Please reload this page.