Skip to content

YAML Front Matter の設定値を解析してタイトルやタグの読み出しに使う #39

Description

@amay077

現状

現状は、以下が前提となっている。

templateKey: blog-post
title: xxx
date: xxx
tags: [xxx, xxx]
  • title - タイトル
  • date - 投稿日時
  • tags - タグ群

こうしたい

templateKey: blog-post
my_title: {{title}}
post_at: {{date}}
categories: {{tags}}
  • プレースホルダ {{title}} がある行をタイトルとして使用する
  • {{date}}, {{tags}} も同様

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions