From 74bd2b2b350d9f0172fd93d24ce353210bbfce23 Mon Sep 17 00:00:00 2001 From: Lemon73-Computing Date: Wed, 20 Mar 2024 10:52:30 +0900 Subject: [PATCH] translate: samples/thumbnail_sample into japanese --- .../samples/thumbnail_sample/index.ja.md | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 exampleSite/content/samples/thumbnail_sample/index.ja.md diff --git a/exampleSite/content/samples/thumbnail_sample/index.ja.md b/exampleSite/content/samples/thumbnail_sample/index.ja.md new file mode 100644 index 00000000..af606f12 --- /dev/null +++ b/exampleSite/content/samples/thumbnail_sample/index.ja.md @@ -0,0 +1,38 @@ +--- +title: "サムネイル" +date: 2022-09-26 +draft: false +description: "記事のサムネイルを変更する。" +slug: "thumbnail_sample" +tags: ["thumbnail", "sample"] +summary: "A quick example of how to start using Thumbnails in your artciles." +type: 'sample' +--- + +記事でどのようにサムネイルを利用するかの簡単な例です。 + +記事の平均的なディレクトリが以下のようなものだとしたら: + +```shell +content +└── awesome_article.md +``` + +単一の markdown ファイルから、フォルダーに入っている形式に変更する必要があります。記事の名前と同一のディレクトリを作成し、その中に `index.md` ファイルを作成します。このようにすると、以下のような構成になります。 + +```shell +content +└── awesome_article + └── featured.png +``` + +記事内に `feature*` から始まる名前の画像ファイル (ほとんど全てのフォーマットを対応していますが、 `.png` か `.jpg` を推奨しています) を追加できます。以下が例です。 + +```shell +content +└── awesome_article + ├── index.md + └── featured.png +``` + +これによって Blowfish は、記事のサムネイルをウェブサイトまたは SNS の oEmbed カードの紹介画像として利用できます。例としては、この記事の URL を oEmbeds を表示するプラットフォーム (例: Twitter, WhatsApp, Telegram など) にコピーペーストどのように表示されるかをご覧ください。