@shift72/core-template 1.9.27 → 1.9.28

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/shift72/core-template/compare/1.9.27...HEAD)
3
+ ## [Unreleased](https://github.com/shift72/core-template/compare/1.9.28...HEAD)
4
+
5
+ ## [1.9.28](https://github.com/shift72/core-template/compare/1.9.27...1.9.28)
6
+
7
+ ### Added
8
+
9
+ - external_links_new_tab config to make external links in header / footer nav open in a new tab
4
10
 
5
11
  ## [1.9.27](https://github.com/shift72/core-template/compare/1.9.26...1.9.27)
6
12
 
package/kibble.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-template",
3
- "version": "1.9.27",
3
+ "version": "1.9.28",
4
4
  "siteUrl": "https://staging-store-kibble.shift72.com",
5
5
  "builderVersion": "0.17.8",
6
6
  "defaultLanguage": "en",
@@ -195,5 +195,5 @@
195
195
  "pageSize": 0
196
196
  }
197
197
  ],
198
- "coreTemplateVersion": "1.9.27"
198
+ "coreTemplateVersion": "1.9.28"
199
199
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shift72/core-template",
3
- "version": "1.9.27",
3
+ "version": "1.9.28",
4
4
  "description": "Shift72 core template",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -4,7 +4,7 @@
4
4
  <ul class="nav">
5
5
  {{ range navLinks }}
6
6
  <li class="nav-item {{ len(.Link.ExternalURL) == 0 && routeToSlug(.Link.Slug) == currentUrlPath ? "active" : "" }}">
7
- <a class="nav-link" href="{{ len(.Link.ExternalURL) > 0 ? .Link.ExternalURL : routeToSlug(.Link.Slug) }}">{{ .Label }}</a>
7
+ <a class="nav-link" href="{{ len(.Link.ExternalURL) > 0 ? .Link.ExternalURL : routeToSlug(.Link.Slug) }}" target="{{len(.Link.ExternalURL) > 0 && config("external_links_new_tab") == "true" ? "_blank" : "_self"}}">{{ .Label }}</a>
8
8
  </li>
9
9
  {{ end }}
10
10
  </ul>
@@ -52,7 +52,7 @@
52
52
  <a class="s72-dropdown-toggle nav-link" href="{{len(.Link.ExternalURL) > 0 ? .Link.ExternalURL : len(.Items) == 0 ? routeToSlug(.Link.Slug) : "#"}}">{{.Label}}</a>
53
53
  <div class="s72-dropdown-menu sub-nav-menu">
54
54
  {{range sub := .Items}}
55
- <a class="nav-link" href="{{len(sub.Link.ExternalURL) > 0 ? sub.Link.ExternalURL : routeToSlug(sub.Link.Slug) }}">{{sub.Label}}</a>
55
+ <a class="nav-link" href="{{len(sub.Link.ExternalURL) > 0 ? sub.Link.ExternalURL : routeToSlug(sub.Link.Slug) }}" target="{{len(.Link.ExternalURL) > 0 && config("external_links_new_tab") == "true" ? "_blank" : "_self"}}">{{sub.Label}}</a>
56
56
  {{end}}
57
57
  </div>
58
58
  <i class="fa fa-angle-down dropdown-caret"></i>
@@ -60,7 +60,7 @@
60
60
  </li>
61
61
  {{else}}
62
62
  <li class="nav-item {{len(.Link.ExternalURL) == 0 && routeToSlug(.Link.Slug) == currentUrlPath ? "active" : ""}}">
63
- <a class="nav-link" href="{{len(.Link.ExternalURL) > 0 ? .Link.ExternalURL : routeToSlug(.Link.Slug)}}">{{.Label}}</a>
63
+ <a class="nav-link" href="{{len(.Link.ExternalURL) > 0 ? .Link.ExternalURL : routeToSlug(.Link.Slug)}}" target="{{len(.Link.ExternalURL) > 0 && config("external_links_new_tab") == "true" ? "_blank" : "_self"}}" >{{.Label}}</a>
64
64
  </li>
65
65
  {{end}}
66
66
  {{end}}