Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix media folder #26

Merged
merged 2 commits into from Feb 22, 2023
Merged

Fix media folder #26

merged 2 commits into from Feb 22, 2023

Conversation

yndajas
Copy link
Collaborator

@yndajas yndajas commented Feb 21, 2023

After re-enabling image uploads in 4c236aa, images were successfully uploaded but they went into a project root /_images folder, which appears not to be included in the Jekyll build. Links to images are not working in production

This updates the media folder to src/assets/images. src/assets is a more standard place to store images (and stylesheets), and files placed there are already included in the build

This works locally without src/ included, so the hope is that like for file and folder Netlify config attributes, including it with src/ will work in production

This also shifts existing images into src/assets/images

After re-enabling image uploads in 4c236aa, images were successfully
uploaded but they went into a project root `/_images` folder, which
appears not to be included in the Jekyll build. Links to images are not
working in production

This updates the media folder to `src/assets/images`. `src/assets` is
a more standard place to store images (and stylesheets), and files
placed there are already included in the build

This works locally without `src/` included, so the hope is that like for
`file` and `folder` Netlify config attributes, including it with `src/`
will work in production
@netlify
Copy link

netlify bot commented Feb 21, 2023

Deploy Preview for startling-pasca-a7e8b4 ready!

Name Link
🔨 Latest commit 1c377f9
🔍 Latest deploy log https://app.netlify.com/sites/startling-pasca-a7e8b4/deploys/63f5191325cb210008ad5d23
😎 Deploy Preview https://deploy-preview-26--startling-pasca-a7e8b4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Feb 21, 2023

Deploy Preview for calm-klepon-bae648 ready!

Name Link
🔨 Latest commit 1c377f9
🔍 Latest deploy log https://app.netlify.com/sites/calm-klepon-bae648/deploys/63f51913a9db3e0008e9ca9e
😎 Deploy Preview https://deploy-preview-26--calm-klepon-bae648.netlify.app/src/_includes/navbar
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@yndajas yndajas merged commit 0a99e94 into main Feb 22, 2023
11 checks passed
yndajas added a commit to dxw/playbook that referenced this pull request Feb 27, 2023
This removes the config setting disabling image uploads and sets the
upload folder to `/assets/images`, which is automatically include in
the compiled site

Based on:
- dxw/accessibility-manual#21
- dxw/accessibility-manual#26
yndajas added a commit to dxw/playbook that referenced this pull request Feb 27, 2023
This brings the existing image assets more in line with the structure
in use for Netlify CMS image uploads

I've moved all the favicon-related images and other files into a
dedicated subfolder to make them easier to distinguish (and make it
clearer what they're related to)

Based on: dxw/accessibility-manual#26
@yndajas yndajas deleted the fix-media-folder branch March 16, 2023 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants