feat: configurable secondary/footer nav title

This commit is contained in:
Tom Vines 2025-08-03 22:43:35 +10:00
parent eb50cb6bb0
commit 7a0373583c
Signed by: dragonwocky
SSH Key Fingerprint: SHA256:vCxDSu/DvGebbNiQjCVzOuxKmT8ODOzaLx+dTRtawyk
3 changed files with 13 additions and 3 deletions

View File

@ -47,6 +47,9 @@
"options": ["Portrait", "Landscape", "Square", "Natural"],
"default": "Portrait"
},
"secondary_navigation": {
"type": "text"
},
"footer_copyright": {
"type": "text"
},

View File

@ -24,6 +24,7 @@
</ul>
</div>
{{#if @site.secondary_navigation}}
{{#if @custom.secondary_navigation}}{{/if}}
{{navigation type="secondary"}}
{{/if}}
</div>

View File

@ -33,7 +33,13 @@
{{#foreach navigation limit="5"}}
{{#if @first}}
<div class="footer-nav-column">
<small>{{t "Column 1"}}</small>
<small>
{{#if @custom.secondary_navigation}}
{{@custom.secondary_navigation}}
{{else}}
{{t "Column 1"}}
{{/if}}
</small>
<ul>
{{/if}}
<li><a href="{{url absolute="true"}}">{{label}}</a></li>
@ -46,7 +52,7 @@
{{#foreach navigation limit="5" from="6"}}
{{#if @first}}
<div class="footer-nav-column">
<small>{{t "Column 2"}}</small>
<small>&nbsp;</small>
<ul>
{{/if}}
<li><a href="{{url absolute="true"}}">{{label}}</a></li>
@ -59,7 +65,7 @@
{{#foreach navigation from="11"}}
{{#if @first}}
<div class="footer-nav-column">
<small>{{t "Column 3"}}</small>
<small>&nbsp;</small>
<ul>
{{/if}}
<li><a href="{{url absolute="true"}}">{{label}}</a></li>