minor cleanup

This commit is contained in:
Amy G. Bowersox 2024-08-14 13:36:56 -06:00
parent a56555b4b1
commit 3a27bf5664

View File

@ -126,10 +126,8 @@ def template_vars(node: SourceNode, ctxt: Context) -> dict[str, Any]:
stylesheet_path = ctxt.source_dir / ctxt.default_stylesheet
rel_path = ctxt.source_dir / node.path
tvars['default_stylesheet'] = urlquote(stylesheet_path.relative_to(rel_path.parent, walk_up=True).as_posix())
pass
else:
tvars['default_stylesheet'] = urlquote(ctxt.url_prefix + ctxt.default_stylesheet)
pass
return tvars