gravid 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 137049e5993ceb19ffb3219d36477e6156437c8a
4
- data.tar.gz: 7886e6821ab28ab766d021d8bb342b6bfef7627e
3
+ metadata.gz: 4e4775fad6292adeadd383741455be36696e5745
4
+ data.tar.gz: 0bb23e694c64f40d340d440a6a947b0cf774e78a
5
5
  SHA512:
6
- metadata.gz: 8d2d69a637022b7feb9458f0b917b130387feea306ebcf4919c4c633de34cace851cb7ff36e36a92b2e8735e7dc333941334a4c9e6c5d2116d1d1945e4de5680
7
- data.tar.gz: bd599912be89ef9e2849b4d89640652ca511437d36f58a23898d362ba0f8aafc0759a19976d82d5eb0d56baf52af29c66d54ee37a6fa139772768ad97b0762d1
6
+ metadata.gz: bf60b81b78fede729b878626c0f29b687b2b900e09cc911e24c5547a50df43dc7226deb01dd5e7d603db44ce055950db853cd802c8caac76dc3c6746f062674f
7
+ data.tar.gz: c20213dd784189e1670f0642a536045a9345492880506a5d22d3381ba33767557db0e0eea00bb51a5d848e996fb5265aa6256e6976df87e9673b7bdedb048b30
data/404.html CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: post
2
+ layout: page
3
3
  ---
4
4
 
5
5
  <div class="container">
data/_config.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  title: ZDDHUB
2
2
  slogan: Just for fun
3
- author: GitHub User
4
- email: your-email@domain.com
3
+ author: zddhub
4
+ email: zddhub@gmail.com
5
5
  description: > # this means to ignore newlines until "baseurl:"
6
6
  Write an awesome description for your new site here. You can edit this
7
7
  line in _config.yml. It will appear in your document head meta (for
@@ -16,10 +16,8 @@ github_username: zddhub
16
16
  gravid:
17
17
  date_format: "%m/%d/%Y"
18
18
 
19
- # If you want to link only specific pages in your header, uncomment
20
- # this and add the path to the pages in order as they should show up
21
- #header_pages:
22
- # - about.html
19
+ language: en
20
+ enable_reward: false
23
21
 
24
22
  # Build settings
25
23
  markdown: kramdown
@@ -4,7 +4,12 @@
4
4
  <img src="/assets/avatar.jpg" class="avatar" alt="{{ site.title }}">
5
5
  </a>
6
6
  <nav class="site-nav">
7
- <a class="sidebar-nav-item" href="/archive">Archive</a>
8
- <a class="sidebar-nav-item" href="/about">About</a>
7
+ {% if site.language == 'zh-CN' %}
8
+ <a class="sidebar-nav-item" href="/archive">归档</a>
9
+ <a class="sidebar-nav-item" href="/about">关于</a>
10
+ {% else %}
11
+ <a class="sidebar-nav-item" href="/archive">Archive</a>
12
+ <a class="sidebar-nav-item" href="/about">About</a>
13
+ {% endif %}
9
14
  </nav>
10
15
  </header>
@@ -0,0 +1,7 @@
1
+ <section>
2
+ {% if site.language == 'zh-CN' %}
3
+ <p class="reward">如果你喜欢这篇文章,欢迎<a href="/reward">打赏作者</a>以示鼓励</p>
4
+ {% else %}
5
+ <p class="reward">If you like this post,welcome to <a href="/reward">reward</a></p>
6
+ {% endif %}
7
+ </section>
data/_layouts/post.html CHANGED
@@ -5,4 +5,6 @@ layout: default
5
5
  <article class="container typo">
6
6
  <h1 class="post-title">{{ page.title }}</h1>
7
7
  {{ content }}
8
+
9
+ {% if site.enable_reward %} {% include reward.html %} {% endif %}
8
10
  </article>
@@ -84,4 +84,17 @@
84
84
  */
85
85
  .archive {
86
86
  float: right;
87
+ }
88
+
89
+ /**
90
+ * reward
91
+ */
92
+ .reward {
93
+ border-top: 1px solid rgba(0,0,0,0.13);
94
+ border-bottom: 1px solid rgba(0,0,0,0.13);
95
+ text-align: center;
96
+ margin-top: 48px;
97
+ color: #999;
98
+ padding: 1em 0;
99
+ font-size: 14px;
87
100
  }
data/about.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: post
2
+ layout: page
3
3
  title: About
4
4
  ---
5
5
 
data/reward.md ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: page
3
+ title: Reward
4
+ ---
5
+
6
+ Put your pay info
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gravid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - zddhub
@@ -66,6 +66,7 @@ files:
66
66
  - _includes/footer.html
67
67
  - _includes/head.html
68
68
  - _includes/header.html
69
+ - _includes/reward.html
69
70
  - _layouts/archive.html
70
71
  - _layouts/default.html
71
72
  - _layouts/home.html
@@ -85,6 +86,7 @@ files:
85
86
  - assets/gravid_blog_preview.png
86
87
  - assets/main.scss
87
88
  - index.md
89
+ - reward.md
88
90
  homepage: https://github.com/zddhub/gravid
89
91
  licenses:
90
92
  - MIT