Skip to content

Commit

Permalink
add github star button
Browse files Browse the repository at this point in the history
  • Loading branch information
glaucocustodio committed Aug 9, 2024
1 parent f20987a commit 934f94c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ url: https://evenbetterspecs.github.io

favicon_ico: "/favicon.ico"

aux_links:
GitHub: https://github.com/evenbetterspecs/evenbetterspecs.github.io
# aux_links:
# GitHub: https://github.com/evenbetterspecs/evenbetterspecs.github.io

# External navigation links
nav_external_links:
Expand All @@ -17,8 +17,8 @@ nav_external_links:
# - title: Guiding principles
# url: "#guiding-principles"
# hide_icon: true
- title: Describe what you're testing
url: "#describe"
- title: Describe what you are testing
url: "#describe-what-you-are-testing"
hide_icon: true
- title: Use contexts
url: "#use-contexts"
Expand Down
4 changes: 2 additions & 2 deletions _includes/describe.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<article>
<h2 id="describe">
<a href="#describe">
<h2 id="describe-what-you-are-testing">
<a href="#describe-what-you-are-testing">
Describe what you are testing
</a>
</h2>
Expand Down
3 changes: 3 additions & 0 deletions _includes/header_custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="github-star-wrapper">
<iframe src="https://ghbtns.com/github-btn.html?user=evenbetterspecs&repo=evenbetterspecs.github.io&type=star&count=false" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
</div>
5 changes: 5 additions & 0 deletions _sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
letter-spacing: 0.4px;
}

.github-star-wrapper {
width: 54px;
margin-top: 18px;
}

.example,
.bad,
.good,
Expand Down

0 comments on commit 934f94c

Please sign in to comment.