jekyll-calconnect-theme 0.3.1 → 0.4.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: 9757ecbd38264ee4d3650465b7cc23b02b5dc4667c28299034eec1de22f3b507
4
- data.tar.gz: 99dd61a5a179bfc14792be611eb1b409933c7178308603fe5c9d2548486d756d
3
+ metadata.gz: 2a52491a7de7c409fb74234bbff4668f33f5286d4ceb74d33dd7c32853eb1f6b
4
+ data.tar.gz: e1cbcba666dbb9c051d2e273d6d33796323aa35822a6523e9bab6c87a6e2c694
5
5
  SHA512:
6
- metadata.gz: e5462267625d0cbba3998d571fbb64039eec55d5896ad375472343dc42776197e6b6925a40344563be8723d91fa3e9bdfdd133de28733e0023e5e889368f9d8b
7
- data.tar.gz: 411104c99697c651a38e96bb73c69f57e5b80fba508a3e864cece50334babbf1c463c1edb7098b1a4b9f3b3fffb467955b9f222a7a685d6c64347c06e7e978f9
6
+ metadata.gz: d663483cd0583db0a8c62053e52fd7c9a03b9e656fd8a220137ee8179afcf7fe0e693c2e9ea705070815f80d81d10331cbf578b064de124f91931f964cdb6b01
7
+ data.tar.gz: b76379cbdde7cbab20794177be378db076e880b77f890643052306a6a8784269a395cd0274c2b739d45fe844e851aafbb6adb55535f454f35ae110a553c3cf83
@@ -2,7 +2,22 @@
2
2
  layout: base
3
3
  ---
4
4
 
5
- <section class="documentation">
5
+ {% comment %}Determine if a sidebar section matches the current page{% endcomment %}
6
+ {% assign _has_sidebar = false %}
7
+ {% for section in site.data.navigation_sidebar.sections %}
8
+ {% assign _matched = false %}
9
+ {% if section.match_list %}
10
+ {% for m in section.match_list %}
11
+ {% if page.url contains m %}{% assign _matched = true %}{% break %}{% endif %}
12
+ {% endfor %}
13
+ {% elsif section.match %}
14
+ {% if page.url contains section.match %}{% assign _matched = true %}{% endif %}
15
+ {% endif %}
16
+ {% if _matched %}{% assign _has_sidebar = true %}{% break %}{% endif %}
17
+ {% endfor %}
18
+
19
+ <section class="documentation{% unless _has_sidebar %} no-sidebar{% endunless %}">
20
+ {% if _has_sidebar %}
6
21
  <!-- Mobile sidebar backdrop -->
7
22
  <div class="docs-nav-backdrop"></div>
8
23
 
@@ -12,6 +27,7 @@ layout: base
12
27
  {% include sidebar-nav.html %}
13
28
  </div>
14
29
  </nav>
30
+ {% endif %}
15
31
 
16
32
  <!-- Main Article -->
17
33
  <article>
@@ -70,6 +70,11 @@
70
70
  }
71
71
  }
72
72
 
73
+ // No-sidebar variant: article takes full width
74
+ .documentation.no-sidebar > article {
75
+ max-width: none;
76
+ }
77
+
73
78
  // Main article
74
79
  .documentation > article {
75
80
  flex: 1;
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module CalconnectTheme
5
- VERSION = "0.3.1"
5
+ VERSION = "0.4.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-calconnect-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - CalConnect