only show section header if values exist

This commit is contained in:
2025-09-03 00:13:30 +02:00
parent bbd8c1e40c
commit d233c8081a

View File

@@ -4,6 +4,7 @@
</script> </script>
<article class="main-container"> <article class="main-container">
{#if title || description}
<div class="header"> <div class="header">
<div class="title"> <div class="title">
<h2>{title}</h2> <h2>{title}</h2>
@@ -11,6 +12,7 @@
</div> </div>
<label>{description}</label> <label>{description}</label>
</div> </div>
{/if}
<slot></slot> <slot></slot>
</article> </article>