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
What are some ideas for including static assets that belong to individual posts?
For the moment, all of my posts have a cover image. I am saving those image files to /src/images/. I could keep them loose in that directory, or I can create a sub-directory for each post and place them in their respective sub-directories. Either approach works well with Bridgetown.
Moving forward, I want to include custom JS files with some posts. Typically this will be some script I wrote that I want to embed in the post for demonstration and discussion purposes. What is the best way to organize images, javascript, etc., that go with individual posts?
My best idea is to have a /src/assets/ directory (instead of /src/images/), and then create sub-directories for each article for images, javascript, and what-ever. Do any of you have other ideas? Does Bridgetown suggest a solution of its own?
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
-
What are some ideas for including static assets that belong to individual posts?
For the moment, all of my posts have a cover image. I am saving those image files to
/src/images/
. I could keep them loose in that directory, or I can create a sub-directory for each post and place them in their respective sub-directories. Either approach works well with Bridgetown.Moving forward, I want to include custom JS files with some posts. Typically this will be some script I wrote that I want to embed in the post for demonstration and discussion purposes. What is the best way to organize images, javascript, etc., that go with individual posts?
My best idea is to have a
/src/assets/
directory (instead of/src/images/
), and then create sub-directories for each article for images, javascript, and what-ever. Do any of you have other ideas? Does Bridgetown suggest a solution of its own?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions