gravid 0.1.9 → 0.1.10

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
  SHA1:
3
- metadata.gz: 98375d52f6588769ea2c448f963a80273322cf4b
4
- data.tar.gz: f56e3f8d9554f58418b481629ab3a467c293c446
3
+ metadata.gz: 147294105b3e1039b9602e7bd74bb3be292d59ad
4
+ data.tar.gz: 89a348ab0fb1ff33c91a0c70518eede2382e88ce
5
5
  SHA512:
6
- metadata.gz: bfa18c6aaa0b2f92029fa180821d55bb7c206f32f12d3860fc48074ac92115ab1ec1ddaddf6aed8348d79537a3bb601e6e09933a6e3e7f7837c49d262f80e2ec
7
- data.tar.gz: 79deeba8b2ff224bef311c582deb3904e1f6494dc638c7493aaa9580c2efb072b63dd6adf05747d9f8568c86cdba12ad7f32c4d9e74f5f6d97628a5d46229891
6
+ metadata.gz: 04aa294d456365cb7715db500490c77a2ab6f296b245d9f879970648471faa86d520621fddd368c7196eb96fdb1533fdfadec80c6d00668c2a77b88b25d87fb0
7
+ data.tar.gz: 076f1f31fbc4b612c9d733868ae817209e8e59aa75feceb2bd237b0113e3bdd13f7e5ccb8ce5886ccdee4f1c62febfabcb40231e5c6507a2268c46271e67f442
@@ -29,3 +29,17 @@ theme: gravid
29
29
  exclude:
30
30
  - Gemfile
31
31
  - Gemfile.lock
32
+
33
+ plugins:
34
+ - jekyll-paginate-v2
35
+
36
+ # Pagination Settings
37
+ pagination:
38
+ enabled: true
39
+ per_page: 3
40
+ permalink: '/journal/page/:num/'
41
+ title: ':title - page :num of :max'
42
+ limit: 0
43
+ sort_field: 'date'
44
+ sort_reverse: true
45
+ indexpage: 'journal'
@@ -5,9 +5,11 @@
5
5
  </a>
6
6
  <nav class="site-nav">
7
7
  {% if site.language == 'zh-CN' %}
8
+ <a class="sidebar-nav-item" href="/journal.html">周记</a>
8
9
  <a class="sidebar-nav-item" href="/archive">归档</a>
9
10
  <a class="sidebar-nav-item" href="/about">关于</a>
10
11
  {% else %}
12
+ <a class="sidebar-nav-item" href="/journal.html">Journal</a>
11
13
  <a class="sidebar-nav-item" href="/archive">Archive</a>
12
14
  <a class="sidebar-nav-item" href="/about">About</a>
13
15
  {% endif %}
@@ -9,13 +9,15 @@ layout: default
9
9
  <section class="posts">
10
10
  <ul class="post-list">
11
11
  {% for post in site.posts %}
12
- <li>
13
- <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
14
- {% assign date_format = site.gravid.date_format | default: "%m/%d/%Y" %}
15
- <small class="post-meta archive">{{ post.date | date: date_format }}</small>
16
- </li>
12
+ {% if post.journal == nil %}
13
+ <li>
14
+ <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
15
+ {% assign date_format = site.gravid.date_format | default: "%m/%d/%Y" %}
16
+ <small class="post-meta archive">{{ post.date | date: date_format }}</small>
17
+ </li>
18
+ {% endif %}
17
19
  {% endfor %}
18
20
  </ul>
19
21
  </section>
20
22
 
21
- </article>
23
+ </article>
@@ -15,14 +15,16 @@ layout: default
15
15
  <section class="posts">
16
16
  <ul class="post-list">
17
17
  {% for post in site.posts %}
18
- <li>
19
- <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
20
- {% assign date_format = site.gravid.date_format | default: "%m/%d/%Y" %}
21
- <small class="post-meta">{{ post.date | date: date_format }}</small>
22
- <p class="typo-small">{{ post.content | split:"<!-- more -->" | first | strip_html }}</p>
23
- </li>
18
+ {% if post.journal == nil %}
19
+ <li>
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
+ <p class="typo-small">{{ post.content | split:"<!-- more -->" | first | strip_html }}</p>
24
+ </li>
25
+ {% endif %}
24
26
  {% endfor %}
25
27
  </ul>
26
28
  </section>
27
29
 
