daattali / beautiful-jekyll

✨ Build a beautiful and simple website in literally minutes. Demo at https://beautifuljekyll.com

Home Page:https://beautifuljekyll.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Edit in GitHub link/button

dagnelies opened this issue · comments

Hi,

First, thanks for this beautiful theme. The only thing I miss is a "Edit in GitHub" link or button on the pages. This would be a nice addition.

That's a good idea. I'll have to think of a way to incorporate that into the UI in a sensible way and take into account that not all usages of beautiful-jekyll are on github.

You can now set edit_page_button: true in the config file and if your're hosting on github it'll add a button to the footer

It's not perfect though, if anyone wants to improve it, I'd be happy to accept PRs. For example, if you're on a page that doesn't actually exist on github, it'll still show this button but take you to a 404 page. For example, if you navigate to the second page of the blog/feed, it'll try to go to a page called "page2/index.html" in your github repo.

Amazing 😲 🎉 I didn't expected you to implement that so quickly, impressive!
I'm gonna try it out right now.

Nice, works great, thanks!