<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Blog on Space Dust</title>
    <link>https://blog.gani.win/tags/blog/</link>
    <description>Recent content in Blog on Space Dust</description>
    <image>
      <title>Space Dust</title>
      <url>https://blog.gani.win/favicon.png</url>
      <link>https://blog.gani.win/favicon.png</link>
    </image>
    <generator>Hugo -- 0.147.2</generator>
    <language>en-US</language>
    <lastBuildDate>Thu, 01 Feb 2024 00:20:08 +0800</lastBuildDate>
    <atom:link href="https://blog.gani.win/tags/blog/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Build My Hugo Site</title>
      <link>https://blog.gani.win/posts/hugo/</link>
      <pubDate>Thu, 01 Feb 2024 00:20:08 +0800</pubDate>
      <guid>https://blog.gani.win/posts/hugo/</guid>
      <description>Some notes for building the blog with Hugo.</description>
    </item>
    <item>
      <title>Build My Hexo Blog</title>
      <link>https://blog.gani.win/posts/hexo/</link>
      <pubDate>Thu, 31 Aug 2023 16:57:12 +0000</pubDate>
      <guid>https://blog.gani.win/posts/hexo/</guid>
      <description>&lt;h2 id=&#34;readme&#34;&gt;README&lt;/h2&gt;
&lt;p&gt;It&amp;rsquo;s obsolete. Now I use &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt; instead of &lt;a href=&#34;https://hexo.io/&#34;&gt;Hexo&lt;/a&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;My Hexo is running in &lt;a href=&#34;https://hub.docker.com/repository/docker/mupofps/hexo/&#34;&gt;Docker&lt;/a&gt;. It watches files of the blog, and generates the static files for Apache HTTP server.&lt;/p&gt;
&lt;h2 id=&#34;build-the-image&#34;&gt;Build the image&lt;/h2&gt;
&lt;p&gt;Get a Dockerfile.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cd $WorkDir
git clone https://github.com/spurin/docker-hexo.git
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Remove &lt;a href=&#34;https://github.com/jaredly/hexo-admin&#34;&gt;Hexo Admin&lt;/a&gt;, add &lt;a href=&#34;https://docs.docker.com/config/containers/multi-service_container/#use-a-process-manager&#34;&gt;Supervisor&lt;/a&gt; for process manager and use a script &lt;code&gt;start.sh&lt;/code&gt; to run &lt;code&gt;hexo&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Build the image.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;docker build -t hexo $WorkDir
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;run-the-container&#34;&gt;Run the container&lt;/h2&gt;
&lt;p&gt;Use Docker Compose to run &lt;code&gt;hexo&lt;/code&gt; service.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
