diff --git a/layouts/partials/extend-head.html b/layouts/partials/extend-head.html
index 86173ba..60e0cc0 100644
--- a/layouts/partials/extend-head.html
+++ b/layouts/partials/extend-head.html
@@ -1,2 +1,2 @@
-{{ $trimmedURL := trim (index (split .Site.BaseURL "://") 1) "/" }}
+{{ $trimmedURL := trim (index (split (urls.AbsURL "") "://") 1) "/" }}