Skip to content

Commit 5453af7

Browse files
committed
Use variables for links
1 parent 10a6611 commit 5453af7

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
title: HTTPlug
22
email: team@httplug.io
3-
description: Httplug, the HTTP client abstraction for PHP.
3+
description: HTTPlug, the HTTP client abstraction for PHP.
44
baseurl: ""
55
url: "http://httplug.io"
66
twitter_username: httplug
77
github_username: php-http
8+
github_reponame: httplug
89

910
sass:
1011
sass_dir: assets/_sass

_includes/footer.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@
44
<div class="col-md-12">
55
<ul class="social-buttons">
66
<li>
7-
<iframe src="https://ghbtns.com/github-btn.html?user=php-http&repo=httplug&type=star&count=true" frameborder="0" scrolling="0" width="80px" height="20px"></iframe>
7+
<iframe src="https://ghbtns.com/github-btn.html?user={{ site.github_username }}&repo={{ site.github_reponame }}&type=star&count=true" frameborder="0" scrolling="0" width="80px" height="20px"></iframe>
88
</li>
99
<li>
10-
<iframe src="https://ghbtns.com/github-btn.html?user=php-http&repo=httplug&type=fork&count=true" frameborder="0" scrolling="0" width="80px" height="20px"></iframe>
10+
<iframe src="https://ghbtns.com/github-btn.html?user={{ site.github_username }}&repo={{ site.github_reponame }}&type=fork&count=true" frameborder="0" scrolling="0" width="80px" height="20px"></iframe>
1111
</li>
1212
<li>
13-
<a href="https://twitter.com/httplug" class="twitter-follow-button" data-show-count="false">Follow @httplug</a>
13+
<a href="https://twitter.com/{{ site.twitter_username }}" class="twitter-follow-button" data-show-count="false">Follow @{{ site.twitter_username }}</a>
1414
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
1515
</li>
1616
<li>
17-
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://httplug.io" data-text="Httplug - The HTTP client abstraction for PHP." data-via="httplug">Tweet</a>
17+
<a href="https://twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}" data-text="HTTPlug - The HTTP client abstraction for PHP." data-via="{{ site.twitter_username }}">Tweet</a>
1818
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
1919
</li>
2020
<li>
2121
<script async defer src="http://slack.httplug.io/slackin.js"></script>
2222
</li>
2323
</ul>
2424
<p>
25-
Designed and built with all the love in the world by <a href="https://github.com/php-http">@php-http</a>.<br>
25+
Designed and built with all the love in the world by <a href="https://github.com/{{ site.github_username }}">@{{ site.github_username }}</a>.<br>
2626

27-
Maintained by the <a href="https://github.com/orgs/php-http/people" target="_blank">core team</a> with the help of <a href="https://github.com/php-http/httplug/graphs/contributors" target="_blank">our contributors</a>.<br>
27+
Maintained by the <a href="https://github.com/orgs/{{ site.github_username }}/people" target="_blank">core team</a> with the help of <a href="https://github.com/{{ site.github_username }}/{{ site.github_reponame }}/graphs/contributors" target="_blank">our contributors</a>.<br>
2828

29-
Code licensed under <a href="https://github.com/php-http/httplug/blob/master/LICENSE" target="_blank">MIT</a>.
29+
Code licensed under <a href="https://github.com/{{ site.github_username }}/{{ site.github_reponame }}/blob/master/LICENSE" target="_blank">MIT</a>.
3030
</p>
3131
</div>
3232
</div>

0 commit comments

Comments
 (0)