diff --git a/exporters/html/html_export.py b/exporters/html/html_export.py
index df610a2..a175efe 100644
--- a/exporters/html/html_export.py
+++ b/exporters/html/html_export.py
@@ -434,12 +434,8 @@ def convert_to_html(data: Dict[str, Any], apply_amendments: bool = False, up_to_
# Build metadata in two columns
column1_items = []
column2_items = []
-
- # Column 1: Basic document info
- column1_items.append(f"""
-
Beteckning:
- {html.escape(beteckning)}""")
+ # Column 1: Basic document info
if organisation:
column1_items.append(f"""
Departement:
@@ -472,15 +468,15 @@ def convert_to_html(data: Dict[str, Any], apply_amendments: bool = False, up_to_
Ja""")
# Column 2: Dates and links
- if publicerad_datum:
- column2_items.append(f"""
- Publicerad:
- {html.escape(publicerad_datum)}""")
-
if utfardad_datum:
column2_items.append(f"""
Utfärdad:
{html.escape(utfardad_datum)}""")
+
+ if publicerad_datum:
+ column2_items.append(f"""
+ Publicerad:
+ {html.escape(publicerad_datum)}""")
if ikraft_datum:
column2_items.append(f"""
diff --git a/exporters/html/selex-init.js b/exporters/html/selex-init.js
index 19f4014..4563a51 100644
--- a/exporters/html/selex-init.js
+++ b/exporters/html/selex-init.js
@@ -50,12 +50,14 @@
const bodyElement = document.body;
const beteckning = bodyElement.getAttribute('data-beteckning');
- // Configure navbar
+ // Configure navbar with setHeader(parentText, parentUrl, childText)
+ const parentText = "SFS";
+ const parentUrl = "/"; // Root page for now
+
if (beteckning) {
- SweNavbar.setHeader("SFS");
- SweNavbar.setHeaderChild(beteckning);
+ SweNavbar.setHeader(parentText, parentUrl, beteckning);
} else {
- SweNavbar.setHeader("SFS");
+ SweNavbar.setHeader(parentText, parentUrl);
}
}).catch((error) => {
console.warn('Failed to load navbar script:', error);