diff --git a/hyde/ext/plugins/stylus.py b/hyde/ext/plugins/stylus.py index b6fb7b7..40807f9 100644 --- a/hyde/ext/plugins/stylus.py +++ b/hyde/ext/plugins/stylus.py @@ -46,9 +46,10 @@ class StylusPlugin(CLTransformer): if not match.lastindex: return '' path = match.groups(1)[0] - afile = File(resource.source_file.parent.child(path)) + afile = File(File(resource.source_file.parent.child(path)).fully_expanded_path) if len(afile.kind.strip()) == 0: afile = File(afile.path + '.styl') + ref = self.site.content.resource_from_path(afile.path) if not ref: