jekyll-theme-chirpy icon indicating copy to clipboard operation
jekyll-theme-chirpy copied to clipboard

Add "Edit this post" link

Open koppor opened this issue 1 year ago • 2 comments

Checklist

Is your feature request related to a problem? Please describe

The posts offer a "last udpated" information, which is used in "Recently updated". This suggests an easy way to update a post.

Describe the solution you'd like

A user of our page reported

Btw, I would say there need to be some button like "edit this page" to encourage people to contribute.

Source: https://github.com/adr/adr.github.io/pull/63


Just the Docs offers a "Edit this page on GitHub" link:

image

I would like to have a similar functionality in chirpy.

Describe alternatives you've considered

As of now, one needs to search for relevant files in the repo then make changes. It's not intuitive.

Source: https://github.com/adr/adr.github.io/pull/63

Additional context

No response

koppor avatar Nov 28 '24 16:11 koppor

This task is quite straightforward. If you require this feature, you can implement it yourself. You just need copy these code into _layouts/post.html, and complete the corresponding section in _config.yml like this.

Of course, you also need to make some adjustments to the style according to your own needs

huanyushi avatar Nov 29 '24 09:11 huanyushi

@huanyushi any reason this should not be part of the upstream?

rantoniuk avatar Jan 15 '25 23:01 rantoniuk