minima-rock 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bbd3e891698ea6cbce71a03ece57b8b990d835e1732fc2f9435a12c5d761b2a
4
- data.tar.gz: c93af1a2799471a4e05ebbd994adfd6d58803d20d6cba03d90bec7032ceb6a94
3
+ metadata.gz: 175b70fd18db043064bfbd18a78fcdc1aa0d21220d99e82875af92298bd6e332
4
+ data.tar.gz: e8d09186baeac11a59b9e509b0a9d86eeff291ffe51cd020ce3739c3b6560814
5
5
  SHA512:
6
- metadata.gz: 92c6e08b9a57a7b892ff36dbde8ab1711861153f9930ea639fe974b74ac01226d6b37e934d30b5d7e58a20ab2e95ac51bf96d698f1470dd8d7ffa5e96bc8759c
7
- data.tar.gz: 9df8225b1fbfadb81c5841692e14eb974ee59ef441039e7cc759f6e96cd2b4cb41ee0391a7ab5e153ddb9f769e56cc61e0b048ac6885313a6e9e94ff2dc2447c
6
+ metadata.gz: de257cea28dd3880791a1da02ba0623a1b97d21cc52534a203a600a2eeefbe664a166d8ae7375d7be5897f6d7810d4fd29799b7aa1c5b4d9bfc9e3a2ab0f0388
7
+ data.tar.gz: 57a2f40c2fa2b4ff50b430a1cabcca68bc8259f880e06cf2ba1209ec4a535a57ded1db6df8ad4aa42bdcaee390fb9419433643889de45185fab0ec3878af2adf
@@ -0,0 +1,53 @@
1
+ {%- if page.share != false and jekyll.environment == "production" -%}
2
+ <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
3
+ <div id="share-bar">
4
+ <div class="share-buttons">
5
+ <a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ site.baseurl }}{{ page.url }}"
6
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
7
+ title="Share on Facebook" >
8
+ <i class="fa fa-facebook-official share-button"></i>
9
+ </a>
10
+
11
+ <a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
12
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
13
+ title="Share on Twitter" >
14
+ <i class="fa fa-twitter share-button"></i>
15
+ </a>
16
+
17
+ <a href="https://plus.google.com/share?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
18
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
19
+ title="Share on Google+" >
20
+ <i class="fa fa-google-plus share-button"></i>
21
+ </a>
22
+
23
+ <a href="https://www.pinterest.com/pin/create/button/?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
24
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
25
+ title="Share on Pinterest" >
26
+ <i class="fa fa-pinterest-p share-button"></i>
27
+ </a>
28
+
29
+ <a href="https://www.tumblr.com/share/link?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
30
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
31
+ title="Share on Tumblr" >
32
+ <i class="fa fa-tumblr share-button"></i>
33
+ </a>
34
+
35
+ <a href="http://www.reddit.com/submit?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
36
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
37
+ title="Share on Reddit" >
38
+ <i class="fa fa-reddit-alien share-button"></i>
39
+ </a>
40
+
41
+ <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ site.baseurl }}{{ page.url }}&title={{ page.title }}&summary={{ page.description }}&source={{ site.title }}"
42
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
43
+ title="Share on LinkedIn" >
44
+ <i class="fa fa-linkedin share-button"></i>
45
+ </a>
46
+
47
+ <a href="mailto:?subject={{ page.title }}&amp;body=Check out this site {{ site.url }}{{ site.baseurl }}{{ page.url }}"
48
+ title="Share via Email" >
49
+ <i class="fa fa-envelope share-button"></i>
50
+ </a>
51
+ </div>
52
+ </div>
53
+ {%- endif -%}
data/_layouts/post.html CHANGED
@@ -27,6 +27,8 @@ layout: default
27
27
  {{ content }}
28
28
  </div>
29
29
 
30
+ {%- include share_bar.html -%}
31
+
30
32
  {%- include disqus_comments.html -%}
31
33
 
32
34
  <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
@@ -0,0 +1,87 @@
1
+ /* Share Bar */
2
+ #share-bar {
3
+ font-size: 26px;
4
+ }
5
+
6
+ /* All buttons */
7
+ .share-buttons a {
8
+ text-decoration: none;
9
+ }
10
+
11
+ /* Each button */
12
+ .share-button {
13
+ margin: 0px;
14
+ margin-bottom: 10px;
15
+ margin-right: 3px;
16
+ border: 1px solid #D3D6D2;
17
+ border-radius: 3px;
18
+ padding: 5px 10px 5px 10px;
19
+ }
20
+ .share-button:hover {
21
+ opacity: 1;
22
+ color: #ffffff;
23
+ }
24
+
25
+ /* Facebook button */
26
+ .fa-facebook-official {
27
+ color: #3b5998;
28
+ }
29
+ .fa-facebook-official:hover {
30
+ background-color: #3b5998;
31
+ }
32
+
33
+ /* Twitter button */
34
+ .fa-twitter {
35
+ color: #55acee;
36
+ }
37
+ .fa-twitter:hover {
38
+ background-color: #55acee;
39
+ }
40
+
41
+ /* Google-PLus button */
42
+ .fa-google-plus {
43
+ color: #dd4b39;
44
+ }
45
+ .fa-google-plus:hover {
46
+ background-color: #dd4b39;
47
+ }
48
+
49
+ /* Pinterest button */
50
+ .fa-pinterest-p {
51
+ color: #cb2027;
52
+ }
53
+ .fa-pinterest-p:hover {
54
+ background-color: #cb2027;
55
+ }
56
+
57
+ /* Tumblr button */
58
+ .fa-tumblr {
59
+ color: #32506d;
60
+ }
61
+ .fa-tumblr:hover {
62
+ background-color: #32506d;
63
+ }
64
+
65
+ /* Reddit button */
66
+ .fa-reddit-alien {
67
+ color: #ff4500;
68
+ }
69
+ .fa-reddit-alien:hover {
70
+ background-color: #ff4500;
71
+ }
72
+
73
+ /* LinkedIn button */
74
+ .fa-linkedin {
75
+ color: #007bb5;
76
+ }
77
+ .fa-linkedin:hover {
78
+ background-color: #007bb5;
79
+ }
80
+
81
+ /* Email button */
82
+ .fa-envelope {
83
+ color: #444444;
84
+ }
85
+ .fa-envelope:hover {
86
+ background-color: #444444;
87
+ }
data/_sass/minima.scss CHANGED
@@ -52,5 +52,6 @@ $on-large: $on-laptop !default;
52
52
  @import
53
53
  "minima/base",
54
54
  "minima/layout",
55
+ "minima/share",
55
56
  "minima/syntax-highlighting"
56
57
  ;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minima-rock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Glovier
@@ -100,6 +100,7 @@ files:
100
100
  - _includes/google-analytics.html
101
101
  - _includes/head.html
102
102
  - _includes/header.html
103
+ - _includes/share_bar.html
103
104
  - _includes/social.html
104
105
  - _includes/tags_bar.html
105
106
  - _layouts/default.html
@@ -109,6 +110,7 @@ files:
109
110
  - _sass/minima.scss
110
111
  - _sass/minima/_base.scss
111
112
  - _sass/minima/_layout.scss
113
+ - _sass/minima/_share.scss
112
114
  - _sass/minima/_syntax-highlighting.scss
113
115
  - assets/css/style.scss
114
116
  - assets/js/color.js