gravid 0.1.11 → 1.1.1

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
- SHA1:
3
- metadata.gz: 48658b5ab36275682886901f0503ca7e5b0b6c6a
4
- data.tar.gz: 20810b208f8daab0643683e520a06be306015271
2
+ SHA256:
3
+ metadata.gz: 8eeb06cb9397e2522e7ce06e148f880f55045ce9a4a7733584f57d2de9cffa70
4
+ data.tar.gz: 3d17ec09e8c7f5c5252e9ccee44946439327b63f65dc4b1f6d76bbf6e14bbd87
5
5
  SHA512:
6
- metadata.gz: 9d53ff3775481193de45d7b080a98fa4f88d7c04edf8a410cd5c124203e54a51ce91134bdc5456c3f1859580b730f0ecaa879c656ee7320048933c1822888cb8
7
- data.tar.gz: c297dacf875832e96f7d238675ab19f00042d9ab7fa26c3d0939fcc0ae93e3dd142d274a82df6d134ebc2d408905b1a4ee80da8417610f8776f3bf64fc0ab887
6
+ metadata.gz: d8a9256382144990e7c5b4b148533912c5bff2aad9d54b1a6a98494e99f176f9b00ea848086f70475bcca5652ec830987532e379615d94a9af9e3fafc514fcc4
7
+ data.tar.gz: 87a86e8f0639bbd8817f898bca56144901db15686484fecec9dbcf69bf70df8e44d5a1a8d28bd571a13a87c010192d1242b209f03603213f5b38be5c06e48690
@@ -32,5 +32,5 @@ exclude:
32
32
 
33
33
  plugins_dir:
34
34
  - jekyll-paginate
35
- paginate: 5
35
+ paginate: 3
36
36
  paginate_path: "/journal/page:num/"
@@ -0,0 +1,5 @@
1
+ <footer class="footer typo-small">
2
+ <span class="copyright">&copy;{{site.time | date: "%Y"}} {{ site.author }}</span>
3
+ <span class="bar"></span>
4
+ <span>All rights reserved</span>
5
+ </footer>
@@ -40,4 +40,5 @@
40
40
  <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
41
41
 
42
42
  <script async src="//www.google-analytics.com/analytics.js"></script>
43
+ <script data-ad-client="ca-pub-1326478359331739" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
43
44
  </head>
@@ -5,13 +5,13 @@
5
5
  </a>
6
6
  <nav class="site-nav">
7
7
  {% if site.language == 'zh-CN' %}
8
- <a class="sidebar-nav-item" href="/journal">周记</a>
9
- <a class="sidebar-nav-item" href="/archive">归档</a>
10
8
  <a class="sidebar-nav-item" href="/about">关于</a>
9
+ <a class="sidebar-nav-item" href="/archive">归档</a>
10
+ <a class="sidebar-nav-item" href="/journal">周记</a>
11
11
  {% else %}
12
- <a class="sidebar-nav-item" href="/journal">Journal</a>
13
- <a class="sidebar-nav-item" href="/archive">Archive</a>
14
12
  <a class="sidebar-nav-item" href="/about">About</a>
13
+ <a class="sidebar-nav-item" href="/archive">Archive</a>
14
+ <a class="sidebar-nav-item" href="/journal">Journal</a>
15
15
  {% endif %}
16
16
  </nav>
17
17
  </header>
@@ -8,27 +8,41 @@ layout: default
8
8
  {% for post in paginator.posts %}
9
9
  {% if post.journal %}
10
10
  <article class="journal">
11
- <h4><code class="highlighter-rouge">{{ post.journal }}: </code><a class="journal-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h4>
12
- {% assign date_format = site.gravid.date_format | default: "%m/%d/%Y" %}
11
+ <h4>
12
+ <code class="highlighter-rouge">{{ post.journal }}: </code>
13
+ <a class="journal-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
14
+ </h4>
13
15
  <p class="typo-small">{{ post.content }}</p>
14
16
  </article>
17
+ {% else %}
18
+ <article class="blog">
19
+ <h4>
20
+ <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
21
+ {% assign date_format = site.gravid.date_format | default: "%m/%d/%Y" %}
22
+ <small class="post-meta">{{ post.date | date: date_format }}</small>
23
+ </h4>
24
+ <p class="typo-small">{{ post.content | split:"<!-- more -->" | first | strip_html }}</p>
25
+ </article>
15
26
  {% endif %}
16
27
  {% endfor %}
17
28
  </div>
18
29
 
19
30
  {% if paginator.total_pages > 1 %}
