www.mtkn.jp

Manuscripts for my personal webpage.
git clone https://git.mtkn.jp/www.mtkn.jp
Log | Files | Refs | LICENSE

commit b20d16a8c8abbbe651cd724c99f353df94adb9fd
parent 107e7263ef30d9bfed969d75cca01f9a7d6e25ec
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Sat, 28 Feb 2026 13:27:57 +0900

automatically list new content in the homepage and journal index page

Diffstat:
Dcontent/_index.html | 46----------------------------------------------
Mcontent/gallery/20231202.html | 2+-
Mlayouts/home.html | 15++++++++++++++-
Alayouts/journal/section.html | 10++++++++++
4 files changed, 25 insertions(+), 48 deletions(-)

diff --git a/content/_index.html b/content/_index.html @@ -1,46 +0,0 @@ -+++ -date = '2026-02-27T00:00:00+09:00' -draft = false -title = '松露庵' -+++ - -<p><img class="portrait" src="/pics/icon.jpeg" alt="似顔絵" width="100"></p> - -<p> -学問を志して挫折し、就職して適応障害になり、社会のしがらみから離れて田舎でのんびり暮らしています。 -</p> - -<h2>更新履歴</h2> -<a href="/rss.xml">RSS</a> -<ul> -<li>2026-02-27 <a href="/computer/web_design">ウェブデザイン</a></li> -<li>2025-12-20 <a href="/computer/x11_32bit_window.html">X11で深さが32bitのwindowを作成する</a></li> -<li>2025-11-22 <a href="/journal/posts/20251122.html">ひさしぶりに合気道した</a></li> -<li>2025-08-27 <a href="/computer/rp2040_3_interrupt.html">RP2040 SDKなし3 割り込み</a></li> -<li>2025-07-17 <a href="/gallery/20250717.html">自画像</a></li> -<li>2025-05-19 <a href="/journal/posts/20250519.html">万博で知り合ったルーマニア人とハイキングに行った</a></li> -<li>2025-04-28 <a href="/computer/openbsd_on_u9310e.html">OpenBSD on Fujitsu LIFEBOOK U9310/E</a></li> -<li>2025-04-20 <a href="/journal/posts/20250420.html">大阪万博行った</a></li> -<li>2025-03-29 <a href="/plant">タネツケバナ咲いてた</a></li> -<li>2025-02-21 <a href="/journal/posts/20250221.html">着物作った</a></li> -<li>2025-02-16 <a href="/journal/posts/20250216.html">きのかわ弦楽合奏団 さくらコンサート</a></li> -<li>2025-01-01 <a href="/gallery/20250101.html">年賀状</a></li> -<li>2024-12-19 <a href="/computer/9p.html">9P</a></li> -<li>2024-12-11 <a href="/journal/posts/20241211.html">きのかわ弦楽合奏団 第5回コミュニティコンサート</a></li> -<li>2024-12-02 <a href="/journal/posts/20241202.html">椅子作った</a></li> -<li>2024-10-10 <a href="/kitchen/recipe/mapo_tofu.html">麻婆豆腐</a></li> -<li>2024-10-09 <a href="/journal/posts/20241009.html">棚作った</a></li> -<li>2024-07-30 <a href="/gallery/index.html">絵を追加した</a></li> -<li>2024-04-28 <a href="/journal/posts/20240428.html">きのかわ弦楽合奏団第7回定期演奏会</a></li> -<li>2024-02-22 <a href="/computer/rp2040_2.html">RP2040 SDKなし2 Clock、UART</a></li> -<li>2024-02-15 <a href="/computer/git_server.html">Gitサーバーの設定 on OpenBSD</a></li> -<li>2024-02-09 <a href="/kitchen/recipe/miso.html">味噌</a></li> -<li>2024-01-19 <a href="/computer/mailserver.html">メールサーバー構築 on OpenBSD with OpenSMTPD and Dovecot</a></li> -<li>2024-01-11 <a href="/computer/what-i-use.html">使用しているハードウェア、ソフトウェア</a></li> -<li>2024-01-01 <a href="/gallery/20240101.html">年賀状</a></li> -<li>2023-12-02 <a href="/gallery/index.html">絵を追加した</a></li> -<li>2023-10-24 <a href="/gallery/index.html">絵を追加した</a></li> -<li>2023-10-07 <a href="/gallery/20231007.html">絵を描いた</a></li> -<li>2023-08-10 <a href="/journal/posts/20230810.html">イソヒヨ</a></li> -</ul> - diff --git a/content/gallery/20231202.html b/content/gallery/20231202.html @@ -1,7 +1,7 @@ +++ date = '2023-12-02T00:00:00+09:00' draft = false -title = '' +title = '無題' +++ <time>2023-12-02</time> <img src="img/20231202.jpg"> diff --git a/layouts/home.html b/layouts/home.html @@ -1,3 +1,16 @@ {{ define "main" }} - {{ .Content }} +<p><img class="portrait" src="/pics/icon.jpeg" alt="似顔絵" width="100"></p> + +<p> +学問を志して挫折し、就職して適応障害になり、社会のしがらみから離れて田舎でのんびり暮らしています。 +</p> + +<h2>更新履歴</h2> +<a href="/rss.xml">RSS</a> +<ul> +{{ range .Site.RegularPages.ByPublishDate.Reverse | first 10 }} +<li>{{ time.Format "2006-01-02" .PublishDate }} <a href="{{ .RelPermalink }}">{{ .Title }}</a></li> +{{ end }} +</ul> + {{ end }} diff --git a/layouts/journal/section.html b/layouts/journal/section.html @@ -0,0 +1,10 @@ +{{ define "main" }} +<h1>{{ .Title }}</h1> + <ul> + {{ range .Data.Pages.ByPublishDate.Reverse }} + <li> + {{ time.Format "2006-01-02" .PublishDate }} <a href="{{ .RelPermalink }}">{{ .Title }}</a> + </li> + {{ end }} + </ul> +{{ end }}