<?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 Bits Thoughts &amp; More, hugo based</title><link>https://997f8fd8.myblog-1k6.pages.dev/tags/hugo/</link><description>Recent content in Hugo on Bits Thoughts &amp; More, hugo based</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 17 Nov 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://997f8fd8.myblog-1k6.pages.dev/tags/hugo/index.xml" rel="self" type="application/rss+xml"/><item><title>making a post with assets</title><link>https://997f8fd8.myblog-1k6.pages.dev/posts/post-in-a-directory/</link><pubDate>Sun, 17 Nov 2024 00:00:00 +0000</pubDate><guid>https://997f8fd8.myblog-1k6.pages.dev/posts/post-in-a-directory/</guid><description>
&lt;p&gt;There is also the option to make post with assets (images, other media or files).
In order to organize things right you just create a directory with the post name
put your assets there and make the references in the index.md file&lt;/p&gt;
&lt;p&gt;&lt;img src="https://997f8fd8.myblog-1k6.pages.dev/posts/post-in-a-directory/image.png" alt="like this"&gt;&lt;/p&gt;</description></item><item><title>Adding Emoji in Hugo Post :smile:</title><link>https://997f8fd8.myblog-1k6.pages.dev/posts/adding-emoji-in-hugo-post/</link><pubDate>Tue, 23 Apr 2024 10:39:09 +0300</pubDate><guid>https://997f8fd8.myblog-1k6.pages.dev/posts/adding-emoji-in-hugo-post/</guid><description>
&lt;p&gt;I&amp;rsquo;ve seen a particular Hugo theme called &lt;a href="https://github.com/panr/hugo-theme-hello-friend"&gt;hello-friend&lt;/a&gt;
which I liked and choose to start with it.
However, in a post I thought of adding an emoji (a simple :smile:).
But it didn&amp;rsquo;t work, and the reason is that the template did not use a parsing for them.
However Hugo supports them, and I only hade to change this in one place in the template to make it work.
So in &lt;code&gt;themes/hello-friend/layouts/_default/single.html&lt;/code&gt; change :&lt;/p&gt;</description></item><item><title>adding a post by adding a file</title><link>https://997f8fd8.myblog-1k6.pages.dev/posts/what-if/</link><pubDate>Thu, 18 Apr 2024 12:56:02 +0300</pubDate><guid>https://997f8fd8.myblog-1k6.pages.dev/posts/what-if/</guid><description>
&lt;p&gt;So how about just create a new file in the correct file structure and not use the &lt;code&gt;hugo new post&lt;/code&gt;?
as it turns out it works exactly as expected&amp;hellip;
So &lt;code&gt;hugo&lt;/code&gt; just needs this footer.. and that is all!&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-txt" data-lang="txt"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;+++
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;title = &amp;#39;adding a post by adding a file&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;date = 2024-04-18T12:56:02+03:00
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tags = [&amp;#39;hugo&amp;#39;, &amp;#39;blogging&amp;#39;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;lastModDisplay = &amp;#34;Modified:&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;draft = &amp;#34;false&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;+++
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Depending on theme you should be able to see this emoji rendered or not.. :smile:&lt;/p&gt;</description></item><item><title>Blogging with Hugo</title><link>https://997f8fd8.myblog-1k6.pages.dev/posts/blogging_with_hugo/</link><pubDate>Thu, 18 Apr 2024 12:56:02 +0300</pubDate><guid>https://997f8fd8.myblog-1k6.pages.dev/posts/blogging_with_hugo/</guid><description>
&lt;p&gt;Following a guide from Ryan in youtube.. (&lt;a href="https://www.youtube.com/watch?v=LIFvgrRxdt4"&gt;https://www.youtube.com/watch?v=LIFvgrRxdt4&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;What you need:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;2 repos, one for the code of the site and one to deploy (we are going to use github pages)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Those two repos will be &lt;code&gt;joined&lt;/code&gt; using git submodule.&lt;/p&gt;
&lt;p&gt;In the code repo do:
&lt;code&gt;git submodule add -b main &amp;lt;github pages repo&amp;gt; public&lt;/code&gt;
Where the &lt;code&gt;-b main&lt;/code&gt; is the branch of the repo, abd &lt;code&gt;public&lt;/code&gt; is the folder that will be linked within the code repo and will point to that branch of the github pages repo.&lt;/p&gt;</description></item></channel></rss>