mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-18 06:03:45 +09:00
feat: add custom taxonomy support to frontmatter and export taxonomy metadata
- Extract custom taxonomy terms per-post and inject into frontmatter automatically - Export taxonomy metadata (categories, tags, custom taxonomies) to JSON files - Provides display names and metadata for use in Astro or other static site generators
This commit is contained in:
@@ -23,10 +23,10 @@ import * as writer from './src/writer.js';
|
||||
await intake.getConfig();
|
||||
|
||||
// parse data from XML and do Markdown translations
|
||||
const posts = await parser.parseFilePromise()
|
||||
const { posts, taxonomies } = await parser.parseFilePromise()
|
||||
|
||||
// write files and download images
|
||||
await writer.writeFilesPromise(posts);
|
||||
await writer.writeFilesPromise(posts, taxonomies);
|
||||
|
||||
// happy goodbye
|
||||
console.log('\nAll done!');
|
||||
|
||||
Reference in New Issue
Block a user