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}"))); .unwrap_or_else(|| Cow::Owned(format!("/{element}")));
write!( write!(
s, s,
"<a href=\"{site}/{element}.html\">{short_element}</a>", "<a href=\"{site}/{element}\">{short_element}</a>",
site = EscapeAttribute(&config.site), site = EscapeAttribute(&config.site),
element = EscapeAttribute(element) element = EscapeAttribute(element)
) )

View file

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

View file

@ -11,7 +11,7 @@
{{!-- For /index, include a "new" link that goes to the curated news feed page. --}} {{!-- For /index, include a "new" link that goes to the curated news feed page. --}}
{{#if (eq page.tree_path "index")}} {{#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}} {{/if}}
{{/ components/_nav.hbs }} {{/ components/_nav.hbs }}
@ -28,7 +28,7 @@
<section> <section>
<p>note that this page does not include any updates that were made to the website itself - for that, you can <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> </p>
</section> </section>

View file

@ -11,7 +11,7 @@
{{!-- For /index, include a "new" link that goes to the curated news feed page. --}} {{!-- For /index, include a "new" link that goes to the curated news feed page. --}}
{{#if (eq page.tree_path "index")}} {{#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}} {{/if}}
{{/ components/_nav.hbs }} {{/ components/_nav.hbs }}

View file

@ -1,5 +1,5 @@
<footer> <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"> <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"> <g id="all">
<mask id="mask"> <mask id="mask">