{"id":13824,"date":"2020-07-13T12:19:11","date_gmt":"2020-07-13T18:19:11","guid":{"rendered":"http:\/\/macblaze.ca\/?p=13824"},"modified":"2020-07-13T12:19:11","modified_gmt":"2020-07-13T18:19:11","slug":"hugo","status":"publish","type":"post","link":"https:\/\/macblaze.ca\/?p=13824","title":{"rendered":"Hugo!"},"content":{"rendered":"<p>While I was looking into linux, I came across a vlog that recommended using <a href=\"https:\/\/gohugo.io\/\" target=\"_blank\" rel=\"noopener noreferrer\">Hugo<\/a> and <a href=\"https:\/\/www.netlify.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Netlify<\/a> as a way to maintain a free web presence. I&#8217;ve found a lot of these sorts of things (&#8220;free&#8221;) and even went so far as to set up a small site using the free parts of Google Cloud to get my <a href=\"http:\/\/macblaze.ca\/?p=13665\">Python project<\/a> up and running.<\/p>\n<p>But what struck me about Hugo was that it was a static website and therefore faster and more secure than the typical WordPress install. And it was an intriguing concept that you could mimic the&nbsp; flexibility of a dynamic site using static pages. So I decided to give it a go.<\/p>\n<p>I deiced to leave Netlify as an experiment for a future project and set about rebuilding the site using Hugo. As a result my old, much ignored portfolio site <a href=\"https:\/\/astart.ca\" target=\"_blank\" rel=\"noopener noreferrer\">astart.ca<\/a> is now refreshed and way more speedy even though I didn&#8217;t change the content or the host.<\/p>\n<p><a href=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2020\/07\/Screen-Shot-2020-07-13-at-12.02.59-PM.png\"><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-13825\" src=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2020\/07\/Screen-Shot-2020-07-13-at-12.02.59-PM-400x320.png\" alt=\"\" width=\"400\" height=\"320\" srcset=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2020\/07\/Screen-Shot-2020-07-13-at-12.02.59-PM-400x320.png 400w, https:\/\/macblaze.ca\/wp-content\/uploads\/2020\/07\/Screen-Shot-2020-07-13-at-12.02.59-PM-1024x819.png 1024w, https:\/\/macblaze.ca\/wp-content\/uploads\/2020\/07\/Screen-Shot-2020-07-13-at-12.02.59-PM-150x120.png 150w, https:\/\/macblaze.ca\/wp-content\/uploads\/2020\/07\/Screen-Shot-2020-07-13-at-12.02.59-PM-768x614.png 768w, https:\/\/macblaze.ca\/wp-content\/uploads\/2020\/07\/Screen-Shot-2020-07-13-at-12.02.59-PM.png 1034w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<h2>So what is it?<\/h2>\n<p>I will get into more it in a later post. But basically it&#8217;s a framework that allows you to build the website using templates and pseudo-dynamic techniques and when you are ready to go, you just &#8220;publish&#8221; the project and it exports the whole website as static pages. It supports a ton of themes like WordPress, although again I decided to build my own from scratch.<\/p>\n<p>Pages are built using <a href=\"http:\/\/macblaze.ca\/?p=7856\">markdown<\/a>. It&#8217;s a versatile markup language and one I keep trying to use so one of the side benefits of this is I have become much more facile using it. The gist is that now the site is built all you have to do is open a text file, add content using markdown formatting, link to accompanying pictures and then&nbsp; just run a short &#8220;deploy&#8221; script to automatically rebuild the site and upload to your host. Simple.<\/p>\n<p>It&#8217;s perfect for a site like the portfolio that doesn&#8217;t change much, but now I am going to try it on a more blog-oriented site to see it it will stand up to more frequent posting. I will let you know.<\/p>\n<p>As for <a href=\"http:\/\/astart.ca\">astart.ca<\/a>, well it&#8217;s&nbsp; up and running and&nbsp; has a fresh new design. Check it out. Now all I have to do is dig up more current material to post. And that&#8217;s the hard part \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While I was looking into linux, I came across a vlog that recommended using Hugo and Netlify as a way to maintain a free web presence. I&#8217;ve found a lot of these sorts of things (&#8220;free&#8221;) and even went so far as to set up a small site using the free parts of Google Cloud [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/13824"}],"collection":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13824"}],"version-history":[{"count":1,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/13824\/revisions"}],"predecessor-version":[{"id":13826,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/13824\/revisions\/13826"}],"wp:attachment":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}