From ef7c1e00ac653265af23209b8a2a5bff40d2ed16 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Thu, 30 Nov 2023 21:57:24 +0900 Subject: [PATCH 1/7] =?UTF-8?q?(add)=20=E3=83=96=E3=83=AD=E3=82=B0?= =?UTF-8?q?=E3=81=AE=E3=82=B5=E3=83=A0=E3=83=8D=E3=82=A4=E3=83=AB=E3=82=92?= =?UTF-8?q?=E3=82=B5=E3=83=9D=E3=83=BC=E3=83=88=20close=20#31?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/.README.md | 7 +++++++ pages/blog/[slug].vue | 18 +++++++++++++++--- pages/docs/[...slug].vue | 7 ++++--- types/content.ts | 29 +++++++++++++++++++++++++++++ types/docs.ts | 15 --------------- 5 files changed, 55 insertions(+), 21 deletions(-) create mode 100644 types/content.ts delete mode 100644 types/docs.ts diff --git a/content/.README.md b/content/.README.md index ea6e4704..a6db678e 100644 --- a/content/.README.md +++ b/content/.README.md @@ -37,6 +37,13 @@ VuePressでは末尾が`.md`となるパス形式でしたが、Misskey-Hub-Next date: 2023-11-11 ``` +### `thumbnail` +(現状ブログのみ)サムネイル画像を設定できます。URLまたはサイトディレクトリの絶対パスを入力してください + +```yml +thumbnail: /img/blog/foo/bar.png +``` + ### `maxTocDepth` (Docsのみ)もくじの見出しを遡る限度を指定できます。`

`タグまでにしたい場合は`2`を指定します。 diff --git a/pages/blog/[slug].vue b/pages/blog/[slug].vue index d0e09061..63293753 100644 --- a/pages/blog/[slug].vue +++ b/pages/blog/[slug].vue @@ -5,8 +5,8 @@

{{ $t('_blog.title') }}

-

{{ data.title }}

-

{{ $d(new Date(data.date)) }}

+

{{ data?.title }}

+

{{ $d(new Date(data?.date)) }}

@@ -23,6 +23,9 @@