-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow hiding "powered by" link (#12)
* add HidePoweredBy to config * hide powered by link based on config flag * fix background not stretching full height * update apitypes * fix comment
- Loading branch information
1 parent
ff52735
commit 1825ece
Showing
25 changed files
with
334 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
package components | ||
|
||
templ Footer() { | ||
<footer class="border-t border-t-gray-200 dark:border-t-gray-800 mt-10 pt-10 pb-20"> | ||
<div class="text-caption px-4 sm:px-0"> | ||
Powered by <a href="https://openchangelog.com" target="_blank">Openchangelog</a> | ||
</div> | ||
</footer> | ||
} | ||
type FooterArgs struct { | ||
HidePoweredBy bool | ||
} | ||
|
||
templ Footer(args FooterArgs) { | ||
<footer class="border-t border-t-gray-200 dark:border-t-gray-800 mt-10 pt-10 pb-20"> | ||
if !args.HidePoweredBy { | ||
<div class="text-caption px-4 sm:px-0"> | ||
Powered by <a href="https://openchangelog.com" target="_blank">Openchangelog</a> | ||
</div> | ||
} | ||
</footer> | ||
} |
Oops, something went wrong.