jekyll-theme-miniplex 0.1.2 → 0.2.0

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: a57a0ea671d3ef283166efd4afe96ae75633007bd6ea802782d4f8858577eae1
4
- data.tar.gz: 6349f3cf65b59b0dba5c7c4d9a12adab25bac5699de55b760d77897a0b801625
3
+ metadata.gz: d923a2ea77bccc32e26813fbdaef543dcd00c16d357c66dbb8b1b12f139cf7b9
4
+ data.tar.gz: 7306148d3865fe8b75814f70ddc82403750b38d678e79e6bfe1ef4dbeb5fe127
5
5
  SHA512:
6
- metadata.gz: 909bc83df3a425fa092eb2147158ace5fada189f3e516abf1ce06748120f0664534bfe2525d86ddf66a687eb1689498815c7eb5877dc8d975e2b7ce168d93bdb
7
- data.tar.gz: '08ded7b80dc8a3c25b8ab3f338667963d8a4591a686dc1eb744c99b954ca8ef12765a285167e1dd4ca44cfd0e9dbb046b01750bb976160a2d5a3d4fb95dba172'
6
+ metadata.gz: 5a854ada32e2862f4d0779e9ed3b05db24e56fa111bb1839f49910e251791e06fe7faf3272dd9f9bbf5a01fb2e6748f10cb7446aadd19d2c5a599f3972228f99
7
+ data.tar.gz: a141aea427ed11542f049a1460f084498d6bcf59943e39beabdb14c48ba5763c6885b9726cad0aa50c1907f78d105e714f4997db44e28c7beac31e1cfbdfae83
data/README.md CHANGED
@@ -40,8 +40,18 @@ And then execute:
40
40
 
41
41
  ## Usage
42
42
 
43
- At the moment, there is only a `default` layout.
43
+ ### Layouts
44
44
 
45
+ At the moment, there is a `page` and a `post` layout, but they use the `default` layout and so are identical.
46
+
47
+ ### Configuration options
48
+
49
+ To change the label of the mobile navigation menu, add this to your `_config.yml`:
50
+
51
+ ```yaml
52
+ miniplex:
53
+ mobile_nav_menu_title: "Menü"
54
+ ```
45
55
 
46
56
  ## License
47
57
 
data/_config.yml CHANGED
@@ -2,5 +2,24 @@
2
2
  # Jekyll merges this with the user's _config.yml, see
3
3
  # https://jekyllrb.com/docs/themes/#pre-configuring-theme-gems40
4
4
 
5
+ title: Miniplex Theme for Jekyll
6
+
5
7
  plugins:
6
8
  - jekyll-coffeescript
9
+
10
+ exclude:
11
+ - .sass-cache/
12
+ - .jekyll-cache/
13
+ - gemfiles/
14
+ - Gemfile
15
+ - Gemfile.lock
16
+ - "*.gem"
17
+ - "*.gemspec"
18
+ - "*.sublime-project"
19
+ - "*.sublime-workspace"
20
+ - node_modules/
21
+ - vendor/bundle/
22
+ - vendor/cache/
23
+ - vendor/gems/
24
+ - vendor/ruby/
25
+
@@ -1,18 +1,29 @@
1
1
  <ul>
2
- <li id="site-title"><a href="/">{{ site.title }}</a></li>
2
+ <li id="site-title"><a href="/">{{ site.title | default: "Your site has no title yet. Set it in _config.yml." }}</a></li>
3
+ <li>Pages</li>
3
4
  <li>
4
- {% if page.url == "/" %}
5
- <a href="/" class="active">Start</a>
6
- {% else %}
7
- <a href="/">Start</a>
8
- {% endif %}
5
+ <ul>
6
+ {% assign site_pages = site.pages %}
7
+ {% for listed_page in site_pages %}
8
+ {% if listed_page.url == page.url %}
9
+ <li><a href="{{listed_page.url}}" class="active">{{listed_page.title}}</a></li>
10
+ {% else %}
11
+ <li><a href="{{listed_page.url}}">{{listed_page.title}}</a></li>
12
+ {% endif %}
13
+ {% endfor %}
14
+ </ul>
9
15
  </li>
16
+ <li>Posts</li>
10
17
  <li>
11
- {% assign inside_blog = page.url | matches: "^/blog/" %}
12
- {% if inside_blog %}
13
- <a href="/blog/" class="active">Blog</a>
14
- {% else %}
15
- <a href="/blog/">Blog</a>
16
- {% endif %}
18
+ <ul>
19
+ {% assign site_posts = site.posts %}
20
+ {% for listed_post in site_posts %}
21
+ {% if listed_post.url == page.url %}
22
+ <li><a href="{{listed_post.url}}" class="active">{{listed_post.title}}</a></li>
23
+ {% else %}
24
+ <li><a href="{{listed_post.url}}">{{listed_post.title}}</a></li>
25
+ {% endif %}
26
+ {% endfor %}
27
+ </ul>
17
28
  </li>
18
29
  </ul>
@@ -1,25 +1,36 @@
1
1
  <div id="transparent-nav-close-area">
2
2
  </div>
3
3
  <ul id="navigation-items">
4
+ <li>Pages</li>
4
5
  <li>
5
- {% if page.url == "/" %}
6
- <a href="/" class="active">Start</a>
7
- {% else %}
8
- <a href="/">Start</a>
9
- {% endif %}
6
+ <ul>
7
+ {% assign site_pages = site.pages %}
8
+ {% for listed_page in site_pages %}
9
+ {% if listed_page.url == page.url %}
10
+ <li><a href="{{listed_page.url}}" class="active">{{listed_page.title}}</a></li>
11
+ {% else %}
12
+ <li><a href="{{listed_page.url}}">{{listed_page.title}}</a></li>
13
+ {% endif %}
14
+ {% endfor %}
15
+ </ul>
10
16
  </li>
