<?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 Gatto Land</title>
        <link>https://gatto.land/ja/tags/hugo/</link>
        <description>Recent content in Hugo on Gatto Land</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>ja-jp</language>
        <lastBuildDate>Thu, 15 May 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://gatto.land/ja/tags/hugo/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>Hello World! - Hugo &#43; Cloudflareで再出発</title>
            <link>https://gatto.land/ja/p/hello-world/</link>
            <pubDate>Thu, 15 May 2025 00:00:00 +0000</pubDate>
            <guid>https://gatto.land/ja/p/hello-world/</guid>
            <description>&lt;img src=&#34;https://gatto.land/p/hello-world/Logo_of_Hugo.png&#34; alt=&#34;Featured image of post Hello World! - Hugo + Cloudflareで再出発&#34; /&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;&lt;em&gt;「三度目の正直。」&lt;/em&gt;&lt;br&gt;&#xA;GitHub Pagesと波乱のWordPress時代を経て、このブログはついに &lt;strong&gt;Hugo + Cloudflare Pages&lt;/strong&gt; の静的で安全な形に落ち着きました。&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Cloudflareのロゴ&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;722px&#34; data-flex-grow=&#34;301&#34; height=&#34;170&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://gatto.land/p/hello-world/Logo_of_Cloudflare.jpg&#34; width=&#34;512&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;これまでの流れ&#34;&gt;これまでの流れ&#xA;&lt;/h2&gt;&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;年&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;プラットフォーム&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;学んだこと&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;2017&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;strong&gt;GitHub Pages (Jekyll)&lt;/strong&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Gitの流れを学ぶには良かったが、やがて機能面とテーマの見た目に物足りなさを感じた。&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;2020&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;strong&gt;WordPress&lt;/strong&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;ビジュアルエディターは便利だったが、セキュリティ対応が急に重くなった。&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;2025&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;strong&gt;Hugo + Cloudflare&lt;/strong&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;エッジで配信される静的HTMLへ戻った。もう深夜にパッチ対応で起きる必要はない。&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;wordpressをやめた理由&#34;&gt;WordPressをやめた理由&#xA;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;2024年だけで、WordPressエコシステムでは7,966件の新しい脆弱性が公開された&lt;/strong&gt;。これは2023年比で &lt;strong&gt;34%増&lt;/strong&gt;、1日あたり約22件に相当する (Patchstack, 2025)。&lt;/li&gt;&#xA;&lt;li&gt;Sucuriのインシデントデータでは、&lt;strong&gt;2022年にハッキングされたCMSサイトの96.2%がWordPress&lt;/strong&gt; だった (Sucuri, 2023)。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;自分のサイトも、その統計の中に入ってしまった。古いプラグインを突かれ、ボットネットにトップページを書き換えられ、管理画面にも入れなくなった。直近のバックアップもなく、データベースは復旧不能だった。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;ハッカーとバイナリコードのイメージ写真&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;320px&#34; data-flex-grow=&#34;133&#34; height=&#34;720&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://gatto.land/p/hello-world/Cliche_Hacker_and_Binary_Code.jpg&#34; srcset=&#34;https://gatto.land/p/hello-world/Cliche_Hacker_and_Binary_Code_hu_11b3f53267b32499.jpg 800w, https://gatto.land/p/hello-world/Cliche_Hacker_and_Binary_Code.jpg 960w&#34; width=&#34;960&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;学んだこと&#34;&gt;学んだこと&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;自動更新を必ず有効にする&lt;/strong&gt; - 日本語ローマ字のドメイン &lt;strong&gt;&lt;code&gt;jiyuuneko.com&lt;/code&gt;&lt;/strong&gt; でさえ更新を忘れ、数時間後には第三者に取得されてしまった。&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;バージョン管理はバックアップになる&lt;/strong&gt; - Gitで管理された静的ファイルは、ライブデータベースより失いにくい。&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;動く部品は少ないほどいい&lt;/strong&gt; - PHPなし、MySQLなし、攻撃される面も少ない。&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Hugoのロゴ&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;877px&#34; data-flex-grow=&#34;365&#34; height=&#34;140&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://gatto.land/p/hello-world/Logo_of_Hugo.png&#34; width=&#34;512&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;hugo--cloudflare-pagesが気に入っている理由&#34;&gt;Hugo + Cloudflare Pagesが気に入っている理由&#xA;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;ビルドがとにかく速い&lt;/strong&gt; - コーヒーを一口飲む前に、Hugoがサイト全体を生成してくれる。ページ数が多くても一瞬だ。&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;どこからでも速い&lt;/strong&gt; - Cloudflareが世界中のエッジにページを置いてくれるので、ウェリントンでもクアラルンプールでもカンザスでも、同じように軽く読める。&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;動く部品が少なく、余計な不安も少ない&lt;/strong&gt; - 静的HTMLなので、データベースもPHPもない。攻撃者が触れる場所がほとんどない。&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;必要なものは最初からそろっている&lt;/strong&gt; - 無料HTTPSとしっかりしたファイアウォールを、数回のクリックで使える。&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Markdownで書ける気楽さ&lt;/strong&gt; - プレーンテキストで書き、Gitにコミットし、Hugoに任せる。差分は読みやすく、文章が特定のプラットフォームに閉じ込められない。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;これから書いていくこと&#34;&gt;これから書いていくこと&#xA;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;ランドスケープ研究、都市レジリエンス、持続可能なインフラ、デジタル公開ワークフローに関する少し深いメモ。&lt;/li&gt;&#xA;&lt;li&gt;Cloudflareのおかげで、プルリクエストごとに確認用URLも使える。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;もし以前のWordPressサイトをブックマークしてくれていたなら、ここまで見つけてくれてありがとうございます。新しいURLは &lt;strong&gt;&lt;a class=&#34;link&#34; href=&#34;https://gatto.land&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://gatto.land&lt;/a&gt;&lt;/strong&gt; です。今回は自動更新も有効にしてあります。&lt;/p&gt;&#xA;&lt;p&gt;また次の記事で。&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;参考文献&#34;&gt;参考文献&#xA;&lt;/h3&gt;&lt;p&gt;Cloudflare. (2016, September 27). Cloudflare logo [SVG logo]. Wikimedia Commons. &lt;a class=&#34;link&#34; href=&#34;https://commons.wikimedia.org/wiki/File:Cloudflare_Logo.svg&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://commons.wikimedia.org/wiki/File:Cloudflare_Logo.svg&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Coelho, E., &amp;amp; YellowIcon. (2008, May 2). Stachledraht DDoS attack diagram [SVG image]. Wikimedia Commons. &lt;a class=&#34;link&#34; href=&#34;https://commons.wikimedia.org/wiki/File:Stachledraht_DDos_Attack.svg&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://commons.wikimedia.org/wiki/File:Stachledraht_DDos_Attack.svg&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Francia, S., &amp;amp; Parr, B. (2014, May 28). Logo of Hugo the static website generator [SVG logo]. Wikimedia Commons. &lt;a class=&#34;link&#34; href=&#34;https://commons.wikimedia.org/wiki/File:Logo_of_Hugo_the_static_website_generator.svg&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://commons.wikimedia.org/wiki/File:Logo_of_Hugo_the_static_website_generator.svg&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Patchstack. (2025). &lt;em&gt;State of WordPress Security in 2025&lt;/em&gt;. &lt;a class=&#34;link&#34; href=&#34;https://patchstack.com/whitepaper/state-of-wordpress-security-in-2025/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://patchstack.com/whitepaper/state-of-wordpress-security-in-2025/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Sucuri. (2023). &lt;em&gt;2022 Hacked Website Report&lt;/em&gt;. &lt;a class=&#34;link&#34; href=&#34;https://sucuri.net/reports/2022-hacked-website-report/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://sucuri.net/reports/2022-hacked-website-report/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Whelan, D. (2016, May 24). Cliche hacker and binary code [Photograph]. Flickr. &lt;a class=&#34;link&#34; href=&#34;https://www.flickr.com/photos/davidpwhelan/26946304530/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.flickr.com/photos/davidpwhelan/26946304530/&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item></channel>
</rss>
