Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Edit this post" link #2067

Open
1 task done
koppor opened this issue Nov 28, 2024 · 1 comment
Open
1 task done

Add "Edit this post" link #2067

koppor opened this issue Nov 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@koppor
Copy link

koppor commented Nov 28, 2024

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: adr/adr.github.io#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: adr/adr.github.io#63

Additional context

No response

@huanyushi
Copy link
Contributor

huanyushi commented Nov 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants