Skip to content

Commit

Permalink
Fix for breakout urls
Browse files Browse the repository at this point in the history
  • Loading branch information
robstarbuck committed Mar 8, 2024
1 parent 17b57b8 commit 14781f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ site.preprocess([".html"], (pages) => {
page.data.layout = "index.vto";
}
}

page.data.modules = page.data.modules ?? [];

if (page.data.title?.toLocaleLowerCase() === "cv") {
Expand Down Expand Up @@ -162,8 +162,8 @@ site.process([".html"], (pages, allPages) => {
const breakoutButtonColor = element.getAttribute(
"data-breakout-button-color"
);
const breakoutUrl = page.data.url + urlSuffix ?? "breakout";


const breakoutUrl = page.data.url + urlSuffix + ".html" ?? "breakout/";

const a = doc.createElement("a");
a.setAttribute("href", breakoutUrl);
Expand Down

0 comments on commit 14781f2

Please sign in to comment.