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

Modified to be able to recursively parse Front Matter #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

waterbang
Copy link

@waterbang waterbang commented Jun 12, 2024

注意:我没有在此项目运行测试,但是我是基于自己的项目进行测试。

本次的修改是针对YAML的递归处理。

原文

---
layout: home

hero:
  name: "xxx"
  text: "在你的本地设备上部署自己的 .dweb 域名"
  tagline: 我们协助鼓励开发者打造开放 Web应用,通过开放标准,应用之间可以实现互操作,这将开启一种全新的互联网体验,并为世界带来无尽的可能性。
  image:
    src: /logo.svg
    alt: dweb
---

翻译

---
layout: home
hero:
  name: xxx
  text: Instale su propio nombre de dominio `.dweb` en su dispositivo local.
  tagline: Nosotros ayudamos a alentar a los desarrolladores a construir aplicaciones
    web abiertas, logrando la interoperabilidad entre ellas mediante estándares abiertos.
    Esto abrirá una experiencia de internet completamente nueva y traerá sin fin posibilidades
    para el mundo.
  image:
    src: /logo.svg
    alt: dweb
---

并且因为我没有openAI key 我使用的是ollama 运行llama3于本地翻译。

@waterbang
Copy link
Author

waterbang commented Jun 12, 2024

第二个提交新增了对解析YAML数组的处理
测试如下:

  actions:
    - theme: brand
      text: 介绍
      link: /intro
    - theme: alt
      text: GitHub上查看
      link: https://github.com/xxx/xxx

翻译

  actions:
  - theme: brand
    text: Introduction
    link: /intro
  - theme: alt
    text: View on GitHub
    link: https://github.com/xxx/xxx

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

Successfully merging this pull request may close these issues.

1 participant