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

Artigos não publicados aparecem no portal #105

Closed
PedroAntunesCosta opened this issue Sep 16, 2024 · 2 comments · Fixed by #137
Closed

Artigos não publicados aparecem no portal #105

PedroAntunesCosta opened this issue Sep 16, 2024 · 2 comments · Fixed by #137
Assignees

Comments

@PedroAntunesCosta
Copy link
Contributor

Apenas arquivos md com status PUBLISHED no frontmatter devem ser públicos. Atualmente todos estão públicos.

Exêmplo

---
title: 'Entenda como os clientes chegam até o seu WhatsApp'
id: 5eLRT51rPMy0zwDVAAJLWH
status: DRAFT
createdAt: 2022-08-25T18:13:42.342Z
updatedAt: 2022-10-07T17:07:57.881Z
publishedAt: 
firstPublishedAt: 2022-08-26T14:41:53.608Z
contentType: trackArticle
productTeam: Shopping
slug: entenda-como-os-clientes-chegam-ate-o-seu-whatsapp
locale: pt
trackId: khP0p8mjIYRIpvM7Cb4Zr
trackSlugPT: suiteshare
---
@Icaro-Nunes
Copy link
Contributor

O comportamento esperado seria que os artigos com status diferente de PUBLISHED não aparecessem nem nas páginas de listagens de documentos (como na página /announcements/index) nem na sidebar, certo?

image

@PedroAntunesCosta
Copy link
Contributor Author

É isso! Eles não deveriam aparecer em nenhuma destas formas:

  • Página do artigo
  • Páginas de listagens (e.g., /announcements/index)
  • Sidebar
  • Resultados da busca

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

Successfully merging a pull request may close this issue.

3 participants