Open gr2m opened 8 years ago
That's totally on my list since I saw that Ember does it too (pencil icon on the right):
Good idea!
We do something similar for PouchDB:
https://github.com/pouchdb/pouchdb/blob/master/docs/_layouts/default.html#L74
https://github.com/pouchdb/pouchdb/blob/master/docs/_includes/edit_button.html
This way you can turn it on and off depending on the page using frontmatter.
I'd like to try to implement this.
But I'm having troubles getting the site working on my machine. The scss files won't compile and it seems that head.html contains a link to the css on hoodiehq instead of something variable.
Anybody got some pointers?
@bartw thanks Bart!
what ruby version do you have installed (ruby -v
)? You might need to update to the latest. Then you need to install jekyll and 2 plugins
gem install jekyll jekyll-redirect-from jekyll-paginate
and then, in theory, you should be able to do jekyll serve --watch
. If you get any errors, can you post them here?
Hi !! I would like to work on this issue.Secondly for edit button do , i need to create it for just the main page hoodie.ie or for its other dependent pages as well. Thanks
I think you could add the edit button to the header*.html files here: https://github.com/hoodiehq/hood.ie/tree/gh-pages/_includes
Note that the setup is currently quite complicated with CSS being served from another place. We hope to clean this all up soon via #312. But feel free to give it a try :)
As we use jekyll for http://hood.ie/, all pages can be directly edited on GitHub. For example, the content of http://hood.ie/community/ can be edited here: https://github.com/hoodiehq/hood.ie/edit/gh-pages/community/index.html (You need to be signed in)
To make it simpler for visitors to fix a typo and help with improving our site in general, we would like to add an edit button to every page, like on http://nobackend.org/ (bottom right of page)
Here is how the code looks like for the edit button: https://github.com/noBackend/nobackend.org/blob/gh-pages/_layouts/page.html#L57
We would love something similar on http://hood.ie/ :)