Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by hobarrera on Thursday September 22, 2016 @02:44PM
(#12559120)
You can also use GitLab for the same thing.
Just chiming in to promote this a bit. GitLab is a well-known open source alternative to GitHub, which actually offers more features than GitHub nowadays.
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by aeharding on Thursday September 22, 2016 @04:14PM
(#12559956)
And Gitlab Pages supports free CI for building your static HTML assets however you like, upon code push, without cluttering your repo with compiled assets. Run code through Metalsmith? No problem. Run through Jekyll? Can do. Anything that's Dockerized.
This is perhaps my favorite distinction between Github and Gitlab pages.
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by iamnothere on Thursday September 22, 2016 @04:11PM
(#12559933)
There are also several in-progress feature requests related to Let's Encrypt automation, which should make HTTPS much easier. (Right now it's possible to use Let's Encrypt, but you have to manually renew the cert every 90 days.)
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by iamnothere on Thursday September 22, 2016 @02:43PM
(#12559108)
I just moved from this setup to GitLab. GitLab Pages is similar, but much more flexible. For instance, you can use Hugo, Metalsmith, etc, and you can use CI scripts to test before deploymemt. You can also avoid Cloudflare by using Let's Encrypt (or other) certs, and they're working to include smooth Let's Encrypt integration for easy renewals.
Of course, flexibility comes at a cost: GitLab is much more complicated, and the documentation kinda sucks. OTOH, the setup process is a good learning experience.
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by bobfunk on Thursday September 22, 2016 @02:30PM
(#12559012)
Check out Netlify (https://www.netlify.com) for a simpler setup that's also free and lets you use Jekyll plugins, enables very aggressive caching on the CDN level, but with instant cache invalidation and atomic deploys, and brings features like deploy previews (a unique preview URL for any pull request), form processing, redirects, rewrite rules, proxying, etc, etc...
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by bobfunk on Thursday September 22, 2016 @02:46PM
(#12559142)
As long as I've been reading HackerNews (all the way back since it was called StartupNews), it's been common to see founders chime in about their startups when they are clearly relevant to the topic and it's not done by a marketing drone posting on their behalf, and with a clear disclaimer.
Whether people gets downvoted or upvoted for it depends on whether readers see the comment as legitimate and relevant or as spam...
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by iancarroll on Thursday September 22, 2016 @02:46PM
(#12559139)
I don't think HN has any specific rules about self-promotion in comments, but their service seems relevant given all the extra features it offers in comparison to the blog post's suggested host of GH Pages.
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by ohitsdom on Thursday September 22, 2016 @02:38PM
(#12559064)
OT: I like Jekyll for blogs, but I'm looking for something simpler to better fit a simple use case.
I want to generate static HTML files, the simplest example being a 5 page website that uses the same header and footer template across all pages. I want static files for simple scaling, not PHP or JS templating. Ideally this tool would be node based for simple automation with gulp. Anything out there that fits the bill? Handelbars.js with precompiler looks like a good fit, but I'm curious what others use in this scenario.
I tried Jekyll before, but between Ruby, some bugs and template choice overload I dropped it. Moved to Hexo a few months ago and built a couple projects with it. It's worked great for writing but also building a reviews website.
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by eric_bullington on Thursday September 22, 2016 @03:04PM
(#12559313)
Nunjucks is an excellent JS template engine for this kind of work, since it permits template inheritance. It's quite similar to Jinja in Python, if you're familiar with it.
Other options would be Middleman or Metalsmith. I've used both of them successfully for relatively complex static sites. But I wouldn't call them simpler than Jekyll.
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by ohitsdom on Thursday September 22, 2016 @03:37PM
(#12559654)
Fair enough. My only experience with Ruby was to get Jekyll running so it wasn't as familiar to me, but the community and support is a pretty strong point.
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by noer on Thursday September 22, 2016 @02:08PM
(#12558812)
Two of the cons listed aren't totally correct:
> You don’t have a WYSIWYG editor so you have to use Markdown or similar languages to write your posts.
You can use a service like siteleaf to add a WYSIWYG backend to jekyll
> You have to deal with a Terminal to push your changes using GIT
Github's desktop application is actually pretty easy to use, much more so than using git from terminal
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by qwertyuiop924 on Thursday September 22, 2016 @03:01PM
(#12559289)
...Any HTTP-based database?
I mean, you can use Couch, or Redis, or whatever. You'd just have to host the server yourself. And since CORS isn't enabled AFAIK, you'd have to use some kind of hack, like JSONP or whatever.
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by noahtkoch on Thursday September 22, 2016 @02:27PM
(#12558983)
Can someone ELI5 me what the appeal is to something like Jekyll, seems a lot easier to just setup a Posthaven account (or something similar) given you also get a WYSIWYG.
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by seanwilson on Thursday September 22, 2016 @04:20PM
(#12560016)
From my point of view, you're trading ease of editing but gaining speed, security and scalability. If the only thing on the site is static files behind a CDN, it's going to be fast and hard to hack.
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by piratebroadcast on Thursday September 22, 2016 @02:33PM
(#12559032)
Jekyll created static websites, with no database for an attack vector. I learned this the hard way after having a few digital ocean droplets compromised, no backups, etc. Thats one advantage.
Re:Put Yourself on Internet with Jekyll, GitHub and Cloudflare
by kowdermeister on Thursday September 22, 2016 @02:58PM
(#12559257)
They MIGHT remove it.
"We may, but have no obligation to, remove Content and Accounts containing Content that we determine in our sole discretion are unlawful, offensive, threatening, libelous, defamatory, pornographic, obscene or otherwise objectionable or violates any party's intellectual property or these Terms of Service."
Just chiming in to promote this a bit. GitLab is a well-known open source alternative to GitHub, which actually offers more features than GitHub nowadays.
https://pages.gitlab.io/
This is perhaps my favorite distinction between Github and Gitlab pages.
Of course, flexibility comes at a cost: GitLab is much more complicated, and the documentation kinda sucks. OTOH, the setup process is a good learning experience.
[Disclaimer, I'm one of the founders]
Serious question, this post is nothing more than marketing blurb, contributes nothing to the discussion. What's the site policy?
Whether people gets downvoted or upvoted for it depends on whether readers see the comment as legitimate and relevant or as spam...
I want to generate static HTML files, the simplest example being a 5 page website that uses the same header and footer template across all pages. I want static files for simple scaling, not PHP or JS templating. Ideally this tool would be node based for simple automation with gulp. Anything out there that fits the bill? Handelbars.js with precompiler looks like a good fit, but I'm curious what others use in this scenario.
I tried Jekyll before, but between Ruby, some bugs and template choice overload I dropped it. Moved to Hexo a few months ago and built a couple projects with it. It's worked great for writing but also building a reviews website.
Other options would be Middleman or Metalsmith. I've used both of them successfully for relatively complex static sites. But I wouldn't call them simpler than Jekyll.
I found Jekyll to work very well out of box. All of my content is in a markdown file, with styling broken out to layout HTML and CSS.
IMO, I find the community around Jekyll, along with the understandability of Ruby to outweigh using a simpler solution.
It takes a bit of configuring, but seems like it would be exactly what you want.
https://support.cloudflare.com/hc/en-us/articles/203306930-D...
> You have to deal with a Terminal to push your changes using GIT Github's desktop application is actually pretty easy to use, much more so than using git from terminal
https://gist.github.com/coolaj86/e07d42f5961c68fc1fc8 https://github.com/isaacs/github/issues/156
Is there such a thing?
I mean, you can use Couch, or Redis, or whatever. You'd just have to host the server yourself. And since CORS isn't enabled AFAIK, you'd have to use some kind of hack, like JSONP or whatever.
For content, you could look at Prismic.
-Easy config
-No need to leave Emacs
-Easy automation (no WYSIWYG)
-Potential for a WYSIWYG if you want one (Lektor, for instance, another static site generator, provides one)
"We may, but have no obligation to, remove Content and Accounts containing Content that we determine in our sole discretion are unlawful, offensive, threatening, libelous, defamatory, pornographic, obscene or otherwise objectionable or violates any party's intellectual property or these Terms of Service."
https://help.github.com/articles/github-terms-of-service/