@trimble-oss/modus-docs-hugo-theme 1.0.0-alpha17 → 1.0.0-alpha19

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.
@@ -1,4 +1,4 @@
1
- {{- if not .Site.IsServer -}}
1
+ {{- if not hugo.IsServer -}}
2
2
 
3
3
  {{ template "_internal/google_analytics.html" . }}
4
4
 
@@ -55,10 +55,11 @@
55
55
 
56
56
  <!-- Polyfills for Internet Explorer 11 -->
57
57
  <script nomodule crossorigin="anonymous"
58
- src="https://polyfill.io/v3/polyfill.min.js?features=default%2CNumber.parseInt%2CNumber.parseFloat%2CArray.prototype.find%2CArray.prototype.includes"></script>
58
+ src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=default%2CNumber.parseInt%2CNumber.parseFloat%2CArray.prototype.find%2CArray.prototype.includes"></script>
59
59
  <script
60
60
  nomodule>window.MSInputMethodContext && document.documentMode && document.write('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-ie11@5/css/bootstrap-ie11.min.css"><script src="https://cdn.jsdelivr.net/combine/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js,npm/ie11-custom-properties@4,npm/element-qsa-scope@1"><\/script>');</script>
61
61
 
62
+ {{- if not .Site.Params.RemoveSearch -}}
62
63
  {{- if not .Params.hideSearch -}}
63
64
  <script>
64
65
  var baseurl = "{{- .Site.BaseURL -}}";
@@ -71,6 +72,7 @@
71
72
  {{ $js := slice $autocomplete $lunr $search | resources.Concat "js/search.js" | resources.Minify }}
72
73
  <script src="{{- $js.RelPermalink -}}" fetchpriority="low"></script>
73
74
  {{- end -}}
75
+ {{- end -}}
74
76
  {{ if .IsHome }}
75
77
  {{ hugo.Generator }}
76
78
  {{ end }}
@@ -19,8 +19,11 @@
19
19
 
20
20
  <div class="d-flex d-row">
21
21
 
22
+ {{- with .Site.Params.RemoveSearch -}}{{else}}
22
23
  {{ partial "navbar-search" . }}
24
+ {{ end }}
23
25
 
26
+ {{- with .Site.Params.RemoveSearch -}}{{else}}
24
27
  <div class="dropdown">
25
28
  <button type="button" class="btn btn-lg btn-primary bg-transparent btn-icon-only"
26
29
  data-bs-toggle="dropdown" aria-expanded="false" aria-label="Menu">
@@ -28,6 +31,7 @@
28
31
  </button>
29
32
 
30
33
  {{ partial "navbar-dropdown" . }}
34
+ {{ end }}
31
35
 
32
36
  </div>
33
37
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trimble-oss/modus-docs-hugo-theme",
3
- "version": "1.0.0-alpha17",
3
+ "version": "1.0.0-alpha19",
4
4
  "description": "A Documentation theme for Hugo built by Trimble",
5
5
  "homepage": "https://github.com/trimble-oss/modus-docs-hugo-theme",
6
6
  "bugs": {
@@ -26,20 +26,20 @@
26
26
  "test": "npm run lint-css && npm run lint-html && npm run lint-js"
27
27
  },
28
28
  "dependencies": {
29
- "@trimble-oss/modus-bootstrap": "2.0.0-alpha19",
30
- "@trimble-oss/modus-icons": "1.9.0"
29
+ "@trimble-oss/modus-bootstrap": "2.0.0-alpha23",
30
+ "@trimble-oss/modus-icons": "1.12.1"
31
31
  },
32
32
  "devDependencies": {
33
- "autoprefixer": "10.4.17",
34
- "eslint": "8.56.0",
33
+ "autoprefixer": "10.4.19",
34
+ "eslint": "8.57.0",
35
35
  "eslint-config-prettier": "9.1.0",
36
36
  "htmlhint": "1.1.4",
37
- "hugo-bin": "0.119.0",
38
- "postcss": "8.4.33",
37
+ "hugo-bin": "0.122.1",
38
+ "postcss": "8.4.38",
39
39
  "postcss-cli": "11.0.0",
40
- "prettier": "3.2.4",
41
- "stylelint": "16.2.0",
42
- "stylelint-config-standard-scss": "13.0.0",
40
+ "prettier": "3.2.5",
41
+ "stylelint": "16.3.1",
42
+ "stylelint-config-standard-scss": "13.1.0",
43
43
  "stylelint-order": "6.0.4"
44
44
  },
45
45
  "hugo-bin": {