<?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 Hw5e&#39;s Page</title>
    <link>https://page.hw5e.cc/tags/hugo/</link>
    <description>Recent content in Hugo on Hw5e&#39;s Page</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ko</language>
    <managingEditor>hnw1155c@gmail.com (hw5e)</managingEditor>
    <webMaster>hnw1155c@gmail.com (hw5e)</webMaster>
    <copyright>© 2025 hw5e</copyright>
    <lastBuildDate>Fri, 31 Jan 2025 19:44:33 +0900</lastBuildDate><atom:link href="https://page.hw5e.cc/tags/hugo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Hugo Blowfish 테마와 Congo 테마</title>
      <link>https://page.hw5e.cc/memo/2025q1/hugo-bl-congo/</link>
      <pubDate>Fri, 31 Jan 2025 19:44:33 +0900</pubDate>
      <author>hnw1155c@gmail.com (hw5e)</author>
      <guid>https://page.hw5e.cc/memo/2025q1/hugo-bl-congo/</guid>
      <description>&lt;p&gt;Blowfish와 거의 똑같아 보이는 &lt;a href=&#34;https://github.com/jpanther/congo&#34; target=&#34;_blank&#34;&gt;congo&lt;/a&gt;가 있길래 보니깐
blowfish 개발자가 Congo 테마를 쓰다가 그걸 포크해서 blowfish 테마가 된 것 같다
&lt;a href=&#34;https://n9o.xyz/posts/202206-homepage-guide/&#34; target=&#34;_blank&#34;&gt;https://n9o.xyz/posts/202206-homepage-guide/&lt;/a&gt;&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://page.hw5e.cc/memo/2025q1/hugo-bl-congo/featured.png" />
    </item>
    
    <item>
      <title>hugo server를 외부에서 접속 할 수 있게 하기</title>
      <link>https://page.hw5e.cc/memo/2025q1/hugosvr_host/</link>
      <pubDate>Mon, 13 Jan 2025 05:27:32 +0900</pubDate>
      <author>hnw1155c@gmail.com (hw5e)</author>
      <guid>https://page.hw5e.cc/memo/2025q1/hugosvr_host/</guid>
      <description>&lt;p&gt;hugo에서 미리보기를 보고싶을 때 주로 쓰는 hugo server 기능은 기본 옵션에서 외부에서 접속하는 것을 막아놨다.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://page.hw5e.cc/memo/2025q1/hugosvr_host/featured.png" />
    </item>
    
    <item>
      <title>Hugo에서 TeX 수식 입력 문제</title>
      <link>https://page.hw5e.cc/post/2024/hugotex/</link>
      <pubDate>Fri, 06 Dec 2024 00:42:37 +0900</pubDate>
      <author>hnw1155c@gmail.com (hw5e)</author>
      <guid>https://page.hw5e.cc/post/2024/hugotex/</guid>
      <description>&lt;p&gt;

hugo에서 수식 입력은 보통 테마에서 &lt;a href=&#34;https://katex.org/&#34; target=&#34;_blank&#34;&gt;KaTeX&lt;/a&gt;를 쓸 수 있게 해주는 숏코드가 있으면 그걸 사용해서 수식을 입력한다.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>CORS 문제로 작동하지 않은 hugo 검색 기능</title>
      <link>https://page.hw5e.cc/post/2024/cors_hugo/</link>
      <pubDate>Sun, 01 Dec 2024 08:32:33 +0900</pubDate>
      <author>hnw1155c@gmail.com (hw5e)</author>
      <guid>https://page.hw5e.cc/post/2024/cors_hugo/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;문제 상황 
    &lt;div id=&#34;%EB%AC%B8%EC%A0%9C-%EC%83%81%ED%99%A9&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#%EB%AC%B8%EC%A0%9C-%EC%83%81%ED%99%A9&#34; aria-label=&#34;앵커&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;갑자기 이 사이트의 검색 기능이 작동하지 않는 것을 발견했는데 이상하게 다른 컴퓨터에서 열어봤을 때는 검색 기능이 작동했다. 대충 검색하다 개발자 도구를 열어봤더니 CORS 정책 때문에 index.json을 열 수 없다는 내용이였다.

    &lt;figure&gt;
      &lt;img
        class=&#34;my-0 rounded-md&#34;
        loading=&#34;lazy&#34;
        srcset=&#34;
        /post/2024/cors_hugo/featured_hu11613662072047376899.png 330w,
        /post/2024/cors_hugo/featured_hu3469156087312119459.png 660w,
        /post/2024/cors_hugo/featured_hu8141731089786230745.png 1024w,
        /post/2024/cors_hugo/featured_hu17459195717488181828.png 2x&#34;
        src=&#34;https://page.hw5e.cc/post/2024/cors_hugo/featured_hu3469156087312119459.png&#34;
        alt=&#34;&#34;
      /&gt;
      
    &lt;/figure&gt;

자세히보니 검색할 때 page.hw5e.cc/index.json을 가져오는데 &lt;a href=&#34;https://www.page.hw5e.cc&#34; target=&#34;_blank&#34;&gt;https://www.page.hw5e.cc&lt;/a&gt; 에서 &lt;a href=&#34;https://page.hw5e.cc&#34; target=&#34;_blank&#34;&gt;https://page.hw5e.cc&lt;/a&gt;에 있는 index.json을 가져올 수 없어서 검색이 되지 않았던 것이다.&lt;br&gt;
다시 확인해 보니 page.hw5e.cc에서는 검색이 되고 &lt;a href=&#34;https://www.page.hw5e.cc&#34; target=&#34;_blank&#34;&gt;www.page.hw5e.cc&lt;/a&gt;로 접속하면 검색이 안되는 것을 확인했다.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://page.hw5e.cc/post/2024/cors_hugo/featured.png" />
    </item>
    
  </channel>
</rss>
