<?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 oorkan</title>
    <link>https://www.oorkan.dev/blog/tags/hugo/</link>
    <description>Recent content in Hugo on oorkan</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 25 Aug 2020 08:35:05 +0400</lastBuildDate>
    <atom:link href="https://www.oorkan.dev/blog/tags/hugo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Hugo: Serve Drafts</title>
      <link>https://www.oorkan.dev/blog/hugo-serve-drafts/</link>
      <pubDate>Tue, 25 Aug 2020 08:35:05 +0400</pubDate>
      <guid>https://www.oorkan.dev/blog/hugo-serve-drafts/</guid>
      <description>&lt;a href=&#34;https://gohugo.io/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;img src=&#34;https://res.cloudinary.com/oorkan/image/upload/v1598330796/blog/img/topics/ssg/hugo-logo_fv8b8j.png&#34; alt=&#34;Hugo Logo&#34;&gt;&lt;/a&gt;&#xA;&lt;p&gt;To show drafts when running a Hugo server, we need to use a flag called &lt;code&gt;--buildDrafts&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;p&gt;&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;hugo serve --buildDrafts&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;or, simply:&lt;/p&gt;&#xA;&lt;p&gt;&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;hugo serve -D&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA; &lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://gohugo.io/documentation/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Learn more about Hugo&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
