<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>posts on Nantoka PRESS</title>
		<link>https://nantokapress.com/posts/</link>
		<description>Recent content in posts on Nantoka PRESS</description>
		<generator>Hugo</generator>
		<language>ja-JP</language>
		
		
		
		
			<lastBuildDate>Wed, 28 Oct 2026 07:00:00 +0900</lastBuildDate>
		
			<atom:link href="https://nantokapress.com/posts/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Hugo のコードの色付けを CSS クラスにする（highlight.js をやめた）</title>
				<link>https://nantokapress.com/hugo-chroma-css-classes/</link>
				<pubDate>Wed, 28 Oct 2026 07:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/hugo-chroma-css-classes/</guid>
				<description>&lt;h2 id=&#34;javascript-はいらなかった&#34;&gt;JavaScript はいらなかった&lt;/h2&gt;&#xA;&lt;p&gt;旧サイトのテーマでは highlight.js を読み込んで、ブラウザ側でコードに色を付けていました。 作り直すにあたって調べたところ、Hugo には Chroma というハイライターが入っていて、 ビルドのときに色付けまで済ませてくれます。 JavaScript を読み込む必要がなくなるので、こちらに乗り換えました。&lt;/p&gt;</description>
			</item>
			<item>
				<title>Cloudflare Workers の PBKDF2 は本番だけ反復 100,000 回まで</title>
				<link>https://nantokapress.com/workers-pbkdf2-iteration-limit/</link>
				<pubDate>Wed, 28 Oct 2026 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/workers-pbkdf2-iteration-limit/</guid>
				<description>&lt;h2 id=&#34;テストは全部通っていたのに&#34;&gt;テストは全部通っていたのに&lt;/h2&gt;&#xA;&lt;p&gt;個人で作っている Web サービスの API を Cloudflare Workers に載せています。 本番にデプロイして最初のアカウントを作ろうとしたところ、サインアップが 500 エラーになりました。 ログに出ていたのはこれです:&lt;/p&gt;</description>
			</item>
			<item>
				<title>古い PHP のコードを 8.3 に上げたら落ちたところまとめ</title>
				<link>https://nantokapress.com/php83-upgrade-errors/</link>
				<pubDate>Wed, 28 Oct 2026 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/php83-upgrade-errors/</guid>
				<description>&lt;h2 id=&#34;警告がエラーになった&#34;&gt;警告がエラーになった&lt;/h2&gt;&#xA;&lt;p&gt;PHP 7.4 で動いていた古い WordPress のサイトを、PHP 8.3 に上げる作業をしました。 自作のテーマや、WordPress の外に置いてある PHP のフォームなど、年季の入ったコードがたくさんあります。&lt;/p&gt;</description>
			</item>
			<item>
				<title>Hugo のテンプレート構成が変わっていた（0.146〜）</title>
				<link>https://nantokapress.com/hugo-new-template-system/</link>
				<pubDate>Tue, 27 Oct 2026 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/hugo-new-template-system/</guid>
				<description>&lt;h2 id=&#34;久しぶりに-hugo-のテーマを書いたら&#34;&gt;久しぶりに Hugo のテーマを書いたら&lt;/h2&gt;&#xA;&lt;p&gt;このサイトを Hugo 0.168 で作り直し、テーマも外部のものを使わず自分で書くことにしました。 昔の記憶のまま &lt;code&gt;layouts/_default/&lt;/code&gt; や &lt;code&gt;layouts/partials/&lt;/code&gt; を作ろうとしたのですが、 今の Hugo ではディレクトリ構成がすっきり変わっていました。 Hugo 0.146 で入った新しいテンプレートの仕組みのお話です。&lt;/p&gt;</description>
			</item>
			<item>
				<title>DockerでNuxtJSの開発環境を作成しました</title>
				<link>https://nantokapress.com/create-nuxt-app-with-docker/</link>
				<pubDate>Sun, 01 Nov 2020 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/create-nuxt-app-with-docker/</guid>
				<description>&lt;h2 id=&#34;nuxtjs-とは&#34;&gt;NuxtJS とは&lt;/h2&gt;&#xA;&lt;p&gt;NuxtJS(なくすとじぇぃえす)はウェブアプリケーションを構築するためのVueフレームワークです。&lt;br&gt;&#xA;ウェブアプリ開発で必要となる多くの機能が予め用意されています。&lt;br&gt;&#xA;今回は、Dockerを使って開発環境を作成しました。&lt;/p&gt;</description>
			</item>
			<item>
				<title>ES6のアロー関数を簡単解説</title>
				<link>https://nantokapress.com/es6-arrow-function/</link>
				<pubDate>Thu, 01 Oct 2020 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/es6-arrow-function/</guid>
				<description>&lt;h2 id=&#34;アロー関数とは&#34;&gt;アロー関数とは&lt;/h2&gt;&#xA;&lt;p&gt;アロー関数はES6(ECMA Script 2015)で導入された、関数リテラルを短く書くことができる構文です。&lt;br&gt;&#xA;書き方の違いだけかと思いきや、挙動の違いもあるので要注意です。&lt;/p&gt;</description>
			</item>
			<item>
				<title>form_for ヘルパーから form_with ヘルパーへの変更</title>
				<link>https://nantokapress.com/migrate-to-form-with-on-rails/</link>
				<pubDate>Wed, 06 May 2020 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/migrate-to-form-with-on-rails/</guid>
				<description>&lt;p&gt;Rails 5.1 で追加された &lt;code&gt;form_with&lt;/code&gt; というヘルパーがあります。&lt;br&gt;&#xA;従来の、&lt;code&gt;form_for&lt;/code&gt; &lt;code&gt;form_tag&lt;/code&gt; に換わる新機能です。&lt;br&gt;&#xA;&lt;code&gt;form_for&lt;/code&gt; &lt;code&gt;form_tag&lt;/code&gt; は将来廃止されるらしいので今のうちに備えておきましょう。&lt;/p&gt;</description>
			</item>
			<item>
				<title>AWS CLI のプロファイルをディレクトリごとに自動で切り替えたい</title>
				<link>https://nantokapress.com/switch-aws-profile-with-direnv/</link>
				<pubDate>Fri, 22 Nov 2019 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/switch-aws-profile-with-direnv/</guid>
				<description>&lt;h2 id=&#34;aws-のアカウントが増えてきた&#34;&gt;AWS のアカウントが増えてきた&lt;/h2&gt;&#xA;&lt;p&gt;AWS CLI を利用する際、アカウントがひとつなら何も考えないでよいのですが、 顧客のアカウントで操作する場合や複数のプロジェクトで異なるアカウントを使わなければ行けない場合など、 AWSの普及に伴って複数のアカウントを使い分ける必要が出てきました。 そんな時に使える設定方法と切り替え自動化のお話です。&lt;/p&gt;</description>
			</item>
			<item>
				<title>Elastic Beanstalk で Rails 環境を作ってみた</title>
				<link>https://nantokapress.com/elastic-beanstalk-and-rails/</link>
				<pubDate>Fri, 22 Nov 2019 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/elastic-beanstalk-and-rails/</guid>
				<description>&lt;h2 id=&#34;elastic-beanstalk-始めました&#34;&gt;Elastic Beanstalk 始めました&lt;/h2&gt;&#xA;&lt;p&gt;AWS に Elastic Beanstalk という ウェブアプリのインフラを程よくセットアップしてくれるサービスがあります。 お手軽だと聞いていたのですが、動くまで意外に苦労したので備忘録を残しておこうと思います。&lt;/p&gt;</description>
			</item>
			<item>
				<title>reCAPTCHAのバッヂ(プライバシー、利用規約のマーク)を消す方法</title>
				<link>https://nantokapress.com/hide-recaptcha-badge/</link>
				<pubDate>Fri, 15 Nov 2019 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/hide-recaptcha-badge/</guid>
				<description>&lt;h2 id=&#34;recaptchaがバッヂを強制的に出す問題&#34;&gt;reCAPTCHAがバッヂを強制的に出す問題&lt;/h2&gt;&#xA;&lt;p&gt;botなどのアクセスをガードしてくれるGoogleの&amp;quot;reCAPTCHA&amp;quot;サービスは便利・簡単・無料ですが、自動で表示されるバッヂが他のデザインと干渉する場合があります。 そこで、バッヂを消す(隠す)方法を紹介します。&lt;/p&gt;</description>
			</item>
			<item>
				<title>JavaScriptで&#34;history.back&#34; を使うとフォームの入力値がすべてクリアされてしまう現象を修正した話</title>
				<link>https://nantokapress.com/clear-fields-with-history-back/</link>
				<pubDate>Tue, 05 Nov 2019 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/clear-fields-with-history-back/</guid>
				<description>&lt;h2 id=&#34;入力値が消える問題&#34;&gt;入力値が消える問題&lt;/h2&gt;&#xA;&lt;p&gt;入力 &amp;gt; 確認 &amp;gt; 送信 のよくあるフローのフォームを作成し、確認画面でJavaScriptの&lt;code&gt;history.back&lt;/code&gt;を使って履歴を戻ったところ、 入力したデータがすべて消えてしまう現象に出くわしました。&lt;/p&gt;</description>
			</item>
			<item>
				<title>RSpecで失敗即終了したい時</title>
				<link>https://nantokapress.com/rspec-fail-fast/</link>
				<pubDate>Sat, 05 Oct 2019 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/rspec-fail-fast/</guid>
				<description>&lt;h2 id=&#34;痛恨テスト失敗してた&#34;&gt;痛恨!テスト失敗してた&lt;/h2&gt;&#xA;&lt;p&gt;RSpecでテストを実行した際、大量に失敗するのにテスト完了まで待つのはつらいです。 そんな時に便利なオプションがRSpecにはあります。&lt;/p&gt;&#xA;&lt;h3 id=&#34;fail-fast&#34;&gt;Fail Fast&lt;/h3&gt;&#xA;&lt;p&gt;最初の失敗があった時点でテストの実行が止まります。 同じような失敗が大量に出ているspecの修正などに便利です。&lt;/p&gt;</description>
			</item>
			<item>
				<title>HugoでGoogle Analyticsを設置する</title>
				<link>https://nantokapress.com/setup-google-analytics-in-hugo/</link>
				<pubDate>Wed, 02 Oct 2019 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/setup-google-analytics-in-hugo/</guid>
				<description>&lt;h2 id=&#34;google-analytics-を設置したい&#34;&gt;Google Analytics を設置したい&lt;/h2&gt;&#xA;&lt;p&gt;ブログやウェブサイトを作ったら、まずGoogle Analyticsを設置するという方は多いでしょう。 当ブログはHugoで作成していますが、Google Analyticsの設定を行ったのでその方法の紹介です。&lt;/p&gt;</description>
			</item>
			<item>
				<title>Hugo&#43;Netlifyで運用する簡単WEBサイト構築方法</title>
				<link>https://nantokapress.com/build-website-with-hugo/</link>
				<pubDate>Sat, 28 Sep 2019 00:00:00 +0900</pubDate>
				<guid>https://nantokapress.com/build-website-with-hugo/</guid>
				<description>&lt;h2 id=&#34;hugoとは&#34;&gt;Hugoとは?&lt;/h2&gt;&#xA;&lt;p&gt;This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I’ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won’t cover using CSS to style your theme.&lt;/p&gt;&#xA;&lt;p&gt;We’ll start with creating a new site with a very basic template. Then we’ll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
