OJapp Blog Kit Preview
Write, preview, and manage your Blog Kit articles directly in Visual Studio Code.
OJapp Blog Kit Preview is a companion extension for OJapp Blog Kit, a lightweight, Markdown-based static blog generator. It brings live article previews and everyday writing tools into VS Code—without adding a CMS to your published website.
Requires an existing OJapp Blog Kit project. This extension is an editor companion, not a standalone blog generator.
日本語の説明はこちら
Features
Live Markdown preview with your own CSS
Preview a Markdown article beside the editor as you type. The extension loads stylesheets from your project's public/css/ directory:
style.css and highlight.css are loaded first by default, when present.
- Additional
.css files in the same directory are also loaded.
- Changes to Markdown and CSS update the preview without running a full site build.
- You can customize the preferred stylesheet order using the
blogkit.previewCss setting.
Note: This is a fast editing preview, not a rendering of dist/. Blog Kit's build-time HTML transformations (including custom code-block presentation) may look different on the published site.
Edit article and page metadata in a form
Open a settings form for the current Markdown file instead of searching through a large JSON file.
content/*.md → corresponding entry in articles.json
pages/*.md → corresponding entry in pages.json
- Edit titles, descriptions, permalinks, categories, summaries, hub links, dates, and other existing metadata fields.
- Save changes back to the relevant JSON file.
- Other existing metadata fields are retained; leaving a field blank removes that field.
For articles, you can also jump directly to the matching entry in articles.json and edit the JSON yourself.
Writing shortcuts
- Set update date: Insert or update
updated: YYYY-MM-DD in Markdown front matter using the current date in Japan Standard Time.
- Insert link: Turn selected text into a Markdown link by entering a URL.
- Insert image: Select an image from the project's
public/ directory and insert a Markdown image reference. Files outside public/ are not copied automatically.
Open or create an English counterpart
Blog Kit matches translated articles by filename/key: for example, pwa-basics and en--pwa-basics.
- If the counterpart exists, open it beside the current article.
- If an English counterpart does not exist, create
content/en--pwa-basics.md and its articles.json entry from the Japanese article.
- The new article is a starter template, not an automatic translation. Review its title, permalink, metadata, and body before publishing.
- No manual
translation field is required.
Getting started
- Install OJapp Blog Kit Preview from the Visual Studio Code Extensions view.
- Open your existing Blog Kit project folder in VS Code. It should contain
articles.json and content/.
- Open an article in
content/ or a Markdown page in pages/.
- Right-click in the Markdown editor and choose a Blog Kit action, or open the Command Palette with
Ctrl+Shift+P and search for Blog Kit.
Available commands:
| Command |
Purpose |
Blog Kit: プレビューを開く |
Open the live Markdown preview |
Blog Kit: 記事設定を開く |
Jump to the article's articles.json entry |
Blog Kit: 記事設定フォームを開く |
Edit article/page metadata in a form |
Blog Kit: 更新日を今日にする |
Set today's front-matter update date |
Blog Kit: リンクを挿入 |
Insert a Markdown link |
Blog Kit: 画像を挿入 |
Insert an image from public/ |
Blog Kit: 翻訳記事を開く / 作成 |
Open or create the paired English article |
Command labels are currently in Japanese.
Project structure
The extension expects the usual Blog Kit structure, for example:
my-blog/
├── articles.json
├── pages.json
├── content/
│ ├── pwa-basics.md
│ └── en--pwa-basics.md
├── pages/
│ └── about.md
└── public/
├── css/
│ ├── style.css
│ ├── highlight.css
│ └── custom.css
└── images/
pages.json, pages/, and individual CSS files are only needed for the corresponding features. Project detection requires articles.json and content/.
Important notes
- Back up or commit your work before editing metadata. The settings form writes directly to
articles.json or pages.json.
- An empty metadata field is removed when you save the form. Existing fields not shown as standard fields are preserved.
- The preview is intended for editing and styling checks. For final verification, build your Blog Kit site and inspect the generated output.
- This extension does not publish, deploy, or automatically translate articles.
- The extension's commands currently use Japanese labels.
About OJapp
OJapp creates lightweight tools for web publishing and home-screen web experiences.
Website: https://ojapp.app/
日本語
OJapp Blog Kitの記事制作を、VS Codeの中でもっと快適に。
OJapp Blog Kit Previewは、Markdownベースの静的ブログジェネレーター「OJapp Blog Kit」専用のVS Code拡張機能です。
Markdownのリアルタイムプレビュー、記事設定のフォーム編集、リンク・画像の挿入、翻訳記事の作成などを、普段のエディタから操作できます。
利用には既存のBlog Kitプロジェクトが必要です。 この拡張機能だけでブログを生成するものではありません。
主な機能
1. CSS付きリアルタイムプレビュー
Markdownを編集しながら、横にプレビューを表示できます。プロジェクトの public/css/ にある style.css、highlight.css を優先して読み込み、追加したCSSも適用します。MarkdownやCSSを変更すると、ビルドせずにプレビューを更新できます。
ただし、dist/ の完成HTMLを表示する仕組みではありません。Blog Kit本体のビルド処理によるコードブロックなどの表示とは、一部異なる場合があります。
2. 記事・固定ページの設定フォーム
開いているMarkdownに対応する articles.json または pages.json の設定をフォームで編集できます。
タイトル、メタディスクリプション、パーマリンク、カテゴリー、記事の要約、hub(ハブ記事)、公開日、更新日などに対応。既存の追加項目も編集できます。保存すると該当JSONファイルに反映されます。
content/ 内の記事では、対応する articles.json の設定位置に直接ジャンプすることもできます。
3. 更新日をワンクリックで設定
Markdownのフロントマターに updated: YYYY-MM-DD を追加、または更新します。日付は日本時間を基準にします。
4. リンク・画像の挿入
選択した文字列からMarkdownリンクを作成したり、public/ 内の画像を選んで画像タグを挿入したりできます。外部画像ファイルの自動コピーは行いません。
5. 翻訳記事を開く・作成する
pwa-basics.md と en--pwa-basics.md のような、Blog Kitの en-- 命名ルールに対応しています。
対応する記事があれば開き、英語記事がまだなければMarkdownの雛形と articles.json の設定を作成します。翻訳本文そのものは自動生成しません。 作成後にタイトル、URL、本文などを編集してください。
使い方
- VS Codeの拡張機能画面から「OJapp Blog Kit Preview」をインストールします。
- Blog Kitのプロジェクトフォルダを開きます。
content/ または pages/ のMarkdownファイルを開きます。
- エディタ内で右クリックして「Blog Kit」のメニューを選びます。
Ctrl+Shift+P から Blog Kit と検索しても操作できます。
注意事項
- 記事設定フォームの保存操作は、JSONファイルを直接変更します。Gitなどで変更履歴を残しておくことをおすすめします。
- フォームで空欄にした項目は、保存時に削除されます。それ以外の既存項目は保持します。
- プレビューは執筆中の確認用です。公開前の最終確認にはBlog Kit本体でビルドしたHTMLを利用してください。
- 記事の自動翻訳、サイトの公開・デプロイ機能はありません。
OJapp公式サイト: https://ojapp.app/