feat: raw html site description

This commit is contained in:
Tom Vines 2025-08-06 22:13:24 +10:00
parent ca016828ac
commit 4f37370e8d
Signed by: dragonwocky
SSH Key Fingerprint: SHA256:vCxDSu/DvGebbNiQjCVzOuxKmT8ODOzaLx+dTRtawyk
4 changed files with 12 additions and 5 deletions

View File

@ -4416,6 +4416,7 @@ textarea::placeholder {
} }
.footer-nav a:hover, .footer-nav a:hover,
.footer-description a:hover,
.footer-copyright a:hover { .footer-copyright a:hover {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 1px; text-decoration-thickness: 1px;
@ -4542,7 +4543,6 @@ textarea::placeholder {
.footer-copyright { .footer-copyright {
font-size: 1.4rem; font-size: 1.4rem;
width: 100%; width: 100%;
margin-top: 6vh;
} }
/* RWD Footer /* RWD Footer

View File

@ -47,7 +47,10 @@
"options": ["Portrait", "Landscape", "Square", "Natural"], "options": ["Portrait", "Landscape", "Square", "Natural"],
"default": "Portrait" "default": "Portrait"
}, },
"secondary_navigation": { "secondary_navigation_title": {
"type": "text"
},
"site_description": {
"type": "text" "type": "text"
}, },
"footer_copyright": { "footer_copyright": {

View File

@ -6,9 +6,13 @@
<div class="footer-logo"> <div class="footer-logo">
{{>logo}} {{>logo}}
</div> </div>
{{#if @custom.site_description}}
<p class="footer-description">{{{@custom.site_description}}}</p>
{{else}}
{{#if @site.description}} {{#if @site.description}}
<p class="footer-description">{{@site.description}}</p> <p class="footer-description">{{@site.description}}</p>
{{/if}} {{/if}}
{{/if}}
</div> </div>
<div class="footer-nav"> <div class="footer-nav">
<div class="footer-nav-column is-social"> <div class="footer-nav-column is-social">
@ -24,7 +28,7 @@
</ul> </ul>
</div> </div>
{{#if @site.secondary_navigation}} {{#if @site.secondary_navigation}}
{{#if @custom.secondary_navigation}}{{/if}} {{#if @custom.secondary_navigation_title}}{{/if}}
{{navigation type="secondary"}} {{navigation type="secondary"}}
{{/if}} {{/if}}
</div> </div>

View File

@ -34,8 +34,8 @@
{{#if @first}} {{#if @first}}
<div class="footer-nav-column"> <div class="footer-nav-column">
<small> <small>
{{#if @custom.secondary_navigation}} {{#if @custom.secondary_navigation_title}}
{{@custom.secondary_navigation}} {{@custom.secondary_navigation_title}}
{{else}} {{else}}
{{t "Column 1"}} {{t "Column 1"}}
{{/if}} {{/if}}