Share Pear is a platform built with Astro, Netlify On-Demand Builders, and Edge Functions to consume markdown content and generate public HTML pages from that content!
- Clone the repo
- Run
npm install && npm run dev
- Navigate to
localhost:3000/blog/whatever
You'll have to hard-code in some URI-encoded markdown in the url, for example
localhost:3000/blog/whatever/{MARKDOWN}
, to see how a blog looks.
- Click "Use this Template" at the top left of this repo on GitHub
- Update the logo in
public/
- Update the colors and copy in
src/layouts/Layout.astro
- Update the copy in
src/index.astro
,src/404.astro
, andsrc/blog/[slug].astro
- Update the
allowedUrlsRegex
innetlify/edge-functions/headers.js
with your web app's that will be calling this - Party from dusk until dawn
- Query
https://share.contenda.co/blog/[SOMETHING]
with a GET request - The headers of the GET request have to include
markdown: "blah"
whereblah
is the blog content. This request publishes your blog post at thehttps://share.contenda.co/blog/[SOMETHING]
url for 30 days.
We are super grateful that you've checked out Share Pear. Any ⭐ on the repo, or upvotes at the following links, would be greatly appreciated!
Here is how this repository was built, and our announcement post for the feature!