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

View File

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

View File

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

View File

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