minor cleanup
This commit is contained in:
parent
a56555b4b1
commit
3a27bf5664
|
@ -126,10 +126,8 @@ def template_vars(node: SourceNode, ctxt: Context) -> dict[str, Any]:
|
||||||
stylesheet_path = ctxt.source_dir / ctxt.default_stylesheet
|
stylesheet_path = ctxt.source_dir / ctxt.default_stylesheet
|
||||||
rel_path = ctxt.source_dir / node.path
|
rel_path = ctxt.source_dir / node.path
|
||||||
tvars['default_stylesheet'] = urlquote(stylesheet_path.relative_to(rel_path.parent, walk_up=True).as_posix())
|
tvars['default_stylesheet'] = urlquote(stylesheet_path.relative_to(rel_path.parent, walk_up=True).as_posix())
|
||||||
pass
|
|
||||||
else:
|
else:
|
||||||
tvars['default_stylesheet'] = urlquote(ctxt.url_prefix + ctxt.default_stylesheet)
|
tvars['default_stylesheet'] = urlquote(ctxt.url_prefix + ctxt.default_stylesheet)
|
||||||
pass
|
|
||||||
|
|
||||||
return tvars
|
return tvars
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user