# 2024-09-29
Table of Contents
2024-09-29
minimal-mistakes
https://mmistakes.github.io/minimal-mistakes/docs/utility-classes/
これで画像のアラインなどを設定できるようだ
<figure> 要素とは:キャプションが付けられる図要素
https://developer.mozilla.org/ja/docs/Web/HTML/Element/figure
minimal-mistakes にもヘルパがある https://mmistakes.github.io/minimal-mistakes/docs/helpers/#figure
til TODO
-
monthly-posts.shで1ヶ月分の記事をディレクトリにまとめた時に- 一緒に1ヶ月分のテンプレートを作りたい
./generaete-posts-in-month-layout.sh --month 'YYYY-MM' > 'YYYY-MM.html' -
monthly-posts.sh内で上記コマンドを走らせる
- 一緒に1ヶ月分のテンプレートを作りたい
- Custom GitHub Actions
- Jekyll 4 にするため、
gh-pages (pages-gem)をやめる- ちょっと重そうなので要分割?
- Jekyll 4 にするため、
- 記事の更新とか
- タグとかカテゴリとか
- 日記形式とはまた別ページ作る?
- 特定のトピックを調べたものとか
- 日記形式とはまた別ページ作る?
- なんかテスト入れる
-
[example.com](https://example.com)とかのリンクを外部リンクにする- url のみの場合は対応できているのだが
- Key-sequence hotkeys を導入した
- pagination にも導入したい
- 1st page -
g fPrevious page -g pNext page -g nThe last page -g l - Posts by Year は
g yでいいかな
- 1st page -
- pagination にも導入したい
categories, category, tag
categories, category, tag とかのレイアウトがある
https://mmistakes.github.io/minimal-mistakes/docs/layouts/#layout-categories
categories の例はここ
https://mmistakes.github.io/minimal-mistakes/categories/
これは Categories: Layout Uncategorized になっていて、URL はその順番で並んでいる
ファイル名は layout-related-posts.html なんだろうか? つまり日付はついていなさそう?
https://mmistakes.github.io/minimal-mistakes/layout/uncategorized/layout-related-posts/
コードはここか Jekyll の形式で YYYY-mm-dd-title の title の部分が URL になっているのか
自分はタイトルを日付にしたくて YYYY-mm-dd-(YYYY-mm-dd|YYYY-mm-dd-title).md で作ってるからなあ…
title は形式通り、 _posts ディレクトリに入れておいてカテゴリを front matter で設定すれば良いのかな
例: カテゴリが Layout, Uncategorized なら URL は -> /layout/uncategorized/ になる
---title: "Layout: Related Posts Enabled"related: truecategories: - Layout - Uncategorizedtags: - related posts - layout---categories ページを作って個別記事をそこに表示できるようにするか