diff --git a/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html
index a6e1d05dd0..7bf8ea395c 100644
--- a/layouts/partials/templates/twitter_cards.html
+++ b/layouts/partials/templates/twitter_cards.html
@@ -6,7 +6,7 @@
{{- end}}
{{- else }}
-{{- $images := partial "templates/_funcs/get-page-images" . -}}
+{{- $images := partial "_funcs/get-page-images" . -}}
{{- with index $images 0 -}}