jekyll-theme-minimal-ryan 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -1
  3. data/README.md +23 -5
  4. data/_includes/header.html +13 -2
  5. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecbeb258fa390117a70682a774f2419c37e541082f3eb3865d116a50b7de4cfc
4
- data.tar.gz: 71014bd57ef7ec26b2aee44f2a706d202141af1259d755b7d6f0c7d5da38e23f
3
+ metadata.gz: befcbda98d70c573b6a04c0bff94df3f5d78c7c9303c5439db23af0918a14ca6
4
+ data.tar.gz: 8d0bfc7ff877d72ec1b3dea874cf3b436523baa5b249d9178b12a990a2be88da
5
5
  SHA512:
6
- metadata.gz: 7236aa82b9fc2c46bea89c2d5fb796287bfb1d52ed48b3d022ec194af050a7960f8f73d8f5b4127836ce872ce130bc787f9dbd156f333ea6444a426baea17fdd
7
- data.tar.gz: 4e9bc457da1c8422b9aa30d9604562ea6ae3d468abd11f317b55e795bb74aa904e285133b6794d344a6dd17c04f5f3dfcaf7955bba72e01de114f2b900271889
6
+ metadata.gz: b58bc8058130375bb6d2c7743998774e1b4a2efddb03508a66019f5b836d7ddd972a5b002bd979362fe2c15b7418bb22841f431f7ab037e383d099274e8d5393
7
+ data.tar.gz: c82a0b8beca3af2f48407f82e2c1e864fda6746692c8d7701dd6ba86ea352e4f8e57768ad80dc160b3cedaa3c2b141b9e60949d2803b1e4018654737ca9f9fd6
data/CHANGELOG.md CHANGED
@@ -1,7 +1,8 @@
1
- ## 0.2.1 (2022-12-28)
1
+ ## 0.3.0 (2023-01-03)
2
2
 
3
3
  ### Feat
4
4
 
5
+ - add capability to add more pages to header
5
6
  - add post cheat sheet
6
7
  - initialize theme
7
8
 
@@ -16,4 +17,5 @@
16
17
 
17
18
  ### Refactor
18
19
 
20
+ - add example image to cheat sheet post
19
21
  - convert media queries to mixins
data/README.md CHANGED
@@ -16,15 +16,33 @@ theme: minimal-ryan
16
16
 
17
17
  And then execute:
18
18
 
19
- $ bundle
20
-
21
- Or install it yourself as:
19
+ ```
20
+ bundle
21
+ ```
22
22
 
23
- $ gem install jekyll-theme-minimal-ryan
23
+ This will install all dependencies.
24
24
 
25
25
  ## Usage
26
26
 
27
- All customizable options can be configured in [_data/theme.yml](_data/theme.yml).
27
+ To test the theme locally, run
28
+
29
+ ```
30
+ bundle exec jekyll serve
31
+ ```
32
+
33
+ which will serve your site at [http://localhost:4000](http://localhost:4000).
34
+
35
+ ### Customization
36
+
37
+ All customizable options can be configured in [_data/theme.yml](_data/theme.yml). Simply create your own data file and override the settings in [_data/theme.yml](_data/theme.yml).
38
+
39
+ ### Adding a Blog Home
40
+
41
+ The theme provides you with a blog home that can display all the posts in the _posts folder. Simple create a file at the root directory and give it the `blog` layout in the front matter.
42
+
43
+ ### Customizing the Header
44
+
45
+ Whenever you create a new page (with any layout) at the root directory, the theme will add an entry to the header. If you want the name of the entry to be different from the file, add a title to the front matter of the page. This title will show up on the header instead.
28
46
 
29
47
  ## Contributing
30
48
 
@@ -1,11 +1,22 @@
1
1
  <header class="content-container">
2
2
  {%- assign page_paths = site.pages | map: "path" -%}
3
- {%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
4
3
 
5
4
  <a id="site-title" href="/">{{ site.data.theme.title }}</a>
6
5
 
7
6
  <nav>
8
7
  <a href="/">Home</a>
9
- <a href="/blog">Blog</a>
8
+ {%- for path in page_paths -%}
9
+ {%- assign page = site.pages | where: "path", path | first -%}
10
+ {%- if page.dir == "/" and page.url != "/" -%}
11
+ <a href="{{ page.url }}">
12
+ {%- if page.title -%}
13
+ {{ page.title | escape }}
14
+ {%- else -%}
15
+ {%- assign page_title = page.name | split: "." -%}
16
+ {{ page_title[0] | capitalize }}
17
+ {%- endif -%}
18
+ </a>
19
+ {%- endif -%}
20
+ {%- endfor -%}
10
21
  </nav>
11
22
  </header>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-minimal-ryan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryanshepps
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-29 00:00:00.000000000 Z
11
+ date: 2023-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.1.0
41
- description:
41
+ description:
42
42
  email:
43
43
  - ryansheppardd@gmail.com
44
44
  executables: []
@@ -78,7 +78,7 @@ licenses:
78
78
  - MIT
79
79
  metadata:
80
80
  plugin_type: theme
81
- post_install_message:
81
+ post_install_message:
82
82
  rdoc_options: []
83
83
  require_paths:
84
84
  - lib
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubygems_version: 3.3.26
97
- signing_key:
97
+ signing_key:
98
98
  specification_version: 4
99
99
  summary: Minimalistic blogging theme for Jekyll
100
100
  test_files: []