Skip to content

feat: add hugo provider #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 15, 2024
Merged

feat: add hugo provider #41

merged 4 commits into from
May 15, 2024

Conversation

ichenhe
Copy link
Contributor

@ichenhe ichenhe commented May 12, 2024

HUGO 是一个著名的静态网站生成器。此 PR 实现了从 HUGO 导入 Halo。

HUGO is a famous static website generator. This PR adds the feature that import the HUGO contents to Halo.

Limitation | 局限性

HUGO 是一个十分强大与灵活的静态站点生成器,但没有提供统一的导出格式。这里无意实现一个完整的 HUGO 解析器,仅支持其基础功能。

  • 暂不支持本地附件文件(包括图片)迁移,引用的在线资源(例如外部图床)不受影响。
  • 不支持 HUGO 的模板属性文件 _index.md
  • 仅支持下列 matter: title, slug, draft, categories, tags, date
  • 仅处理文档内容,不解析 HUGO 配置文件。

Example Data | 测试数据

Feel free to submit the following file to the plugin for quick demo.

content.zip

Added dependencies | 依赖

Preview | 预览

configuration-preview parsing-result-preview
None

@f2c-ci-robot f2c-ci-robot bot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label May 12, 2024
@f2c-ci-robot f2c-ci-robot bot requested review from guqing and JohnNiang May 12, 2024 22:39
@ichenhe ichenhe marked this pull request as draft May 12, 2024 22:51
@f2c-ci-robot f2c-ci-robot bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 12, 2024
@ichenhe ichenhe marked this pull request as ready for review May 12, 2024 22:59
@f2c-ci-robot f2c-ci-robot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 12, 2024
@f2c-ci-robot f2c-ci-robot bot requested a review from ruibaby May 12, 2024 22:59
@ichenhe ichenhe force-pushed the feat/hugo branch 2 times, most recently from 4486b5b to 764b6fc Compare May 13, 2024 09:55
@ichenhe
Copy link
Contributor Author

ichenhe commented May 13, 2024

上一个提交的 CI 失败了,看起来是 pnpm lockfile 的问题。这次更新了它,但是自动生成的 lockfile 版本是 9,引入了许多改动。我不太熟悉前端,这种情况应该咋办?

@ruibaby
Copy link
Member

ruibaby commented May 13, 2024

上一个提交的 CI 失败了,看起来是 pnpm lockfile 的问题。这次更新了它,但是自动生成的 lockfile 版本是 9,引入了许多改动。我不太熟悉前端,这种情况应该咋办?

是的,pnpm 9 又更新了 lockfile 的结构。当前你可以在本地执行 npx pnpm@8 install 重新生成 pnpm-lock.yaml。

@ichenhe
Copy link
Contributor Author

ichenhe commented May 13, 2024

是的,pnpm 9 又更新了 lockfile 的结构。当前你可以在本地执行 npx pnpm@8 install 重新生成 pnpm-lock.yaml。

谢谢,又强推了一遍,lockfile 应该没问题了。

@ruibaby ruibaby requested a review from LIlGG May 14, 2024 15:01
Copy link
Member

@LIlGG LIlGG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice,非常感谢提供的 HUGO 迁移方案及 PR.

/lgtm

@f2c-ci-robot f2c-ci-robot bot added lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels May 15, 2024
Copy link
Member

@ruibaby ruibaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link

f2c-ci-robot bot commented May 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: LIlGG, ruibaby

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 15, 2024
@f2c-ci-robot f2c-ci-robot bot merged commit 688f6e2 into halo-sigs:main May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants