Don't show documentation field in site documents

This commit is contained in:
2025-06-06 14:23:11 +02:00
parent 71f111d5df
commit c0d3aaa846
2 changed files with 11 additions and 14 deletions

View File

@@ -13,6 +13,14 @@ export class SiteDocuments {
}
render() {
if (this._siteData.documents.length === 0) {
return `
<p class="p-2 has-text-centered mt-3 mb-3">
Nessuna documentazione disponibile.
</p>
`;
}
this.documentation = this._siteData.documents
.filter(d => d.type === 'documentazione')
@@ -20,9 +28,6 @@ export class SiteDocuments {
let content = `
<div class="has-bottom-border">
<p class="p-2 has-text-centered mt-3 mb-3">
${this._siteData.documentation}
</p>
<div class="p-2">
<table class="p-4 table is-fullwidth is-striped">
<thead>