Sourcing markdown files from S3 #33133
Unanswered
Sara14-sudo
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our Gatsby application have got blog page as well. Content writers will be writing the blogs. We cannot have the blog markdown file part of gatsby project because we have to provide source code of our application/website to content writers. They are not familiar with either visual studio or code repository eventhough we have got CI/CD on aws for our gatsby application.
So we decided to provide an interface to upload blog markdown file to our aws s3 bucket.
we will be keep adding new blogs part of the gatsby application.
So when some one saves the new blog markdown files (multilingual) on s3, need to trigger the aws amplify ci/cd.
In worst case if autotriggering doesn't happen, we can just give new build command through our aws amplify console. But when build happends, it should download the blog markdown file from s3 to make blogs part of gatsby application.
I am doing a blog project.
I am doing it to read dynamically from S3 bucket. i am using plugin is /plugins/@robinmetral/gatsby-source-s3/
in s3 bucket
There is bucket named tia , there is a file named post-1.md, its a markdown file.
In post-1.md there is title, featured img URL, date and content. While using Alls3object query
I am getting displayed bucket name, key, URL only.
What I need is a query to display title, content, featured img URL from post 1.md.
We are not getting any query, help me please
Please help me ASAP, my project is getting stuck with this.
I am doing it in the following way:
I created a bucket named ABCD,
i have uploaded, post1.md, post2.md, etc.
post-1.md
title: My first blog post!
featuredImgUrl: https://images.unsplash.com/photo-1560237731-890b122a9b6c
featuredImgAlt: Mountains with a starry sky
Hello World
I used the plugin is @robinmetral/gatsby-source-s3
I used allS3Object
I am getting displayed bucket name, key, URL only.
What I need is a query to display Title, Content, featured img URL , from post 1.md.
We are not getting any query, help me please
help please, my project is stuck with this
Beta Was this translation helpful? Give feedback.
All reactions