28
- </article>
30
+ </article>
@@ -0,0 +1,35 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="container typo">
6
+ <section class="journals">
7
+ <div class="journal-list">
8
+ {% for post in paginator.posts %}
9
+ {% if post.journal %}
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" %}
13
+ <p class="typo-small">{{ post.content }}</p>
14
+ </article>
15
+ {% endif %}
16
+ {% endfor %}
17
+ </div>
18
+
19
+ {% if paginator.total_pages > 1 %}
20
+ <ul class="pager">
21
+ {% 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>
25
+ {% endif %}
26
+ {% 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>
30
+ {% endif %}
31
+ </ul>
32
+ {% endif %}
33
+ </section>
34
+
35
+ </article>
@@ -3,7 +3,12 @@ layout: default
3
3
  ---
4
4
 
5
5
  <article class="container typo">
6
- <h1 class="post-title">{{ page.title }}</h1>
6
+ <h1 class="post-title">
7
+ {% if page.journal %}
8
+ <code class="highlighter-rouge">{{ page.journal }}: </code>
9
+ {% endif %}
10
+ {{ page.title }}
11
+ </h1>
7
12
  {{ content }}
8
13
 
9
14
  {% if site.enable_reward %} {% include reward.html %} {% endif %}
@@ -5,4 +5,4 @@ title: "Inspirations"
5
5
 
6
6
  Inspiration from [Sofish's personal blog](https://github.com/sofish/sofi.sh).
7
7
 
8
- <!-- more -->
8
+ <!-- more -->
@@ -59,4 +59,4 @@ Inspiration from [Sofish's personal blog](https://github.com/sofish/sofi.sh), Th
59
59
 
60
60
  ## License
61
61
 
62
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
62
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -111,4 +111,4 @@ void SketchSearcher::query(const std::string &fileName, QueryResults &results)
111
111
  results[i].imageName = files->getFilename(_results[i].second);
112
112
  }
113
113
  }
114
- ```
114
+ ```
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: post
3
+ title: "Write yourself into history"
4
+ journal: 01W2018
5
+ ---
6
+
7
+ Journals give voice to your dreams and aspirations but are also safe spaces to release negative feelings, hurts and disappointments that could get in the way of those dreams and aspirations being realised.
@@ -27,7 +27,7 @@
27
27
  float: left;
28
28
  }
29
29
 
30
- @media only screen and ( max-width: 480px ) {
30
+ @media only screen and ( max-width: 520px ) {
31
31
  .logo {
32
32
  display: none;
33
33
  }
@@ -60,10 +60,14 @@
60
60
  font-weight: 400;
61
61
  }
62
62
 
63
+ .logo {
64
+ position: absolute;
65
+ left: calc(50% - 24px);
66
+ }
67
+
63
68
  .avatar {
64
69
  height: 48px;
65
70
  border-radius: 48px;
66
- margin-left: 26px;
67
71
  }
68
72
 
69
73
  .container {
@@ -76,12 +80,17 @@
76
80
  list-style: none;
77
81
  }
78
82
 
83
+ .journal {
84
+ margin-bottom: 88px;
85
+ }
86
+
79
87
  /**
80
88
  * Post
81
89
  */
82
90
  .post-title {
83
91
  font-size: 40px;
84
92
  font-weight: 400;
93
+ text-align: center;
85
94
  }
86
95
 
87
96
  /**
@@ -135,4 +144,4 @@
135
144
  padding: 0.6em 0 0.8em 0;
136
145
  font-size: 14px;
137
146
  margin-bottom: 0 !important;
138
- }
147
+ }
data/index.md CHANGED
@@ -2,7 +2,7 @@
2
2
  layout: home
3
3
  ---
4
4
 
5
- ZDDHUB's blog
5
+ ZDDHUB's Blog
6
6
  =============
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`. 😊
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: journal
3
+ pagination:
4
+ enabled: true
5
+ ---
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.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - zddhub
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-22 00:00:00.000000000 Z
11
+ date: 2018-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -71,11 +71,13 @@ files:
71
71
  - _layouts/archive.html
72
72
  - _layouts/default.html
73
73
  - _layouts/home.html
74
+ - _layouts/journal.html
74
75
  - _layouts/page.html
75
76
  - _layouts/post.html
76
77
  - _posts/2017-06-05-inspiration.md
77
78
  - _posts/2017-06-07-first-blog.md
78
79
  - _posts/2017-06-08-second-blog.md
80
+ - _posts/2018-01-07-W01-write-yourself-into-history.md
79
81
  - _sass/gravid.scss
80
82
  - _sass/gravid/_base.scss
81
83
  - _sass/gravid/_layout.scss
@@ -108,6 +110,7 @@ files:
108
110
  - assets/zddhub_alipay.png
109
111
  - assets/zddhub_wechat_pay.png
110
112
  - index.md
113
+ - journal.md
111
114
  - reward.md
112
115
  homepage: https://github.com/zddhub/gravid
113
116
  licenses: