Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2020 16:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
<figure class="post-full-image">
{{!-- This is a responsive image, it loads different sizes depending on device --}}
srcset="<YOUR_USERNAME>/image/fetch/w_300,c_fit,q_auto,f_auto,dpr_auto/{{img_url feature_image size="s" absolute="true"}} 300w,<YOUR_USERNAME>/image/fetch/w_600,c_fit,q_auto,f_auto,dpr_auto/{{img_url feature_image size="m" absolute="true"}} 600w,<YOUR_USERNAME>/image/fetch/w_1000,c_fit,q_auto,f_auto,dpr_auto/{{img_url feature_image size="l" absolute="true"}} 1000w,<YOUR_USERNAME>/image/fetch/w_2000,c_fit,q_auto,f_auto,dpr_auto/{{img_url feature_image size="xl" absolute="true"}} 2000w"
sizes="(max-width: 800px) 400px,
(max-width: 1170px) 1170px,
src="<YOUR_USERNAME>/image/fetch/w_600,c_fit/{{img_url feature_image size="m" absolute="true"}}"
Copy link

How to configure img_url in ghost. to serve images in HTTPS blogs. My domain is I cannot serve images when I converted my blog to HTTPS. Thanks in advance.

Hi nivashiot, img_url is a helper function of Ghost: see documentation here . Perhaps it would help seeing what the URL which is not working looks like. Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment