crane-theme 0.1.2 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -3
- data/_config.yml +2 -2
- data/_includes/head.html +3 -6
- data/_includes/header.html +2 -2
- data/assets/css/style.css +1 -1
- 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: 37ccbf8703d4344dddd5084fa216da3928732a45aed06e8c5b5ada431d08913b
|
4
|
+
data.tar.gz: 10440eba54e987547360b23b421e8e416e2022fba888dbfdd601644fc76fc001
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d5b68976c61d21c6f5130191d8ce8fc4e8f20fe4927b7594801a717fa3c3ef1fbd94c8ab7ffe021db58a09dbe1ff813160b25ab85eddb3799d77b07879a74b7
|
7
|
+
data.tar.gz: f0fbcbfb709f72509197c731dbb5200c55cb194d94f27b4bc320c10aa73e1a7606eca6ec0a75b8d911216e8258ae26479b4e1ec6c1c774c3bf2ba15a237dbcb0
|
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/head.html
CHANGED
@@ -10,11 +10,8 @@
|
|
10
10
|
<link rel="stylesheet" href="{{ "/assets/css/code.css" | relative_url }}">
|
11
11
|
{% if page.usemathjax %}
|
12
12
|
<!-- for mathjax support -->
|
13
|
-
<script type="text/
|
14
|
-
|
15
|
-
|
16
|
-
});
|
17
|
-
</script>
|
18
|
-
<script type="text/javascript" async src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
13
|
+
<script type="text/javascript" async
|
14
|
+
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
|
15
|
+
</script>
|
19
16
|
{% endif %}
|
20
17
|
</head>
|
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>
|
data/assets/css/style.css
CHANGED