<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Hugo on SANJAY REGMI</title>
    <link>https://sanjayregmi.com/tags/hugo/</link>
    <description>Recent content in Hugo on SANJAY REGMI</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
    <lastBuildDate>Tue, 04 Jun 2024 16:54:29 -0700</lastBuildDate><atom:link href="https://sanjayregmi.com/tags/hugo/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Git Error - Fatal: the Remote End Hung Up Unexpectedly</title>
      <link>https://sanjayregmi.com/posts/git-error-fatal-the-remote-end-hung-up-unexpectedly/</link>
      <pubDate>Tue, 04 Jun 2024 16:54:29 -0700</pubDate>
      
      <guid>https://sanjayregmi.com/posts/git-error-fatal-the-remote-end-hung-up-unexpectedly/</guid>
      <description>&lt;p&gt;When you push commits to git, you sometimes might get into this error. I got this when pushing hugo code into git.&lt;/p&gt;&#xA;&lt;code&gt;&#xA;git push -u origin main&#xA;Enumerating objects: 61, done.&#xA;Counting objects: 100% (61/61), done.&#xA;Delta compression using up to 4 threads&#xA;Compressing objects: 100% (45/45), done.&#xA;error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400&#xA;send-pack: unexpected disconnect while reading sideband packet&#xA;Writing objects: 100% (54/54), 2.07 MiB | 5.37 MiB/s, done.&#xA;Total 54 (delta 14), reused 0 (delta 0), pack-reused 0 (from 0)&#xA;fatal: the remote end hung up unexpectedly&#xA;&lt;/code&gt;&#xA;&lt;p&gt;This is caused by git buffer settings. Run:&lt;/p&gt;</description>
      
    </item>
    
    <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>
    
    <item>
      <title>Hugo Cheatsheet</title>
      <link>https://sanjayregmi.com/posts/hugo-cheatsheet/</link>
      <pubDate>Mon, 01 Jan 2024 21:24:34 -0800</pubDate>
      
      <guid>https://sanjayregmi.com/posts/hugo-cheatsheet/</guid>
      <description>&lt;p&gt;Table Of Contents&lt;div class=&#34;toc&#34;&gt;&#xA;  &lt;nav id=&#34;TableOfContents&#34;&gt;&#xA;  &lt;ul&gt;&#xA;    &lt;li&gt;&#xA;      &lt;ul&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#start-work-on-hugo&#34;&gt;Start work on Hugo&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#content-creation-and-editing&#34;&gt;Content creation and editing&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#push-to-git---one-time-only-commands&#34;&gt;Push to Git - one time only commands&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#push-to-git---each-time-the-website-needs-to-be-updated&#34;&gt;Push to Git - each time the website needs to be updated.&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#themes&#34;&gt;Themes&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#emoji-support&#34;&gt;Emoji Support&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#google-analytics&#34;&gt;Google Analytics&lt;/a&gt;&#xA;          &lt;ul&gt;&#xA;            &lt;li&gt;&lt;a href=&#34;#old-method---does-not-work-for-many-themes-anymore-as-of-april-2024&#34;&gt;Old method - does not work for many themes anymore as of April, 2024&lt;/a&gt;&lt;/li&gt;&#xA;          &lt;/ul&gt;&#xA;        &lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#insert-table-of-content&#34;&gt;Insert Table of Content&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#insert-an-image&#34;&gt;Insert an image&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#insert-youtube-video&#34;&gt;Insert YouTube Video&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#add-last-modified-date-to-posts&#34;&gt;Add last modified date to posts&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#add-categories-and-tags-to-your-posts&#34;&gt;Add categories and tags to your posts&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#add-headings-to-your-post&#34;&gt;Add headings to your post&lt;/a&gt;&lt;/li&gt;&#xA;      &lt;/ul&gt;&#xA;    &lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/nav&gt;&#xA;&lt;/div&gt;&#xA;&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
