We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At the moment each image is hardcoded in the code of page /steun-je-school, such as sjs1.jpg, sjs2.jpg, etc.
Desired behaviour is that all images in folder 'public/sjs' are shown on alphabetical order (excluding folder 'old' within 'sjs')
NOTE: be aware of image extensions such as .jpg .jpeg .JPG .png .PNG ...
The text was updated successfully, but these errors were encountered:
@tomsiebring
I'm not 100% sure, but try reading the public/sjs directory in getStaticProps to get the list of files within it.
public/sjs
Now pass the names of the files down as a prop to the page component where you can render an image with the file name.
Sorry, something went wrong.
margaretmwaura
No branches or pull requests
At the moment each image is hardcoded in the code of page /steun-je-school, such as sjs1.jpg, sjs2.jpg, etc.
Desired behaviour is that all images in folder 'public/sjs' are shown on alphabetical order (excluding folder 'old' within 'sjs')
NOTE: be aware of image extensions such as .jpg .jpeg .JPG .png .PNG ...
The text was updated successfully, but these errors were encountered: