jekyll-theme-minimal-ryan 0.2.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecbeb258fa390117a70682a774f2419c37e541082f3eb3865d116a50b7de4cfc
4
- data.tar.gz: 71014bd57ef7ec26b2aee44f2a706d202141af1259d755b7d6f0c7d5da38e23f
3
+ metadata.gz: e2f7640f982a24146cd38a94865e5b3084f3a1320da7e592f29fbeaa0e8f3490
4
+ data.tar.gz: 68179eb761a44b3cfd022d8200e85170aff022bf40b72d68a8bc94e0215c2403
5
5
  SHA512:
6
- metadata.gz: 7236aa82b9fc2c46bea89c2d5fb796287bfb1d52ed48b3d022ec194af050a7960f8f73d8f5b4127836ce872ce130bc787f9dbd156f333ea6444a426baea17fdd
7
- data.tar.gz: 4e9bc457da1c8422b9aa30d9604562ea6ae3d468abd11f317b55e795bb74aa904e285133b6794d344a6dd17c04f5f3dfcaf7955bba72e01de114f2b900271889
6
+ metadata.gz: 89af8210fc796bc9f055d76198a2401c2fb5aeec22dda0db25f14f3ff865d4e06c475bf2875f399cce0068a93f9b13c80b8fddf8f3e2e04f97d5ba6bed51b8fb
7
+ data.tar.gz: 1ec48f872b3c4d21504a84cf874255e6ce7e99a91995bce7e4939e762b9db1d23f17c377d74cda04491922938a26712a27a466d15074938cbe7bdcb389aa087a
data/CHANGELOG.md CHANGED
@@ -1,7 +1,18 @@
1
- ## 0.2.1 (2022-12-28)
1
+ ## 0.4.0 (2023-08-14)
2
2
 
3
3
  ### Feat
4
4
 
5
+ - make width smoother at smaller screens
6
+
7
+ ### Fix
8
+
9
+ - width becoming larger as screen gets smaller
10
+
11
+ ## 0.3.0 (2023-01-03)
12
+
13
+ ### Feat
14
+
15
+ - add capability to add more pages to header
5
16
  - add post cheat sheet
6
17
  - initialize theme
7
18
 
@@ -16,4 +27,5 @@
16
27
 
17
28
  ### Refactor
18
29
 
30
+ - add example image to cheat sheet post
19
31
  - 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>
@@ -2,7 +2,7 @@
2
2
  margin: auto;
3
3
 
4
4
  @include extra-small-screen {
5
- width: $screen-width-extra-small;
5
+ width: 90%;
6
6
  }
7
7
 
8
8
  @include small-screen {
@@ -165,10 +165,10 @@
165
165
  padding: 8px 0;
166
166
  width: 100%;
167
167
  line-height: 1.4em;
168
+ }
168
169
 
169
- @include large-screen {
170
- width: 65%;
171
- }
170
+ & > *:not(#post-title-img) {
171
+ max-width: 780px;
172
172
  }
173
173
 
174
174
  #post-title-img {
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.4.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-08-14 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: []