robrohan / rizhi

日志 (RiZhi) is a simple javascript + markdown blogging platform. You can host the blog on 'static file only' servers and services - like github or dropbox
GNU General Public License v3.0
8 stars 0 forks source link

This is just an idea... #1

Open jon49 opened 10 years ago

jon49 commented 10 years ago

...if you ever decide to take this further. You could set up a dropbox app and then link back to the users' dropbox. Then you would have access to all the files of the user (within the app folder) and could automate (code w/ javascript) many of the processes, like the archive file, next post, previous post, etc. You could do a post naming style like hakyll -> e.g., 2014-06-26-post_name.md. If powered with something like mithril.js even the page updates would be minimal.

Sounds like a fun project. Maybe if you don't do it I might someday :) .

I guess you could just use something like https://pancake.io/ with what you did?

robrohan commented 10 years ago

That's a really cool idea. I'll take a look at that if I ever dig deeper into this.

Thanks for the suggestion!

On Jun 26, 2014, at 16:23, Jon Nyman notifications@github.com wrote:

...if you ever decide to take this further. You could set up a dropbox app and then link back to the users' dropbox. Then you would have access to all the files of the user (within the app folder) and could automate (code w/ javascript) many of the processes, like the archive file, next post, previous post, etc. You could do a post naming style like hakyll -> e.g., 2014-06-26-post_name.md. If powered with something like mithril.js even the page updates would be minimal.

Sounds like a fun project. Maybe if you don't do it I might someday :) .

— Reply to this email directly or view it on GitHub.

jon49 commented 10 years ago

I cam across this Amazon S3 static/dynamic blog video tonight. Thought you might like it. https://www.youtube.com/watch?v=fpaEA6FM8K0

It basically makes it so you can serve a static blog but also sign into it and change it. All without programming on server side. It would be interesting to create a "static" blog from this.

robrohan commented 10 years ago

Thanks for that link Jon, that was actually part of my original goal (host a site on S3 http://542508.com/). I looked at the AWS library, but didn't quite understand how the security credentials would work, and that video cleared it up for me.

After thinking about it though, I changed my mind to wanting to write markdown posts in an off-line editor, and then save the files to s3 in an FTP like flow (I have never found an online writing tool that I even remotely like). But that talk was still pretty neat showing the s3 bucket listing which could be a sort of plug-in or something.

Anyway, I am unlikely to really dig into this as I have a number of other things going on at the moment, but that was a really informative talk. Thanks for sharing it.

jon49 commented 10 years ago

Here's my implementation. Not perfect but a start:

https://github.com/jon49/programming-blog

http://jon.prescottprogrammers.com.s3-website-us-east-1.amazonaws.com/

Not sure if it is searchable by the web. SoundGecko didn't like it. So I might have to add a "searchable" link, since SoundGecko worked fine with the original html file.

e.g.,

http://jon.prescottprogrammers.com.s3-website-us-east-1.amazonaws.com/2014/07/01/bilbyjs_lenses

vs the naked file

http://jon.prescottprogrammers.com.s3-website-us-east-1.amazonaws.com/posts/2014-07-01-bilbyjs_lenses.html

I'm trying to convince the creator of mithril.js to do a virtual diff on routing changes, then I'll be able to add css3 animation on page changes.