<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Static Websites on queil.net</title>
    <link>https://queil.net/tags/static-websites/</link>
    <description>Recent content in Static Websites on queil.net</description>
    <generator>Hugo</generator>
    <language>en-uk</language>
    <lastBuildDate>Thu, 19 Jan 2023 14:32:16 +0000</lastBuildDate>
    <atom:link href="https://queil.net/tags/static-websites/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Hot-reloading with busybox httpd</title>
      <link>https://queil.net/2023/01/hot-reloading-with-busybox-httpd/</link>
      <pubDate>Thu, 19 Jan 2023 14:32:16 +0000</pubDate>
      <guid>https://queil.net/2023/01/hot-reloading-with-busybox-httpd/</guid>
      <description>&lt;h2 id=&#34;intro&#34; class=&#34;anchor-link&#34;&gt;&lt;a href=&#34;#intro&#34;&gt;Intro&lt;span class=&#34;pilcrow&#34;&gt;&amp;nbsp;¶&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been recently working on a simple static website&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt;. I quickly noticed previewing it by browsing &lt;code&gt;index.html&lt;/code&gt; is far from perfect.&#xA;I needed a local server to host it. Ubuntu comes with &lt;a href=&#34;https://openwrt.org/docs/guide-user/services/webserver/http.httpd&#34;&gt;busybox httpd&lt;/a&gt; by default so I decided to give it a go.&lt;/p&gt;&#xA;&lt;p&gt;The server can host files form the current dir (&lt;code&gt;-f&lt;/code&gt; makes it run in foreground rather than as a daemon):&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;busybox httpd -f -p &lt;span class=&#34;m&#34;&gt;8090&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;It worked great until I got tired with hitting &lt;code&gt;F5&lt;/code&gt; to reload the page. I needed hot-reloading.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Need for Blog</title>
      <link>https://queil.net/2017/09/need-for-blog/</link>
      <pubDate>Sun, 10 Sep 2017 14:41:13 +0100</pubDate>
      <guid>https://queil.net/2017/09/need-for-blog/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve had a few attempts to start my own dev blog or website. However I would have always been pushed away by cumbersomeness of blogging platforms. To be fair I&amp;rsquo;ve never liked web interfaces. Needed a more dev-centric way of publishing own content. And finally I have discovered one that works for me (better later than never). It&amp;rsquo;s called &lt;a href=&#34;https://www.staticgen.com/&#34;&gt;static websites generation&lt;/a&gt; and it isn&amp;rsquo;t anything new whatsoever. Static websites are as old as the internet itself however thanks to evolution of web technologies (namely JavaScript, CSS, HTML, web browsers) it has been brought to a completely new level. The idea is to generate your web site in advance removing a need of a complex server environment (like databases or server-side processing). Obviously it has its limitations but I believe it works for blog-like websites very well.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
