Skip to content

Commit 9e0bbbe

Browse files
committed
Adding Buy Me a Coffee!
1 parent 3eaf292 commit 9e0bbbe

File tree

4 files changed

+52
-2
lines changed

4 files changed

+52
-2
lines changed

_layouts/default.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020

2121
<!-- CSS Styles -->
2222
<link href="/assets/css/style.css" rel="stylesheet">
23+
24+
{% if page.layout == 'post' %}
25+
<link href="https://fonts.googleapis.com/css?family=Cookie" rel="stylesheet">
26+
{% endif %}
2327
</head>
2428

2529
{% capture layout %}{% if page.layout %}layout-{{ page.layout }}{% endif %}{% endcapture %}
@@ -41,6 +45,11 @@
4145
</div><!-- .inner-wide -->
4246
</div><!-- .site-content -->
4347
</div><!-- .site -->
48+
{% if page.layout == 'post' %}
49+
<a class="bmc-button" target="_blank" href="https://www.buymeacoffee.com/agileobjects">
50+
<img src="https://cdn.buymeacoffee.com/buttons/bmc-new-btn-logo.svg" alt="Buy me a coffee"><span style="margin-left:5px;font-size:28px !important;">Buy me a coffee</span>
51+
</a>
52+
{% endif %}
4453
<!-- Javascript Assets -->
4554
<script src="/assets/js/ao.min.js"></script>
4655
{% if page.layout == 'post' %}

_layouts/post.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,4 @@ <h3 class="post-title"><a href="{{ page.next.url }}">{{ page.next.title }}</a></
8585
{% endif %}
8686
</section><!-- .read-next -->
8787
{% include tag-cloud.html %}
88-
8988
</main><!-- .site-main -->

_sass/_buy-me-a-coffee.scss

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
@import "_variables.scss";
2+
3+
.bmc-button img {
4+
border: none !important;
5+
box-shadow: none !important;
6+
height: 34px !important;
7+
margin-bottom: 1px !important;
8+
vertical-align: middle !important;
9+
width: 35px !important;
10+
}
11+
12+
.bmc-button {
13+
background-color: #FFFFFF !important;
14+
bottom: 2%;
15+
border: 1px solid transparent !important;
16+
border-radius: 5px !important;
17+
-webkit-box-shadow: 0px 1px 2px 2px rgba(190, 190, 190, 0.5) !important;
18+
box-shadow: 0px 1px 2px rgba(190, 190, 190, 0.5) !important;
19+
-webkit-box-sizing: border-box !important;
20+
box-sizing: border-box !important;
21+
color: #000000 !important;
22+
display: inline-flex !important;
23+
font-family: 'Cookie', cursive !important;
24+
font-size: 22px !important;
25+
height: 51px !important;
26+
letter-spacing: 0.6px !important;
27+
line-height: 35px !important;
28+
margin: 0 auto !important;
29+
padding: 7px 15px 7px 10px !important;
30+
position: fixed;
31+
right: 5%;
32+
text-decoration: none !important;
33+
}
34+
35+
.bmc-button:hover, .bmc-button:active, .bmc-button:focus {
36+
-webkit-box-shadow: 0px 1px 2px 2px rgba(190, 190, 190, 0.5) !important;
37+
box-shadow: 0px 1px 2px 2px rgba(190, 190, 190, 0.5) !important;
38+
color: #000000 !important;
39+
opacity: 0.85 !important;
40+
text-decoration: none !important;
41+
}

assets/css/style.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
@import "comments";
1414
@import "search";
1515
@import "footer";
16-
@import "media-queries";
16+
@import "media-queries";
17+
@import "buy-me-a-coffee";

0 commit comments

Comments
 (0)