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 +4 -4
- data/README.md +22 -0
- data/_layouts/archive.html +10 -9
- data/_layouts/category.html +10 -9
- data/_layouts/post.html +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: faf081a35c579b4d9d222bd043e029a153fb92019747ae3357ba908605d13dce
|
|
4
|
+
data.tar.gz: 100a58fb4d076c71e8a52e6f4d1c783f3a97dd4f8f71d3e03ef6a3749d75560f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/_layouts/archive.html
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
<
|
|
5
|
+
<h2 style="text-align: center">{{ page.date | date: "%Y" }}</h2>
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
{
|
|
9
|
-
<
|
|
10
|
-
<span class="post-date">{{ post.date | date:
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</
|
|
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
|
|
data/_layouts/category.html
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
</
|
|
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/
|
|
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.
|
|
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-
|
|
11
|
+
date: 2018-08-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|