parent page referencing html file is missing .html extension in anchor tag #190
Unanswered
sainathdkpersonal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I have just started playing around with statiq.web and it is exciting!! I am trying out small functions and maybe making a mistake. What is happening is that my .md files in my posts folder are referenced in the main page without the .html extension. Below is an example. The below works if I use
dotnot run -- previewbut does not work i.e. page not found , when I use "live server" in VSCode or host it in IIS.In this example the md file name is 02012023.md and a corresponding 02012023.html is in the output folder but the .html is missing in the anchor's href. Thank you for any assistance.
<h2 class="post-title"><a href="/posts/02012023">This an Example Post for 2023</a></h2>Beta Was this translation helpful? Give feedback.
All reactions