20
- <ul class="pager">
31
+ <div class="pagination">
32
+ {% assign newer_page = 'Newer Journals' %}
33
+ {% assign older_text = 'Older Journals' %}
34
+ {% if site.language == 'zh-CN' %}
35
+ {% assign newer_page = '上一页' %}
36
+ {% assign older_text = '下一页' %}
37
+ {% endif %}
38
+
21
39
  {% if paginator.previous_page %}
22
- <li class="previous">
23
- <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer Posts</a>
24
- </li>
40
+ <a class="next" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; {{ newer_page }}</a>
25
41
  {% endif %}
26
42
  {% if paginator.next_page %}
27
- <li class="next">
28
- <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts &rarr;</a>
29
- </li>
43
+ <a class="previous" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ older_text }} &rarr;</a>
30
44
  {% endif %}
31
- </ul>
45
+ </div>
32
46
  {% endif %}
33
47
  </section>
34
48
 
@@ -11,5 +11,15 @@ layout: default
11
11
  </h1>
12
12
  {{ content }}
13
13
 
14
+ <div class="pagination">
15
+ {% if page.next.url %}
16
+ <a class="next" href="{{ page.next.url }}">&larr; {{ page.next.title }}</a>
17
+ {% endif %}
18
+
19
+ {% if page.previous.url %}
20
+ <a class="previous" href="{{ page.previous.url }}">{{ page.previous.title }} &rarr;</a>
21
+ {% endif %}
22
+ </div>
23
+
14
24
  {% if site.enable_reward %} {% include reward.html %} {% endif %}
15
25
  </article>
@@ -80,8 +80,47 @@
80
80
  list-style: none;
81
81
  }
82
82
 
83
+ .blog {
84
+ border: 1px #e1e4e8 solid;
85
+ padding: 0 16px;
86
+ margin-bottom: 20px;
87
+ }
88
+
89
+ /**
90
+ * Pagination
91
+ */
92
+ .pagination {
93
+ margin: 0;
94
+ min-height: 2em;
95
+ display: flex;
96
+ }
97
+
98
+ .pagination .previous {
99
+ flex: 1;
100
+ text-align: right;
101
+ border-bottom: none;
102
+ }
103
+
104
+ .pagination .next {
105
+ flex: 1;
106
+ text-align: left;
107
+ border-bottom: none;
108
+ }
109
+
83
110
  .journal {
84
- margin-bottom: 88px;
111
+ margin-bottom: 3em;
112
+ }
113
+
114
+ .journal .journal-link {
115
+ font-weight: 300;
116
+ }
117
+
118
+ .blog .post-link {
119
+ font-weight: 300;
120
+ }
121
+
122
+ .journal, .journals {
123
+ margin-bottom: 4em;
85
124
  }
86
125
 
87
126
  /**
@@ -149,3 +188,22 @@
149
188
  font-size: 14px;
150
189
  margin-bottom: 0 !important;
151
190
  }
191
+
192
+ .footer {
193
+ text-align: center;
194
+ margin: 6em 0 4em 0;
195
+ }
196
+
197
+ .copyright {
198
+ text-transform: uppercase;
199
+ }
200
+
201
+ .bar {
202
+ width: 1px;
203
+ height: 14px;
204
+ background: #e0e0e0;
205
+ display: inline-block;
206
+ position: relative;
207
+ top: 2px;
208
+ padding: 0;
209
+ }
@@ -2,12 +2,12 @@
2
2
  "name": "",
3
3
  "icons": [
4
4
  {
5
- "src": "/android-chrome-192x192.png",
5
+ "src": "/assets/icons/android-chrome-192x192.png",
6
6
  "sizes": "192x192",
7
7
  "type": "image/png"
8
8
  },
9
9
  {
10
- "src": "/android-chrome-512x512.png",
10
+ "src": "/assets/icons/android-chrome-512x512.png",
11
11
  "sizes": "512x512",
12
12
  "type": "image/png"
13
13
  }
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.11
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - zddhub
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-07 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.4'
19
+ version: 4.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.4'
26
+ version: 4.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.12'
33
+ version: 2.1.4
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.12'
40
+ version: 2.1.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: 13.0.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: 13.0.1
55
55
  description:
56
56
  email:
57
57
  - zddhub@gmail.com
@@ -132,8 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  requirements: []
135
- rubyforge_project:
136
- rubygems_version: 2.4.5
135
+ rubygems_version: 3.1.2
137
136
  signing_key:
138
137
  specification_version: 4
139
138
  summary: A simple and beautiful jekyll theme.