fix base url issues

This commit is contained in:
2023-08-19 16:04:07 -07:00
parent d0166b1db9
commit 92a9fe5685
6 changed files with 17 additions and 17 deletions

View File

@@ -141,7 +141,7 @@ export function mustache_context(state: BuildState, page_url: string, metadata:
export async function render_page(state: BuildState, in_file: string, out_file: string, out_url: OutFileURL, text: string, render_as_markdown: boolean, hash: string, frontmatter?: any) {
if (render_as_markdown) {
const opts = Object.assign({ }, state.conf.markdown, {
base_url: out_url.abs_url
// base_url: out_url.abs_url,
});
text = await render_markdown_to_html(text, opts);

View File

@@ -34,7 +34,7 @@ export async function render_markdown_file(state: BuildState, in_file: string) {
const out_file = await map_input_file_to_output_file(state, in_file, [ '.md', '.markdown' ], '.html');
const out_url = map_output_file_to_url(state, out_file);
const { frontmatter, text, hash } = await read_text(in_file);
if (frontmatter?.skip) {
return;
}