#ghost #blog #tar #migrate #content #zola #directory

bin+lib ghost2zola

将自托管的 Ghost 博客内容迁移到 Zola

1 个不稳定版本

0.1.0 2020 年 10 月 24 日

#12#ghost

MIT 许可证

37KB
802

ghost2zola:将 ghost 博客迁移到 zola

准备

  • 将整个 ghost 目录导出为 tar 文件
    • 支持以下数据格式
      • ghost.tar
      • ghost.tar.gz
      • ghost.tar.bz2
    • 此程序分析输入文件类型,因此不需要魔法文件名。
  • 注意:与 ghost 内置的数据导出不同,此操作保留媒体文件,如图像。

用法

USAGE:
    ghost2zola [OPTIONS] <archive-path> <extract-path>

FLAGS:
    -h, --help
            Prints help information

    -V, --version
            Prints version information


OPTIONS:
        --prefix <prefix>
            Relative prefix within the archive

            In cases where the archive contains only a single blog, this is not necessary. When the archive contains
            several blogs, this can be set to any distinct prefix winnowing the selection to a single selection.

            If you're not sure what prefixes might be available, consider using the `find_ghost_db` tool.

ARGS:
    <archive-path>
            Path to a possibly-compressed tar archiving a ghost blog

    <extract-path>
            Path to the base directory into which the ghost blog should be expanded.

            Normally, this is the `content/blog` directory of your zola installation.

依赖项

~34–46MB
~782K SLoC