Post Blog from Django dashboard
Context
Section titled “Context”Currently, the team portfolio is a static website, with a blog section.
The portfolio its created with Nextjs, and the blog are markdown files in the src/content/docs/blog directory.
We have a Django Dashboard wehere SEO experts can create and manage the blog posts, but the updates are not reflected in the portfolio website, then, we need to manually update the blog posts in the portfolio website.
1. Get posts data
Section titled “1. Get posts data”- Login in service dashboard: https://services.darideveloper.com
- Open /admin/blog/post/?status__exact=done&q=&o=4 (this link already has the filters applied to get the post ready to bu published)
- Open the first post in the list
2. Create a new post in the portfolio website
Section titled “2. Create a new post in the portfolio website”- Create a new file at src/app/[locale]/blog/posts/es (the file name should be the slug of the dashboard post)
- Update the metadata using the data from the dashboard post
- paste the post content from the dashboard post
3. Translate to EN
Section titled “3. Translate to EN”- Copy the file to src/app/[locale]/blog/posts/en (keep the same file name)
- Update metadata to Eng using gemini. Ask like:
Translate this markdown metadata to English. Keep the same format and structure.---title: "Desarrollo Web para Restaurantes en Aguascalientes: ¡Vende Más Online!"publishedAt: "2025-10-02"image: "https://daridev-services.s3.amazonaws.com/media/blog/images/Desarrollador_Web_Restaurantes_Aguascalientes_Digitaliza_tu_%C3%89xito.488Z.png"summary: "¡Impulsa tu restaurante en Aguascalientes! Desarrollador web experto crea sitios con pedidos, reservas y SEO local. Atrae más clientes y ventas. ¡Haz crecer tu negocio hoy!"tag: ["desarrollador web restaurantes", "Aguascalientes", "pedidos online", "reservas online", diseño web restaurantero"]author: "daridev"---- Update the post content to Eng using gemini. Ask like:
Translate this markdown content to English. Keep the same format and structure....markdown content...