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

Render+cache for static pages hosted elsewhere #303

Open
abitrolly opened this issue May 7, 2018 · 1 comment
Open

Render+cache for static pages hosted elsewhere #303

abitrolly opened this issue May 7, 2018 · 1 comment

Comments

@abitrolly
Copy link
Member

It is useless double effort to maintain the same content in custom UI of hackerspace.by website for registered members and on GitHub for the rest of hacker community. The effective way to handle this is to render and cache pages from GitHub and provide a link to repository.

The rationale is that skills and practice to use GitHub is more beneficial for people than skills to use Keepass and web forms.

@abitrolly
Copy link
Member Author

The plan to create a Jekyll style git publishing with Ruby on Rails.

  1. Create _content dir for markdown posts. Inspired by Hugo, but uses _ prefix like Jekyll. The _ is needed to separate content from Ruby application files.

  2. _content lookup will be made after standard lookup for URL handler fails. For example, request to https://hackerspace.by/projects/malinohs will get the _content/projects/malinohs.md and will render it in standard site layout with a reference that this page can be edited on GitHub.

The markdown processor should understand data blocks from Hugo/Jekyll markdown files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@k2m30 @abitrolly and others