Its not self-hosted if you rely on Github for hosting.
Building a fast, secured and free static site in less than three hours
21–30 of 201 posts
Re: Building a fast, secured and free static site in less than three hours
#22Earlier quoted context omitted.
I have learnt that you can throw in parentheses for readability.. if (or cond1 cond2)
The next logical step is to mark with parentheses the two branches of the if expression: (if (or cond1 cond2) (then) (else)) although i suppose it's not really hugo anymore..
(if (or cond1 .. condn)
(progn
(true1)
(true2))
(false1)
(false2))
But in Go templates, it would be:{{ if (or cond1 .. condn) }} true1 true2 {{ else }} false1 false2 {{ endif }}
Re: Building a fast, secured and free static site in less than three hours
#23As far as I know, Github pages doesn't support https for custom domains [1]. A better option for free hosting would be netlify, which supports Let's encrypt for custom domains. [1] https://github.com/isaacs/github/issues/156
We use cloudflare on our Github pages custom domain, so you can easily get https support that way.
Re: Building a fast, secured and free static site in less than three hours
#24Earlier quoted context omitted.
We use cloudflare on our Github pages custom domain, so you can easily get https support that way.
But doing that won't protect the route between Cloudflare and Github pages, only the route between the user and Cloudflare.
Re: Building a fast, secured and free static site in less than three hours
#25I've created an actual static site myself, but it takes a bit extra - especially from the theme.
Also, I don't understand why you'd use Hugo with Github when it already supports Jekyll?
Re: Building a fast, secured and free static site in less than three hours
#26Re: Building a fast, secured and free static site in less than three hours
#27Re: Building a fast, secured and free static site in less than three hours
#28Earlier quoted context omitted.
The next logical step is to mark with parentheses the two branches of the if expression: (if (or cond1 cond2) (then) (else)) although i suppose it's not really hugo anymore..
Is there a reason something more standard like "if cond1 or cond2 then x else y" isn't supported? Parsing speed?
Re: Building a fast, secured and free static site in less than three hours
#29Re: Building a fast, secured and free static site in less than three hours
#30Example: https://github.com/mizzao/andrewmao.net/blob/master/Rakefile