diff --git a/layouts/partials/output-article.html b/layouts/partials/output-article.html
index 487c8ef566..9092248741 100644
--- a/layouts/partials/output-article.html
+++ b/layouts/partials/output-article.html
@@ -1,7 +1,7 @@
{{- $page := .page }}
{{- $content := .content }}
-{{- $r_url := .RelPermalink }}
-{{- with $page.OutputFormats.Get (($page.Scratch.Get "relearnOutputFormat") | lower) }}
+{{- $r_url := $page.RelPermalink }}
+{{- with $page.OutputFormats.Get ($page.Scratch.Get "relearnOutputFormat") }}
{{- $s_url := .RelPermalink }}
{{- if not (eq $s_url $r_url) }}
{{/* if we have a relative link in output formats with a path setting, our URLs are one level to deep; so we are making them absolute to our page by prepending the page's permalink */}}
diff --git a/layouts/partials/stylesheet.html b/layouts/partials/stylesheet.html
index 9838594872..6fe7ace0aa 100644
--- a/layouts/partials/stylesheet.html
+++ b/layouts/partials/stylesheet.html
@@ -18,7 +18,10 @@
{{- end }}
-
+
+ {{- if (fileExists (printf "/static/css/format-%s.css" ((.Scratch.Get "relearnOutputFormat") | lower))) }}
+
+ {{- end }}