remove a bunch of .html links

This commit is contained in:
liquidex 2024-03-03 21:39:54 +01:00
parent 8eca6b29ec
commit 1d2ce8d701
5 changed files with 6 additions and 6 deletions

View file

@ -24,7 +24,7 @@ pub fn breadcrumbs_to_html(
.unwrap_or_else(|| Cow::Owned(format!("/{element}")));
write!(
s,
"<a href=\"{site}/{element}.html\">{short_element}</a>",
"<a href=\"{site}/{element}\">{short_element}</a>",
site = EscapeAttribute(&config.site),
element = EscapeAttribute(element)
)

View file

@ -168,7 +168,7 @@ function expandDetailsRecursively(element) {
}
function navigateToPage(page) {
window.location.pathname = `${page}.html`
window.location.pathname = `${page}`
}
async function navigateToBranch(fragment) {

View file

@ -11,7 +11,7 @@
{{!-- For /index, include a "new" link that goes to the curated news feed page. --}}
{{#if (eq page.tree_path "index")}}
<a href="{{ config.site }}/treehouse/new.html" data-cast="new">new</a>
<a href="{{ config.site }}/treehouse/new" data-cast="new">new</a>
{{/if}}
{{/ components/_nav.hbs }}
@ -28,7 +28,7 @@
<section>
<p>note that this page does not include any updates that were made to the website itself - for that, you can
visit <a href="{{ config.site }}/treehouse/changelog.html">the changelog</a>.
visit <a href="{{ config.site }}/treehouse/changelog">the changelog</a>.
</p>
</section>

View file

@ -11,7 +11,7 @@
{{!-- For /index, include a "new" link that goes to the curated news feed page. --}}
{{#if (eq page.tree_path "index")}}
<a href="{{ config.site }}/treehouse/new.html" data-cast="new">new</a>
<a href="{{ config.site }}/treehouse/new" data-cast="new">new</a>
{{/if}}
{{/ components/_nav.hbs }}

View file

@ -1,5 +1,5 @@
<footer>
<a href="{{ config.site }}/treehouse.html">
<a href="{{ config.site }}/treehouse">
<svg id="footer-icon" width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="all">
<mask id="mask">