Skip to content

Commit

Permalink
Catch for missing CV on index page
Browse files Browse the repository at this point in the history
  • Loading branch information
robstarbuck committed Feb 5, 2024
1 parent 83f8e1a commit 4301cf1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/index.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const title = "Posts";

export const data = {
hideTitle: true,
}
};

export default function (page: Lume.Data) {
const posts = page.search.pages("post");
Expand All @@ -23,7 +23,10 @@ export default function (page: Lume.Data) {
})
.join("")}
</ul>
<hr />
<a href="${cv?.url}">CV ${month} ${year}</a>
`;
`.concat(
cv
? `<hr />
<a href="${cv?.url}">CV ${month} ${year}</a>`
: ``
);
}

0 comments on commit 4301cf1

Please sign in to comment.