<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Nginx on SANJAY REGMI</title>
    <link>https://sanjayregmi.com/tags/nginx/</link>
    <description>Recent content in Nginx on SANJAY REGMI</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
    <lastBuildDate>Tue, 02 Jan 2024 14:38:15 -0800</lastBuildDate><atom:link href="https://sanjayregmi.com/tags/nginx/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Install Hugo on FreeBSD, commit to Github and deploy to Cloudflare pages</title>
      <link>https://sanjayregmi.com/posts/hugo-freebsd/</link>
      <pubDate>Tue, 02 Jan 2024 14:38:15 -0800</pubDate>
      
      <guid>https://sanjayregmi.com/posts/hugo-freebsd/</guid>
      <description>&lt;img src=&#34;https://sanjayregmi.com/images/hugo-100.png&#34;&gt;  &#xA;&#xA;&lt;h4 class=&#34;relative group&#34;&gt;Prerequisites&#xA;    &lt;div id=&#34;prerequisites&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#prerequisites&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Install PHP&lt;/li&gt;&#xA;&lt;li&gt;Install nginx&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h4 class=&#34;relative group&#34;&gt;Install Hugo&#xA;    &lt;div id=&#34;install-hugo&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#install-hugo&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;pkg install gohugo (install as root or do sudo)&lt;/li&gt;&#xA;&lt;li&gt;follow this after install - &lt;a href=&#34;https://web.archive.org/web/20231202094641/https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;https://web.archive.org/web/20231202094641/https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;remember to remove hugo.toml from the root directory otherwise you&amp;rsquo;ll get a &amp;ldquo;not Found&amp;rdquo; error!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h4 class=&#34;relative group&#34;&gt;Tip&#xA;    &lt;div id=&#34;tip&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#tip&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Install the GUI (maybe xfce or Kde5) so you edit md files, update them on the fly. Copy pasting and updating is easier with the gui and the terminal available. Refer to &lt;a href=&#34;https://sanjayregmi.com/posts/hugo-cheatsheet/&#34; &gt;Hugo Cheatsheat&lt;/a&gt; if you need instructions to create the new site.&lt;/li&gt;&#xA;&lt;li&gt;If you start getting weird errors from Git, just create a new hugo site, copy your contents and config.toml and follow instructions again. IMO Github has a lot to be done before it becomes user friendly. I&amp;rsquo;ll write about it separately someday.&lt;br&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&amp;#x1f336;&amp;#xfe0f;&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
