crane-theme 0.1.2 → 0.1.5

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: 2d78d00ccaa4c4fed86625414605e91a33163050dc6de7b19aec9e59b6bdcfd0
4
- data.tar.gz: 8b957842b35baa470cf2275734caf5b198fff5dac981dc5057637388c58454c0
3
+ metadata.gz: 37ccbf8703d4344dddd5084fa216da3928732a45aed06e8c5b5ada431d08913b
4
+ data.tar.gz: 10440eba54e987547360b23b421e8e416e2022fba888dbfdd601644fc76fc001
5
5
  SHA512:
6
- metadata.gz: 5ef708835be0460297f7090c8ae3face90cf3b9261c0a35bc3ec4ce9bc462cf3287cf741fe0c26a9e0498a4dcae99d9966781922558a1833591ce2318e68ac91
7
- data.tar.gz: a6b26b8c9eb3e1058c45db89849e1b4011d5ffb6f80f9e6617eaa5df52fa706f740fb737b8e79d75f9bba41edafc807f8fb4a8877f844b9cbd91fa0d9f9bebca
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: index
33
- home_page: index
37
+ archive_page: /archive
38
+ home_page: /index
34
39
  ```
35
40
 
36
41
  ## Contributing
data/_config.yml CHANGED
@@ -10,5 +10,5 @@ kramdown:
10
10
  plugins:
11
11
  - jekyll-seo-tag
12
12
 
13
- archive_page: index
14
- home_page: index
13
+ archive_page: /index
14
+ home_page: /index
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/x-mathjax-config">
14
- MathJax.Hub.Config({
15
- TeX: { equationNumbers: { autoNumber: "AMS" } }
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>
@@ -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="{{ "/"+site.home_page | relative_url }}">home</a>
8
+ <a class="home-link" href="{{ site.home_page | relative_url }}">home</a>
9
9
  {% endif %}
10
10
  &nbsp;
11
11
  {% if site.archive_page %}
12
- <a class="archive-link" href="{{ "/"+site.archive_page | relative_url }}">all posts</a>
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
@@ -26,7 +26,7 @@ html, body {
26
26
  width: 100%;
27
27
  }
28
28
 
29
- .post {
29
+ .post, .home {
30
30
  width: 100%;
31
31
  max-width: 800px;
32
32
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crane-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Garza