ジェキル,ヒューゴ,アストロ,エレヴェンティなどの静的サイト生成器 (SSG) は Markdown ファイルを利用してウェブサイトを作成する. Wordでコンテンツを書き込むなら,そのコンテンツを Markdownに変換することは重要な第一歩です. このガイドでは Word ステティックサイトへ ワークフロー
主要 な 作業 流程
Word (.docx) → Markdown (.md) → SSG build → HTML website
矢先が変化する
- WordToMD 変換する .docx → .md
- SSGのビルドシステムは .md を読み, HTML を生成します.
- CDN またはホスティングプラットフォームは HTML を提供します
プレートマターを追加
ステティック・サイト・ジェネレーターには YAMLのフロントマター すべての Markdown ファイルの上部にある. 変換した後に WordToMD, 内容の前に前面のブロックを追加します:
ジェキル / 11
---
layout: post
title: "Your Document Title"
date: 2026-05-25
categories: [tutorial, documentation]
tags: [word, markdown]
permalink: /blog/your-document/
---
ハーゴ
---
title: "Your Document Title"
date: 2026-05-25
draft: false
tags: ["tutorial", "documentation"]
slug: "your-document"
---
アストロ
---
title: "Your Document Title"
date: 2026-05-25
description: "A brief description for SEO."
tags: ["tutorial", "documentation"]
draft: false
---
ファイル組織
SSGは特定のディレクトリでコンテンツファイルを期待します.
| SSG | ブログ投稿ディレクトリ |
|---|---|
| ジェキル | _posts/ (ファイル名: YYYY-MM-DD-slug.md) |
| ハーゴ | content/posts/ |
| アストロ | src/content/blog/ |
| 十一 | 設定したすべてのディレクトリ |
| Next.js | content/ or posts/ (設定によって異なります) |
SSGのファイル名コンベンションと一致する. ジェキルは最も厳格だ 2026-05-25-word-to-static-site.md.
タイトルと内容構造
SSGの表示 # Heading 1 ページのメインタイトルのように 発注されてから title H2 を使用する (##H1を体内に入れるのを避けるようにします.
トップ 2 は主要なセクションに使用されている. テキスト・メッセージは,テキスト・メッセージのページに表示されます. 参照 Markdown タイトルガイド 詳細については
静止サイトでの画像
Word ドキュメントからの画像は:
- Word からエクスポート (Save As → Web Page フォルダーに画像をコピー)
- SSGの静的資産ディレクトリ (e.g) に置かれます.
public/images/Astro/Next.jsについてassets/images/ジェキル (Jekyll) について - Markdown で参照される:

テーブル
Word テーブルを GFM 構文に変換する WordToMD. All major SSGs render GFM tables. See Markdown 表: 完全なガイド.
コードブロック
文法ハイライトの言語識別子を含む囲まれたコードブロックを使用する.
```python
def convert_document(filepath):
with open(filepath, 'rb') as f:
return mammoth.convert_to_markdown(f).value
See [Markdown Code Blocks Guide](/blog/markdown-code-blocks-guide) for all supported languages.
## Validating Markdown Before Build
Before running your SSG build, validate your converted Markdown:
- **markdownlint** — Checks for style consistency and errors
- **Vale** — Prose linting for technical writing
- **Your SSG's dev server** — The fastest way; run `hugo serve`, `jekyll serve`, or `astro dev` and check the rendered output
## Batch Conversion for Large Content Migrations
If you're migrating an existing Word-based content library to an SSG:
1. Use [WordToMD](/#converter) for individual files
2. For dozens of files, see [Batch Convert Word to Markdown](/blog/batch-convert-word-to-markdown) for command-line tools
3. Write a script to add frontmatter and rename files to your SSG's convention
A Python or Node.js script can automate the frontmatter injection after batch conversion.
## SSG-Specific Tips
### Jekyll
- Filename must include the date: `2026-05-25-your-slug.md`
- Use `categories:` for site navigation
- Liquid template tags conflict with certain curly-brace content in Markdown — escape with `{% raw %}...{% endraw %}`
### Hugo
- Hugo has strict frontmatter validation — required fields depend on your theme
- Use `hugo new content/posts/slug.md` to create a properly templated file, then paste converted content
### Astro
- Uses Content Collections with schema validation
- Ensure frontmatter fields match the schema in `src/content/config.ts`
- Astro's MDX support allows components inside Markdown if needed
### Eleventy
- Most flexible SSG — any .md file in any directory is content
- Frontmatter format is configurable (YAML, TOML, JSON)
## FAQ
**Do I need to convert each Word file manually?**
For a few files, manual conversion with [WordToMD](/#converter) is fastest. For a whole content library, [batch conversion](/blog/batch-convert-word-to-markdown) makes more sense.
**My SSG build fails after importing converted Markdown. What's wrong?**
Check for: (1) missing required frontmatter fields, (2) unescaped special characters in frontmatter values, (3) smart quotes in frontmatter strings (replace with straight quotes).
**Can Word documents become MDX files for React-based SSGs?**
Yes. Convert to standard Markdown first, rename to .mdx, then add React component imports at the top if needed. See the basics in [What Is Markdown](/blog/what-is-markdown-guide).
**Which SSG is best for a team that writes in Word?**
If your team is non-technical and writes in Word, a headless CMS (like Contentful or Sanity) with Markdown support may be a better fit than a file-based SSG. The Word → Markdown workflow works well for developers and hybrid teams.
## Conclusion
Static site generators are an excellent home for content that starts in Word. [WordToMD](/#converter) handles the conversion step; your SSG handles the publishing step. Add frontmatter, organize your files per the SSG's conventions, and you have a content pipeline that scales.