Skip to content
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

Elog支持Astro框架吗? #97

Open
100759 opened this issue Oct 2, 2024 · 5 comments
Open

Elog支持Astro框架吗? #97

100759 opened this issue Oct 2, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@100759
Copy link

100759 commented Oct 2, 2024

你当前使用的Elog版本

V0.14.2

描述一下此特性

Astro框架的博客

附加信息

No response

@100759 100759 added the enhancement New feature or request label Oct 2, 2024
@LetTTGACO
Copy link
Owner

支持的 我的博客就是用它搭建的
可以看我的仓库
https://github.com/LetTTGACO/blog.1874.cool

@100759
Copy link
Author

100759 commented Oct 18, 2024

您好,请问部署Astro到,需要保留elog的哪些文件,怎样修改?

@LetTTGACO
Copy link
Owner

和正常 hexo 一样,配置elog 输出的文档目录,将 md文档放到 astro 渲染目录即可

Repository owner deleted a comment Oct 25, 2024
@LamiaLoveless
Copy link

同步下来的文档还需要自定义Front Matter,该怎么写

@LetTTGACO
Copy link
Owner

同步下来的文档还需要自定义Front Matter,该怎么写

可以看下我的仓库的 elog.config.js 的配置
https://github.com/LetTTGACO/blog.1874.cool

关键点:

// 在elog.config.js中配置开启Front Matter
frontMatter: {
	enable: true,
	},

如果写作平台使用的是语雀/飞书,需要手动在写作平台的页面添加 Front Matter,Notion 和 FlowUs 使用数据库的话,需要表格配置Astro 需要的字段。

具体说明请看 Elog 关于 Front Matter 的文档说明:https://elog.1874.cool/notion/raqyleng501h23p1

我部署到 Astro 上的用的 Notion,配置好需要的字段就行,具体根据你的 Astro 来定制

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants