@port60/template-kit 0.7.0 → 0.8.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@port60/template-kit",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Build Port60 site templates locally: scaffold, live-preview, validate against the platform contract, and package for studio upload. AI-agent ready — every scaffold ships AGENTS.md and validate emits machine-readable JSON.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,14 +33,14 @@
33
33
  <a href="{{ item.href }}" class="nav-dropdown-toggle" aria-haspopup="true">{{ item.label }} ▾</a>
34
34
  <span class="nav-dropdown-menu">
35
35
  {% for child in item.children %}
36
- <a href="{{ child.href }}">{{ child.label }}</a>
36
+ <a href="{{ child.href }}"{% if child.external %} target="_blank" rel="noopener"{% endif %}>{{ child.label }}</a>
37
37
  {% endfor %}
38
38
  </span>
39
39
  </span>
40
40
  {% elsif item.cta %}
41
- <a class="nav-cta" href="{{ item.href }}">{{ item.label }}</a>
41
+ <a class="nav-cta" href="{{ item.href }}"{% if item.external %} target="_blank" rel="noopener"{% endif %}>{{ item.label }}</a>
42
42
  {% else %}
43
- <a href="{{ item.href }}">{{ item.label }}</a>
43
+ <a href="{{ item.href }}"{% if item.external %} target="_blank" rel="noopener"{% endif %}>{{ item.label }}</a>
44
44
  {% endif %}
45
45
  {% endfor %}
46
46
  {% island 'member_menu' %}
@@ -59,9 +59,19 @@
59
59
  {% if brand.tagline %}<h2>{{ brand.tagline }}</h2>{% endif %}
60
60
  </div>
61
61
  <div class="footer-links">
62
- {% for item in nav.items %}
63
- <a href="{{ item.href }}">{{ item.label }}</a>
64
- {% endfor %}
62
+ {% comment %} A tenant-curated footer menu when they've built one, else the main nav. {% endcomment %}
63
+ {% if nav.footer.size > 0 %}
64
+ {% for item in nav.footer %}
65
+ <a href="{{ item.href }}"{% if item.external %} target="_blank" rel="noopener"{% endif %}>{{ item.label }}</a>
66
+ {% for child in item.children %}
67
+ <a href="{{ child.href }}"{% if child.external %} target="_blank" rel="noopener"{% endif %}>{{ child.label }}</a>
68
+ {% endfor %}
69
+ {% endfor %}
70
+ {% else %}
71
+ {% for item in nav.items %}
72
+ <a href="{{ item.href }}">{{ item.label }}</a>
73
+ {% endfor %}
74
+ {% endif %}
65
75
  </div>
66
76
  </div>
67
77
  <div class="container">
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starter",
3
- "version": "1.5.5",
3
+ "version": "1.6.0",
4
4
  "format": "port60-liquid@1",
5
5
  "label": "Starter",
6
6
  "description": "The reference template for the Port60 dialect — the developer docs' worked example and the base to copy when building your own. 1.1.0 adds the layout slot: the template owns the header, navigation and footer chrome.",