Skip to content

Commit a8a17d0

Browse files
committed
Fix issue with rel attributes from tools wrongly escaped in ejs template
this issue surfaced because test file was not correctly named, and so never run.
1 parent b1a606a commit a8a17d0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/resources/projects/website/templates/navtools.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const isWide = toolCount > 2; %>
4141
</ul>
4242
</div>
4343
<% } else { %>
44-
<a href="<%- tool.href %>" <%- tool.rel ? `rel="${tool.rel}"` : "" %> title="<%- tool.text %>" class="quarto-navigation-tool px-1" aria-label="<%- tool['aria-label'] || tool.text %>"<%= tool.target ? ` target="${tool.target}"` : "" %>><i class="bi bi-<%- tool.icon %>"></i></a>
44+
<a href="<%- tool.href %>" <%= tool.rel ? `rel="${tool.rel}"` : "" %> title="<%- tool.text %>" class="quarto-navigation-tool px-1" aria-label="<%- tool['aria-label'] || tool.text %>"<%= tool.target ? ` target="${tool.target}"` : "" %>><i class="bi bi-<%- tool.icon %>"></i></a>
4545
<% } %>
4646
<% }) %>
4747

tests/smoke/site/render-navbar-tools-rel.ts renamed to tests/smoke/site/render-navbar-tools-rel.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
*
44
* Copyright (C) 2020-2022 Posit Software, PBC
55
*/
6-
import { docs, siteOutputForInput } from "../../utils.ts";
6+
import { docs, projectOutputForInput } from "../../utils.ts";
77
import { ensureFileRegexMatches } from "../../verify.ts";
88
import { testSite } from "./site.ts";
99

1010
testSite(
1111
docs("websites/issue-5756/index.qmd"),
12-
docs("websites/issue-5756/index.qmd"),
12+
docs("websites/issue-5756"),
1313
[],
1414
[],
1515
ensureFileRegexMatches(
16-
siteOutputForInput(docs("websites/issue-5756/index.qmd"))
16+
projectOutputForInput(docs("websites/issue-5756/index.qmd"))
1717
.outputPath,
1818
['rel="me"'],
1919
[],

0 commit comments

Comments
 (0)