Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d994860

Browse files
committedMay 19, 2025··
MF: Add data-mf to tables, fix trustarc
1 parent 791381c commit d994860

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
 

‎layouts/_default/baseof.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@
5757
});
5858

5959

60-
document.querySelectorAll(".table-v1").forEach((table) => {
61-
table.style.display = isNewTheme ? "none" : "";
62-
});
60+
const trustarc = document.getElementById("teconsent-v1");
61+
if (trustarc) {
62+
trustarc.id = isNewTheme ? "teconsent-v1" : "teconsent";
63+
}
6364

6465
document.getElementById("body").style.visibility = "visible";
6566
};

‎layouts/shortcodes/bootstrap-table.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{ $htmlTable := .Inner | markdownify }}
22
{{ $class := .Get 0 }}
33
{{ $oldTable := "<table>" }}
4-
{{ $newTable := printf "<table class=\"%s %s\">" $class "table-v1" }}
4+
{{ $newTable := printf "<table data-mf=\"false\" class=\"%s %s\">" $class "" }}
55
{{ $oldP := "<p>" }}
6-
{{ $newP := printf "<p class=\"%s\">" "table-v1"}}
6+
{{ $newP := printf "<p data-mf=\"false\" class=\"%s\">" ""}}
77
{{ $htmlTable := replace $htmlTable $oldTable $newTable }}
88
{{ $htmlTable := replace $htmlTable $oldP $newP }}
99
{{ $htmlTable | safeHTML }}

0 commit comments

Comments
 (0)
Please sign in to comment.