- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2021-10-09T11:35:44+00:00","default:src128","src128")
#author("2021-10-25T07:01:28+00:00","default:src128","src128")
&tag(Hugo/WordPressからの移行);
*目次 [#ff3bd9ac]
#contents
*関連ページ [#pd1190c4]
*参考情報 [#heb8e707]
-[[SchumacherFM/wordpress-to-hugo-exporter: Hugo is static site generator written in golang. Wordpress is a tool for remote access to your server ;-) ❗️Contributions welcome!:https://github.com/SchumacherFM/wordpress-to-hugo-exporter]]
*概要 [#sbfe6dd0]
-WordPress to Hugo Exporterを使う。
-画像と記事をまとめたzipファイルがダウンロードできるので、それを自分のHugoサイトに取り込む。
*手順 [#w8a85788]
**データのエクスポート [#rdb7551b]
-[[SchumacherFM/wordpress-to-hugo-exporter: Hugo is static site generator written in golang. Wordpress is a tool for remote access to your server ;-) ❗️Contributions welcome!:https://github.com/SchumacherFM/wordpress-to-hugo-exporter]]のReleasesから最新のzipファイルをダウンロード。
-移行元WordPressの管理画面からzipファイルをアップロードしてインストールする。
-「ツール > Export to Hugo」を実行する。
-成功するとzipファイルがダウンロードできるはず。
*以下注意点 [#i07c6dbd]
以下注意点
-ZipArchiveがphpで使えないとエラーになる。
PHP Fatal error: Uncaught Error: Class 'ZipArchive' not found
-メモリを大量に使用するのでphp.iniで制限を緩めておく。ホストに余裕があれば思い切ってふやしておく。
memory_limit = 1024MB
**データの取り込み [#y382540d]
-記事はzipファイルの中のpostsフォルダをHugoのcontentフォルダの中に移動する。
-画像はzipファイルの中のwp-contentをHugoのcontentフォルダの中に移動する。
-config.yamlの内容をconfig.tomlに適宜移植する。