Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ title = 'Data Science South'
[params]
mainSections = ["lessons"]
math = true
[params.donations]
enabled = true
stripe_link = "https://buy.stripe.com/5kQ8wO0Zp2IG3Dp0fWcMM00"
1 change: 1 addition & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
>
Competencies
</a>
{{ partial "donate-button.html" . }}
<a
href="https://github.com/ADGEfficiency/data-science-south"
target="_blank"
Expand Down
10 changes: 10 additions & 0 deletions layouts/partials/donate-button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ if .Site.Params.donations.enabled }}
<a
href="{{ .Site.Params.donations.stripe_link }}"
target="_blank"
rel="noopener noreferrer"
class="text-white font-semibold px-4 py-2 rounded-lg bg-pink-600 hover:bg-pink-700 hover:text-pink-50 hover:-translate-y-1 hover:shadow-lg transition-all duration-200"
>
❤️ Donate
</a>
{{ end }}