-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
4486b5b
to
764b6fc
Compare
上一个提交的 CI 失败了,看起来是 pnpm lockfile 的问题。这次更新了它,但是自动生成的 lockfile 版本是 9,引入了许多改动。我不太熟悉前端,这种情况应该咋办? |
是的,pnpm 9 又更新了 lockfile 的结构。当前你可以在本地执行 npx pnpm@8 install 重新生成 pnpm-lock.yaml。 |
谢谢,又强推了一遍,lockfile 应该没问题了。 |
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[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 |
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 解析器,仅支持其基础功能。
_index.md
。title
,slug
,draft
,categories
,tags
,date
。Example Data | 测试数据
Feel free to submit the following file to the plugin for quick demo.
content.zip
Added dependencies | 依赖
zip.js/zip.js
: deal with zip file contains hugo content.markdown-it
: parse the markdown content into html, which is required by Halo.yaml
: parse hugo yaml front matter.toml
: parse hugo toml front matter.Preview | 预览