Converter/Transformer of Xuite blog to hugo static site
Purpose
- Convert
.mtfile of xuite blog to be compatible with HUGO static site generator format.md(markdown) through command line
Install
gem install xuite_blog_to_hugo_gemUsage
xuite_blog_to_hugo YOUR_XUITE_MT_FILENAME_WITH_FILEPATHNotice
- ONLY EXECUTE CONVERTION THROUGH COMMAND LINE
- Cannot convert tag of xuite blog
- Cannot 100% convert
htmltomarkdown-compatibleformat - Generate
.mdfile name(s) starting from0 - Automatically create folder
outputin current execution directory ifoutputfolder doesn't exist
Convertion
From left to right
| xuite meta | hugo markdown meta |
|---|---|
| TITLE: | title: |
| AUTHOR: | |
| DATE: | date: |
| CATEGORY: | categories: |
| image: | |
| description: | |
| STATUS: | draft: |
| tags: | |
| type: | |
| highlight: |
| xuite body | hugo markdown body |
|---|---|
| BODY: | --- and two newlines |