diff --git a/layouts/partials/stylesheet.html b/layouts/partials/stylesheet.html
index f59dbb987c..337c1b4b43 100644
--- a/layouts/partials/stylesheet.html
+++ b/layouts/partials/stylesheet.html
@@ -114,11 +114,15 @@
{{- end }}
{{- end }}
{{- end }}
+ {{- $home_path := site.Home.RelPermalink }}
+ {{- $this_path := .RelPermalink }}
+ {{- $path := (strings.TrimPrefix $home_path $this_path) | default "/" }}
+ {{- $path = partial "permalink.gotmpl" (dict "link" $path) }}