Ignore my previous post
Go to your header template:
and add a / between {{ .Site.BaseURL }} and dist.
/
{{ .Site.BaseURL }}
dist
And please read my (unfinished) post: