|
1 | 1 | <div id="share">
|
2 | 2 | Share on
|
3 |
| - <a class="sharelink" title="Share this on Tumblr" |
4 |
| - href="https://www.tumblr.com/widgets/share/tool?posttype=link&canonicalUrl={{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}&title={{ page.title | uri_escape }}&caption=&content=&tags="> |
5 |
| - <span class="btn" style="background-color: #34465D;">Tumblr</span> |
6 |
| - </a> |
7 |
| - |
8 |
| - <a class="sharelink" title="Share this on Twitter" |
9 |
| - href="https://twitter.com/intent/tweet?url={{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}&text={{ page.title | uri_escape }}"> |
10 |
| - <span class="btn" style="background-color: #08a0e9;">Twitter</span> |
11 |
| - </a> |
12 |
| - |
13 |
| - <a href="javascript:void" title="Share this on Mastodon"><span class="btn" style="background-color: #6260fa;" |
14 |
| - onclick="mastodon_modal()">Mastodon</span></a> |
15 |
| - |
16 |
| - <a class="sharelink" title="Share this on Reddit" |
17 |
| - href="https://reddit.com/submit?url={{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}&title={{ page.title | uri_escape }}"> |
18 |
| - <span class="btn" style="background-color: #ff4500;">Reddit</span></a> |
19 |
| - |
20 |
| - <a class="sharelink" title="Share this on Facebook" |
21 |
| - href="https://www.facebook.com/sharer.php?u={{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}"> |
22 |
| - <span class="btn" style="background-color: #4267B2;">Facebook</span></a> |
23 |
| - |
24 |
| - <a class="sharelink" title="Share this on Pinterest" |
25 |
| - href="http://pinterest.com/pin/create/link/?url={{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}&media=https://github.com/EllieTheYeen.png&description={{ page.title | uri_escape }}"> |
26 |
| - <span class="btn" style="background-color: #cc2127;">Pinterest</span> |
27 |
| - </a> |
28 |
| - |
29 |
| - <a class="sharelink" title="Share this on Telegram" |
30 |
| - href="https://telegram.me/share/url?url={{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}"> |
31 |
| - <span class="btn" style="background-color: #27a6e7;">Telegram</span> |
32 |
| - </a> |
33 | 3 |
|
34 |
| - <a class="sharelink" title="Share this on Ycombinator" |
35 |
| - href="https://news.ycombinator.com/submitlink?u={{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}&t={{ page.title | uri_escape }}"> |
36 |
| - <span class="btn" style="background-color: #cc5200;">Ycombinator</span> |
37 |
| - </a> |
38 |
| - |
39 |
| - <a class="sharelink" title="Share this on Instapaper" |
40 |
| - href="https://www.instapaper.com/edit?url={{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}"> |
41 |
| - <span class="btn" style="background-color: #828181;">Instapaper</span> |
42 |
| - </a> |
43 |
| - |
44 |
| - <a class="sharelink" title="Share this on Pinboard" |
45 |
| - href="https://pinboard.in/add?url={{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}"> |
46 |
| - <span class="btn" style="background-color: #1120ab;">Pinboard</span> |
47 |
| - </a> |
| 4 | + <a href="javascript:void" title="Share this on Mastodon"> |
| 5 | + <span class="btn" style="background-color: #6260fa;" onclick="mastodon_modal()">Mastodon</span></a> |
48 | 6 |
|
49 |
| - <a class="sharelink" title="Share this on Pocket" |
50 |
| - href="https://getpocket.com/edit?url={{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}"> |
51 |
| - <span class="btn" style="background-color: #e0264b;">Pocket</span> |
| 7 | + {% for butt in site.sharebuttons %} |
| 8 | + <a class="sharelink" title="Share this on {{ butt.name }}" target="_blank" |
| 9 | + href="{{ butt.base }}?{%- if butt.extra -%}{{ butt.extra }}{%- endif -%}{%- if butt.url -%}&{{ butt.url }}={{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}{%- endif -%}{%- if butt.title -%}&{{ butt.title }}={{ page.title | uri_escape }}{%- endif -%}{%- if butt.body -%}&{{ butt.body }}={{ page.title | uri_escape }}%0A{{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}%0A{%- endif -%}{%- if butt.media -%}&{{ butt.media }}={{ site.defaultmedia }}{%- endif -%}"> |
| 10 | + <span class="btn" style="background-color: {{ butt.color }};">{{ butt.name }}</span> |
52 | 11 | </a>
|
| 12 | + {% endfor %} |
53 | 13 |
|
54 |
| - <a class="sharelink" title="Share this on GMail" |
55 |
| - href="https://mail.google.com/mail/u/0/?fs=1&tf=cm&body={{ page.title | uri_escape }}%0A{{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}%0A"> |
56 |
| - <span class="btn" style="background-color: #ea4235;">GMail</span> |
57 |
| - </a> |
58 |
| - |
59 |
| - <a class="sharelink" title="Share this on Blogger" |
60 |
| - href="https://www.blogger.com/blog_this.pyra?n={{ page.title | uri_escape }}%0A{{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}%0A"> |
61 |
| - <span class="btn" style="background-color: #ff5722;">Blogger</span> |
62 |
| - </a> |
63 |
| - |
64 |
| - <a class="sharelink" title="Share this through email" |
65 |
| - href="mailto:?subject={{ page.title | uri_escape }}&body={{ page.title | uri_escape }}%0A{{ 'https://ellietheyeen.github.io' | append: page.url | uri_escape }}%0A"> |
66 |
| - <span class="btn" style="background-color: #26BF74;">Email</span> |
67 |
| - </a> |
68 | 14 | </div>
|
69 | 15 | <dialog id="mastodon_modal">
|
70 | 16 | <button onclick="mastodon_modal(true)">Close</button><br />
|
|
0 commit comments