You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a requirement where I need to move an image to the outputs directory so that it can be used as an open graph image/thumbnail.
At present, I find that only images attached to the blog content get moved to outputs. Therefore if the open graph image is not used in the blog content it will not be available on the website.
The open graph image is specified using a metadata attribute in the blog header like so:
My open graph image will ideally live in the images directory under the blog-specific directory named blog in the above example.
I also do not have control over what the name of the open graph image will be.
I could get around the issue by placing all open graph images under the content/images directory where I place the favicon.ico for the website but I want to know if there is a better way.
I have tried using STATIC_PATHS and EXTRA_METADATA_PATHS but I am not sure if the answer lies there or if I am just using the wrong settings.
I hope someone can demystify this for me and put me on the right track.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear Folks,
I have a requirement where I need to move an image to the
outputs
directory so that it can be used as an open graph image/thumbnail.At present, I find that only images attached to the blog content get moved to
outputs
. Therefore if the open graph image is not used in the blog content it will not be available on the website.The open graph image is specified using a metadata attribute in the blog header like so:
The directory structure for the blogs is:
My open graph image will ideally live in the
images
directory under the blog-specific directory namedblog
in the above example.I also do not have control over what the name of the open graph image will be.
I could get around the issue by placing all open graph images under the
content/images
directory where I place thefavicon.ico
for the website but I want to know if there is a better way.I have tried using
STATIC_PATHS
andEXTRA_METADATA_PATHS
but I am not sure if the answer lies there or if I am just using the wrong settings.I hope someone can demystify this for me and put me on the right track.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions