jackyzha0 / quartz

🌱 a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
https://quartz.jzhao.xyz
MIT License
6.86k stars 2.47k forks source link

Direct Page Editing via GitHub Link for Streamlined Collaboration #710

Open xy-241 opened 8 months ago

xy-241 commented 8 months ago

Is your feature request related to a problem? Please describe. Collaborating on website content is currently cumbersome, as there is no direct way to edit pages and contribute changes easily.

Describe the solution you'd like Add an "Edit" button at the top of each page on the website. This button should link directly to the corresponding GitHub Markdown file for that page. This way, users can seamlessly access and edit the source content on GitHub, fostering a more straightforward collaborative environment.

Describe alternatives you've considered One alternative could be incorporating a general "Edit" button that takes users to the GitHub repository's main page, requiring them to navigate to the specific Markdown file. However, this may be less user-friendly and efficient.

Additional context

aarnphm commented 7 months ago

Feel free to make this a community plugin for this. I don't think this should lie within Quartz's core offering.

CatCodeMe commented 6 months ago

you can modify ContentMeta.tsx . my blog has added commit history, learned from quartz showcase image

xy-241 commented 6 months ago

Managed to get it to work, thanks!

Screenshot 2024-03-22 at 6 34 37 PM