change {{ site.url }} to {{ site.url }}{{ site.baseurl }} for external resource