{"id":4672,"date":"2019-12-11T11:45:24","date_gmt":"2019-12-11T11:45:24","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=4672"},"modified":"2024-12-04T17:24:19","modified_gmt":"2024-12-04T17:24:19","slug":"static-page-web-sites","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/static-page-web-sites\/","title":{"rendered":"Static page web sites"},"content":{"rendered":"<p>I came across a video that suggested <a href=\"https:\/\/youtu.be\/qtQ9TvQLKjc\">using google drive as a web hosting solution<\/a>. This seemed quite a neat idea. I need to examine if I lose anything by not having a web server in-front of it, probably not; there is one which is run and configured by Google. It would however require a static page site. Another reason for having a look at these. Here are my notes.<!--more--><\/p>\n<h3>Why?<\/h3>\n<p>Static Page sites are fast and the infrastructure is simple. The alternatives tend to have databases. We are also back to the compiler\/interpreter dichotomy, a static site will be generated once and its output served by the httpd (like a compiler) whereas,\u00a0 a CMS will generate the HTML as each page is called (like an interpreter) from various sources which requires both CPU cycles &amp; interproccess communication overheads.<\/p>\n<p>This <a title=\"Abandoning the static site\" href=\"https:\/\/schier.co\/blog\/abandoning-the-static-site\">article is written by someone who&#8217;s moved off<\/a> them because of the\u00a0 need for a binary execution environment on the authoring device\u00a0 but he also identifies <a href=\"https:\/\/github.com\/features\/actions\">github actions<\/a> as means of minimising this part of the problem<\/p>\n<p>The former solution may mandate a dev\/deploy\/prod architecture and management and using a database or an sccs to help with concurrency if one has a big team.<\/p>\n<h3>What&#8217;s around?<\/h3>\n<p>I found this, which <a href=\"https:\/\/www.freecodecamp.org\/news\/static-sites-are-back-24d01a01f11a\/\">categorises the best static website generators<\/a>, from freecodecamp.org. They look at Jekyll, Gatsby, Hugo, Hexo and Wintersmith. I <a href=\"https:\/\/davelevy.info\/wiki\/hugo\/\">looked at Hugo<\/a> in May 2018. These five are written in <em>Ruby<\/em> or <em>node.js<\/em>, except Hugo, both of which will require an installation on Windows and Linux. (Hugo is written in <em>Go<\/em>, which also requires such an installation.) The article is unclear as to whether these products are free.<\/p>\n<p>They like Gatsby because it&#8217;s popular.<\/p>\n<p>One selection criteria will be the availability of templates. Themeforest have a bunch for Jekyll,\u00a0 non-free but that&#8217;s their business model.<\/p>\n<p>It would seem they got their short-list from\u00a0<a href=\"https:\/\/staticsitegenerators.net\">staticsite generators .net<\/a>\u00a0, some of which seem to have gone, and most of which will require a 3rd party product to woek, although it&#8217;s not that surprising and Python comes with most distros of Linux. I found <a href=\"https:\/\/www.11ty.dev\/docs\/getting-started\/\">Eleventy<\/a>\u00a0, which looks simple to use in itself, but may require a significant number of template files, although perhaps it could be done using CSS.<\/p>\n<p>I seem to remember that a site generator was released with the now defunct <a title=\"the wikipedia page\" href=\"https:\/\/en.wikipedia.org\/wiki\/HoTMetaL\">Hot Metal Pro<\/a>. Perhaps they let them go to early?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I came across a video that suggested using google drive as a web hosting solution. This seemed quite a neat idea. I need to examine if I lose anything by not having a web server in-front of it, probably not; there is one which is run and configured by Google. It would however require a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4673,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[27,3],"tags":[253,1179,911,849],"class_list":["post-4672","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","category-technology","tag-html","tag-static-site","tag-technology","tag-webdesign"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2019\/12\/pages-w650.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=4672"}],"version-history":[{"count":1,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4672\/revisions"}],"predecessor-version":[{"id":11852,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4672\/revisions\/11852"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/4673"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=4672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=4672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=4672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}