Skip to content

Commit

Permalink
Add "Buy me Coffee" Integration (yousinix#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
rribeiro1 authored Mar 25, 2022
1 parent 3205aa1 commit b5fc4ae
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@

# Design Files
*.psd
*.ai
*.ai

# IntelliJ
.idea
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
<small id="attribution">
theme <a href="{{ theme_repo }}">{{ theme_name }}</a>
</small>

</footer>
4 changes: 3 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
{% include navbar.html %}
{{ content }}
</main>

{% include footer.html %}

{% include analytics.html %}
{% include scripts.html %}

{%- if site.buymeacoffee.enabled == true -%}
<script data-name="BMC-Widget" data-cfasync="false" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="{{ site.buymeacoffee.username }}" data-description="{{ site.buymeacoffee.description }}" data-message="{{ site.buymeacoffee.message }}" data-color="{{ site.buymeacoffee.color }}" data-position="Right" data-x_margin="16" data-y_margin="16"></script>
{%- endif -%}
</body>

</html>
2 changes: 1 addition & 1 deletion _sass/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
writing-mode: vertical-rl;
transform: rotate(180deg);
position: fixed;
bottom: 56px;
bottom: 120px;
right: 22px;
}
}
Expand Down
10 changes: 10 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ analytics:
tracking_id: your-google-tracking-id


### Buy me a coffee ###
# See https://www.buymeacoffee.com/
buymeacoffee:
enabled: false
username: your_username
color: "#007bff"
message: "Thank you for visiting." # Message to be displayed aside from the button for a few seconds.
description: "Support me on Buy me a coffee!"


### Defaults for collections ###
defaults:
- scope:
Expand Down
10 changes: 10 additions & 0 deletions test/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ analytics:
tracking_id: google-tracking-id


### Buy me a coffee ###
# See https://www.buymeacoffee.com/
buymeacoffee:
enabled: false
username: your_username
color: "#007bff"
message: "Thank you for visiting." # Message to be displayed aside from the button for a few seconds.
description: "Support me on Buy me a coffee!"


### Defaults for collections ###
defaults:
- scope:
Expand Down

0 comments on commit b5fc4ae

Please sign in to comment.