jekyll-theme-ink 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: fbd4378b51a9ac5ef1b01a0d4fc1f5f28a58c08ebe2fbbcd6b4de69d8fae556d
4
- data.tar.gz: 1874655ff710152f2c683b736979e00cb1175dd3d908475fde191197a6b57644
3
+ metadata.gz: faf081a35c579b4d9d222bd043e029a153fb92019747ae3357ba908605d13dce
4
+ data.tar.gz: 100a58fb4d076c71e8a52e6f4d1c783f3a97dd4f8f71d3e03ef6a3749d75560f
5
5
  SHA512:
6
- metadata.gz: c65da923dfc88d46555f056ad2f2e48a9f7cc3a671b6be8a31a9aa82b8f34f0e34b8d558500d0e30e11b722c654db2d63b0821828975ab6c51b1497100c63c21
7
- data.tar.gz: a8feb57ae128d63b8ad071e24b83650613c6b99476e0de6216c73f07175365d0c049669ba50c2fcfed15ee82051c41350f2faf4990805645506611ada625487e
6
+ metadata.gz: 518dbcc8160cc26cd5ee75d88b5d258ca8e0bbc22dd7430b1c1729d1a0c2b249efff5f58cfaeba777d0cc817c1429ab861195f8158e9ea83621221873820f67b
7
+ data.tar.gz: 0b744aa6b2c6462d3a3f813faebfac297147299dadfaa60d06d23f98d76b863d2633e667030ea95c8c8cdffd2ed8a8d4fee5f3d8e776552b5d1628120e0bce13
data/README.md CHANGED
@@ -18,6 +18,28 @@ Preview [demo](https://kemingy.github.io/jekyll-theme-ink/)
18
18
 
19
19
  `jekyll-archives` is not supported by GitHub Pages [PR](https://github.com/github/pages-gem/pull/106). You need to build it yourself if you want to use this. You can use Travis CI to do this for you. [Tutorial](https://gist.github.com/kemingy/776ccc839b28c0e8c0f867cddabb0b8e)
20
20
 
21
+ ## Usage
22
+
23
+ ### Social account
24
+
25
+ Social account can be set in your `_config.yml` file. This will be shown in the footer of page.
26
+
27
+ ### Header Link
28
+
29
+ Any file except `404` in root folder will be add to header, like `about.md` and `archive.html`.
30
+
31
+ ### Google Analytics
32
+
33
+ Set your `google_analytics` UA in `_config.yml`.
34
+
35
+ ### Math
36
+
37
+ Use `$\alpha$` for inline formula and `$$\Sigma$$` for outline formula.
38
+
39
+ ### Friends link
40
+
41
+ Add `name,url` to `_data/friends.csv`.
42
+
21
43
 
22
44
  ## Installation
23
45
 
@@ -2,14 +2,15 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- <h1>Archive of posts from {{ page.date | date: "%Y" }}</h1>
5
+ <h2 style="text-align: center">{{ page.date | date: "%Y" }}</h2>
6
6
 
7
- <ul class="posts">
8
- {% for post in page.posts %}
9
- <li>
10
- <span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
11
- <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
12
- </li>
13
- {% endfor %}
14
- </ul>
7
+ {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
8
+ {%- for post in page.posts -%}
9
+ <div class="post-card" style="display: block">
10
+ <span class="post-date">{{ post.date | date: date_format }}</span>
11
+ <span class="post-name">
12
+ <a href="{{ post.url | relative_url }}" class="post-link">{{ post.title }}</a>
13
+ </span>
14
+ </div>
15
+ {%- endfor -%}
15
16
 
@@ -2,14 +2,15 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- <h1>Archive of posts with {{ page.type }} '{{ page.title }}'</h1>
6
- <ul class="posts">
7
- {% for post in page.posts %}
8
- <li>
9
- <span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
10
- <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
11
- </li>
12
- {% endfor %}
13
- </ul>
5
+ <h2 style="text-align: center">{{ page.title }}</h2>
6
+ {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
7
+ {%- for post in page.posts -%}
8
+ <div class="post-card" style="display: block">
9
+ <span class="post-date">{{ post.date | date: date_format }}</span>
10
+ <span class="post-name">
11
+ <a href="{{ post.url | relative_url }}" class="post-link">{{ post.title }}</a>
12
+ </span>
13
+ </div>
14
+ {%- endfor -%}
14
15
 
15
16
  {{ content }}
data/_layouts/post.html CHANGED
@@ -20,7 +20,7 @@ layout: default
20
20
  </span>
21
21
  {%- endif -%}
22
22
  {%- for cate in page.categories -%}
23
- <a href="/category/{{ cate }}" class="post-category">
23
+ <a href="{{ "/category/" | append: cate | relative_url }}" class="post-category">
24
24
  {{ cate | escape }}
25
25
  </a>
26
26
  {%- endfor -%}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-ink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - keming
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-06 00:00:00.000000000 Z
11
+ date: 2018-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll