@trimble-oss/modus-docs-hugo-theme 1.0.0-alpha3 → 1.0.0-alpha4

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,6 +37,8 @@
37
37
  const popoverTriggerList = document.querySelectorAll('[data-bs-toggle="popover"]')
38
38
  const popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl))
39
39
  </script>
40
+
41
+ {{- if not .IsHome -}}
40
42
  <script>
41
43
  // Disable all links with #
42
44
  var links = document.querySelectorAll('a[href="#"]');
@@ -48,7 +50,6 @@
48
50
  });
49
51
  });
50
52
  </script>
51
- {{- if not .IsHome -}}
52
53
  <script>
53
54
  // Change Submit buttons within docs examples to type=button
54
55
  var article = document.querySelector('article');
@@ -63,4 +64,4 @@
63
64
  {{- end -}}
64
65
  </body>
65
66
 
66
- </html>
67
+ </html>
@@ -1,9 +1,12 @@
1
1
  {{- if not .Site.IsServer -}}
2
2
 
3
- <!--
4
- <script defer data-domain="yourdomain.com" src="https://plausible.io/js/script.js"></script>
3
+ {{ template "_internal/google_analytics.html" . }}
4
+
5
+ {{- with .Site.Params.PlausibleAnalyticsDomain -}}
6
+ <script defer data-domain="{{- . -}}" src="https://plausible.io/js/script.outbound-links.js"></script>
5
7
  <script>
6
8
  window.plausible = window.plausible || function () { (window.plausible.q = window.plausible.q || []).push(arguments) }
7
9
  </script>
8
- -->
10
+ {{- end -}}
11
+
9
12
  {{- end -}}
@@ -14,8 +14,8 @@
14
14
  <link rel="stylesheet" href="{{ $styles.RelPermalink }}?v{{ hugo.Version }}">
15
15
 
16
16
  <!-- Load jQuery from CDN with fallback -->
17
- <script src="https://cdn.jsdelivr.net/npm/jquery@3.7.0/dist/jquery.min.js"></script>
18
- <script>window.jQuery || document.write('<script src="https://code.jquery.com/jquery-3.7.0.min.js"><\/script>');</script>
17
+ <script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"></script>
18
+ <script>window.jQuery || document.write('<script src="https://code.jquery.com/jquery-3.7.1.min.js"><\/script>');</script>
19
19
  <link rel="stylesheet" href="{{- .Site.BaseURL -}}fonts/modus-icons.css">
20
20
 
21
21
  <!-- Loads Dark Mode Toggle JS -->
@@ -78,4 +78,6 @@
78
78
  <!-- Loads Bootstrap 5 JS from CDN -->
79
79
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script>
80
80
 
81
- {{ partial "custom-header" . }}
81
+ {{ partial "analytics" . }}
82
+
83
+ {{ partial "custom-header" . }}
@@ -10,6 +10,11 @@
10
10
  class="img-fluid d-none d-sm-inline-block" alt="home" />
11
11
  <img src="https://modus-bootstrap.trimble.com/img/trimble-icon-rev.svg"
12
12
  class="d-inline-block d-sm-none px-1 mt-1" height="25" width="25" alt="home" />
13
+ {{- if .Site.Params.Title -}}
14
+ <div class="float-end text-white h2 d-none d-md-inline-block" style="margin-top: 12px;">
15
+ {{- .Site.Title -}}
16
+ </div>
17
+ {{- end -}}
13
18
  </a>
14
19
  </div>
15
20
 
@@ -28,4 +33,4 @@
28
33
  </div>
29
34
  </div>
30
35
  </div>
31
- </nav>
36
+ </nav>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trimble-oss/modus-docs-hugo-theme",
3
- "version": "1.0.0-alpha3",
3
+ "version": "1.0.0-alpha4",
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": {
@@ -32,12 +32,12 @@
32
32
  "eslint": "^8.48.0",
33
33
  "eslint-config-prettier": "^9.0.0",
34
34
  "htmlhint": "1.1.4",
35
- "hugo-bin": "0.113.0",
36
- "postcss": "8.4.28",
35
+ "hugo-bin": "0.114.2",
36
+ "postcss": "8.4.29",
37
37
  "postcss-cli": "10.1.0",
38
- "prettier": "3.0.2",
38
+ "prettier": "3.0.3",
39
39
  "stylelint": "15.10.3",
40
- "stylelint-config-standard-scss": "10.0.0"
40
+ "stylelint-config-standard-scss": "11.0.0"
41
41
  },
42
42
  "hugo-bin": {
43
43
  "buildTags": "extended"