gravid 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/_includes/head.html +7 -0
- data/_includes/reward.html +16 -2
- data/_sass/gravid/_base.scss +1 -1
- data/_sass/gravid/_layout.scss +35 -3
- data/assets/zddhub_alipay.png +0 -0
- data/assets/zddhub_wechat_pay.png +0 -0
- data/index.md +2 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f8c650234b8f36328e16ffee07a6614cab0aab9
|
4
|
+
data.tar.gz: 8972452ece22f4f18af2c349ecbd0eef162cdb7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddeb7ba9bebb2ea08de13f1653355e1fbef150c5fff079506e5c97a7aa7153691018d2c5637fdd16bbbce1fba7af18fdb1ca5924733226576405e242e4cb0cb9
|
7
|
+
data.tar.gz: '081d53c8fa9d224100ea5e6aac828317f911bdb672f2aa0ae988ee071855789703d54fd31e9da54234499039ce93431e0355c80dd4a85bddec2f8e1a9d6315b3'
|
data/README.md
CHANGED
@@ -67,3 +67,6 @@ Inspiration from [Sofish's personal blog](https://github.com/sofish/sofi.sh), Th
|
|
67
67
|
|
68
68
|
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
69
69
|
|
70
|
+
### Contact
|
71
|
+
|
72
|
+
If you have any question, please [email to me](mailto:zddhub@gmail.com).
|
data/_includes/head.html
CHANGED
@@ -7,8 +7,15 @@
|
|
7
7
|
{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}
|
8
8
|
{% if site.slogan and page.url == '/' %} | {{ site.slogan | escape }}{% endif %}
|
9
9
|
</title>
|
10
|
+
<meta name="keywords" content="gravid, zddhub, blog">
|
10
11
|
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
11
12
|
|
13
|
+
<meta property="og:type" content="website">
|
14
|
+
<meta property="og:title" content="{{ page.title | escape }}">
|
15
|
+
<meta property="og:url" content="{{ page.url | replace:'index.html','' | absolute_url }}">
|
16
|
+
<meta property="og:site_name" content="{{ site.title }}">
|
17
|
+
<meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
18
|
+
|
12
19
|
<link rel="stylesheet" href="/assets/main.css">
|
13
20
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
14
21
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
data/_includes/reward.html
CHANGED
@@ -1,6 +1,20 @@
|
|
1
|
-
<section>
|
1
|
+
<section class="reward-section">
|
2
2
|
{% if site.language == 'zh-CN' %}
|
3
|
-
<
|
3
|
+
<button class="reward-button" onclick="var qr = document.getElementById('qr'); if (qr.style.display === 'none') {qr.style.display='block'} else {qr.style.display='none'}">
|
4
|
+
<span>赏</span>
|
5
|
+
</button>
|
6
|
+
<p class="reward">如果你喜欢这篇文章,欢迎<a href="/reward">赞赏作者</a>以示鼓励</p>
|
7
|
+
|
8
|
+
<article id="qr" style="display: none;">
|
9
|
+
<div class="wechat">
|
10
|
+
<img src="/assets/zddhub_wechat_pay.png"> </img>
|
11
|
+
<p>微信</p>
|
12
|
+
</div>
|
13
|
+
<div class="alipay">
|
14
|
+
<img src="/assets/zddhub_alipay.png"> </img>
|
15
|
+
<p>支付宝</p>
|
16
|
+
</div>
|
17
|
+
</article>
|
4
18
|
{% else %}
|
5
19
|
<p class="reward">If you like this post,welcome to <a href="/reward">reward</a></p>
|
6
20
|
{% endif %}
|
data/_sass/gravid/_base.scss
CHANGED
data/_sass/gravid/_layout.scss
CHANGED
@@ -63,6 +63,7 @@
|
|
63
63
|
.avatar {
|
64
64
|
height: 48px;
|
65
65
|
border-radius: 48px;
|
66
|
+
margin-left: 26px;
|
66
67
|
}
|
67
68
|
|
68
69
|
.container {
|
@@ -93,12 +94,43 @@
|
|
93
94
|
/**
|
94
95
|
* reward
|
95
96
|
*/
|
97
|
+
.reward-section {
|
98
|
+
margin-top: 32px;
|
99
|
+
margin-bottom: 48px;
|
100
|
+
text-align: center;
|
101
|
+
border-top: 1px solid rgba(0, 0, 0, 0.13);
|
102
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.13);
|
103
|
+
}
|
104
|
+
|
105
|
+
.reward-button {
|
106
|
+
width: 36px;
|
107
|
+
height: 36px;
|
108
|
+
margin-top: 14px;
|
109
|
+
color: #fff;
|
110
|
+
background-color: #ea6f5a;
|
111
|
+
border-radius: 22px;
|
112
|
+
border: none;
|
113
|
+
box-shadow: 0 0 2px rgba(0,0,0,.14), 0 2px 4px rgba(0,0,0,.28);
|
114
|
+
font-weight: 400;
|
115
|
+
line-height: 24px;
|
116
|
+
cursor: pointer;
|
117
|
+
border: 1px solid transparent;
|
118
|
+
outline: none;
|
119
|
+
}
|
120
|
+
|
121
|
+
.reward-button:hover {
|
122
|
+
background-color: #f14e32;
|
123
|
+
}
|
124
|
+
|
125
|
+
#qr div {
|
126
|
+
display: inline-block;
|
127
|
+
margin: 2px 32px;
|
128
|
+
}
|
129
|
+
|
96
130
|
.reward {
|
97
|
-
border-top: 1px solid rgba(0,0,0,0.13);
|
98
|
-
border-bottom: 1px solid rgba(0,0,0,0.13);
|
99
131
|
text-align: center;
|
100
|
-
margin-top: 48px;
|
101
132
|
color: #999;
|
102
133
|
padding: 1em 0;
|
103
134
|
font-size: 14px;
|
135
|
+
margin-bottom: 0 !important;
|
104
136
|
}
|
Binary file
|
Binary file
|
data/index.md
CHANGED
@@ -7,4 +7,6 @@ ZDDHUB's blog
|
|
7
7
|
|
8
8
|
Being talented just like being gravid, must be known with a long time past. I think I need more time to be talented, so I choose an easy one and named `gravid`. 😊
|
9
9
|
|
10
|
+
You can subscribe this blog from [this link](/feed.xml).
|
11
|
+
|
10
12
|
I still write something, as below:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gravid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zddhub
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -85,6 +85,8 @@ files:
|
|
85
85
|
- assets/avatar.jpg
|
86
86
|
- assets/gravid_blog_preview.png
|
87
87
|
- assets/main.scss
|
88
|
+
- assets/zddhub_alipay.png
|
89
|
+
- assets/zddhub_wechat_pay.png
|
88
90
|
- index.md
|
89
91
|
- reward.md
|
90
92
|
homepage: https://github.com/zddhub/gravid
|
@@ -108,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
110
|
version: '0'
|
109
111
|
requirements: []
|
110
112
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.6.11
|
112
114
|
signing_key:
|
113
115
|
specification_version: 4
|
114
116
|
summary: A simple and beautiful jekyll theme.
|