17
+ <li>Posts</li>
11
18
  <li>
12
- {% assign inside_blog = page.url | matches: "^/blog/" %}
13
- {% if inside_blog %}
14
- <a href="/blog/" class="active">Blog</a>
15
- {% else %}
16
- <a href="/blog/">Blog</a>
17
- {% endif %}
19
+ <ul>
20
+ {% assign site_posts = site.posts %}
21
+ {% for listed_post in site_posts %}
22
+ {% if listed_post.url == page.url %}
23
+ <li><a href="{{listed_post.url}}" class="active">{{listed_post.title}}</a></li>
24
+ {% else %}
25
+ <li><a href="{{listed_post.url}}">{{listed_post.title}}</a></li>
26
+ {% endif %}
27
+ {% endfor %}
28
+ </ul>
18
29
  </li>
19
30
  </ul>
20
31
  <ul id="navigation-controls">
21
- <li id="site-title"><a href="/">{{ site.title }}</a></li>
32
+ <li id="site-title"><a href="/">{{ site.title | default: "Your site has no title yet. Set it in _config.yml." }}</a></li>
22
33
  <li>
23
- <button id="mobile-navigation-toggle">Menü</button>
34
+ <button id="mobile-navigation-toggle">{{ site.miniplex.mobile_nav_menu_title | default: "Menu" }}</button>
24
35
  </li>
25
36
  </ul>
@@ -472,23 +472,7 @@ body
472
472
  tbody
473
473
  td
474
474
  @include responsive_property(padding, $xs: math.div($unit, 8), $s: math.div($unit, 4), $m: math.div($unit, 2), $otherwise: math.div($unit, 2))
475
-
476
- nav
477
-
478
- p, li
479
- font-size: 1.25 * $unit
480
-
481
- a
482
- color: $heading_foreground_color
483
- text-decoration: none
484
-
485
- a.active
486
- font-weight: bold
487
-
488
- button
489
- color: $primary_foreground_color
490
- cursor: pointer
491
-
475
+
492
476
  // Desktop Navigation
493
477
  nav#navigation-desktop
494
478
  background-color: $content-background-color
@@ -508,9 +492,27 @@ body
508
492
  @include linear_responsive_property("padding-left", $large_breakpoint, $unit, $large_breakpoint + 8 * $unit, 8 * $unit)
509
493
  padding-right: $unit
510
494
 
495
+ li
496
+ margin-bottom: math.div($unit, 2)
497
+
498
+ p, li
499
+ font-size: 1.25 * $unit
500
+
501
+ a
502
+ color: $heading_foreground_color
503
+ text-decoration: none
504
+
505
+ a.active
506
+ font-weight: bold
507
+
508
+ li ul
509
+ @include responsive_property(margin-left, $xs: 0.25 * $unit, $s: 0.5 * $unit, $otherwise: 1 * $unit)
510
+
511
511
  li#site-title
512
512
  @include title_font
513
513
  font-size: 2.25 * $unit
514
+ @include responsive_property(margin-bottom, $xs: 1.5 * $unit, $s: 1.75 * $unit, $m: 2 * $unit, $otherwise: 2 * $unit)
515
+
514
516
 
515
517
  // Mobile navigation, both states
516
518
  nav#navigation-mobile
@@ -525,10 +527,6 @@ body
525
527
  grid-template-columns: auto
526
528
  grid-template-rows: [transparent-nav-close-area] 4 * $unit [navigation-items] 1fr [navigation-controls] min-content
527
529
 
528
- #transparent-nav-close-area
529
- grid-row: transparent-nav-close-area / span 1
530
- cursor: pointer
531
-
532
530
  #navigation-items
533
531
  grid-row: navigation-items / span 1
534
532
  background-color: $content_background_color
@@ -538,6 +536,26 @@ body
538
536
  @include responsive_property(padding-bottom, $m: math.div($unit, 2), $otherwise: math.div($unit, 4))
539
537
  @include responsive_property(padding-right, $m: $unit, $otherwise: math.div($unit, 2))
540
538
 
539
+ li
540
+ margin-bottom: math.div($unit, 2)
541
+
542
+ p, li
543
+ font-size: 1.25 * $unit
544
+
545
+ a
546
+ color: $heading_foreground_color
547
+ text-decoration: none
548
+
549
+ a.active
550
+ font-weight: bold
551
+
552
+ li ul
553
+ @include responsive_property(margin-left, $xs: 0.25 * $unit, $s: 0.5 * $unit, $otherwise: 1 * $unit)
554
+
555
+ #transparent-nav-close-area
556
+ grid-row: transparent-nav-close-area / span 1
557
+ cursor: pointer
558
+
541
559
  #navigation-controls
542
560
  grid-row: navigation-controls / span 1
543
561
  background-color: $content_background_color
@@ -554,6 +572,7 @@ body
554
572
  @include responsive_property(padding-bottom, $m: math.div($unit, 2), $otherwise: math.div($unit, 4))
555
573
 
556
574
  a
575
+ color: $heading_foreground_color
557
576
  @include responsive_property(padding-top, $m: math.div($unit, 2), $otherwise: math.div($unit, 4))
558
577
  @include responsive_property(padding-bottom, $m: math.div($unit, 2), $otherwise: math.div($unit, 4))
559
578
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-miniplex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Würsch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-18 00:00:00.000000000 Z
11
+ date: 2022-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll