crane-theme 0.1.3 → 0.1.4
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 +8 -3
- data/_config.yml +2 -2
- data/_includes/header.html +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c548db22a71138b6074d92c3b8a670a327b3288703748c00686c2dd69d55935
|
|
4
|
+
data.tar.gz: 447bbb4193853f0294835f77c1fddc29422ed85fb3c6fc0f8a4113d53311f6ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d81c9c60258504c69fd896ad2963e40c894d10a6057ebbefa8b7f428594e982808c46678af95b87c456c2a7b09bef2336215eaf5bc4cede10b5548abd1eda3d1
|
|
7
|
+
data.tar.gz: 06ff314b3920b0b62dd002899309d4a4e17893aa86c00d8da285d3effc6b8ededae06bae369ce1b2222d75eb58f41e93268358784a8fd8874aec8cee7d7d81b2
|
data/README.md
CHANGED
|
@@ -4,14 +4,19 @@ This is a Jekyll theme for my personal website. You can use or fork it if you'd
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
|
+
### GitHub Pages
|
|
8
|
+
1. add [jekyll-remote-theme](https://github.com/benbalter/jekyll-remote-theme)
|
|
9
|
+
2. add `remote_theme: "garzaa/crane-theme"` to your `_config.yml`
|
|
10
|
+
3. follow steps below
|
|
7
11
|
|
|
12
|
+
### Other
|
|
8
13
|
Add this line to your Jekyll site's `Gemfile`:
|
|
9
14
|
|
|
10
15
|
```ruby
|
|
11
16
|
gem "crane-theme"
|
|
12
17
|
```
|
|
13
18
|
|
|
14
|
-
And add this line to your Jekyll site's `_config.yml
|
|
19
|
+
And add this line to your Jekyll site's `_config.yml` (if not using GitHub Pages):
|
|
15
20
|
|
|
16
21
|
```yaml
|
|
17
22
|
theme: crane-theme
|
|
@@ -29,8 +34,8 @@ Or install it yourself as:
|
|
|
29
34
|
|
|
30
35
|
This theme supports an archive and a home page link. They'll be populated automatically if supplied. Just add these to your `_config.yml`:
|
|
31
36
|
```yaml
|
|
32
|
-
archive_page:
|
|
33
|
-
home_page: index
|
|
37
|
+
archive_page: /archive
|
|
38
|
+
home_page: /index
|
|
34
39
|
```
|
|
35
40
|
|
|
36
41
|
## Contributing
|
data/_config.yml
CHANGED
data/_includes/header.html
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
|
6
6
|
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
|
|
7
7
|
{% if site.home_page %}
|
|
8
|
-
<a class="home-link" href="{{
|
|
8
|
+
<a class="home-link" href="{{ site.home_page | relative_url }}">home</a>
|
|
9
9
|
{% endif %}
|
|
10
10
|
|
|
11
11
|
{% if site.archive_page %}
|
|
12
|
-
<a class="archive-link" href="{{
|
|
12
|
+
<a class="archive-link" href="{{ site.archive_page | relative_url }}">all posts</a>
|
|
13
13
|
{% endif %}
|
|
14
14
|
</div>
|
|
15
15
|
</header>
|