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

Draft content with future date not shown when listing drafts or future #10972

Closed
jmooring opened this issue May 20, 2023 · 2 comments
Closed
Assignees
Milestone

Comments

@jmooring
Copy link
Member

Found in v0.111.3, but this isn't new (reproducible in v0.54.0).

With this front matter...

+++
title = 'Post 1'
date = 2050-05-20T06:03:50-07:00 # A future date
draft = true
+++

...fhe file is not listed when running hugo list drafts or hugo list future.

@bep bep removed the NeedsTriage label May 20, 2023
@bep bep added this to the v0.113.0 milestone May 20, 2023
@bep bep self-assigned this May 21, 2023
@bep bep closed this as completed in e6dc805 May 21, 2023
@divinerites
Copy link

divinerites commented May 21, 2023

Something changed in the way the posts are listed & reported.
We lost the language folders.
$ hugo --verbose list all | grep news/

v0.112.0DEV

news/premiere-edition-aroll_live-music/index.md,2023-04-01T10:07:21+06:00
news/premiere-edition-aroll_live-music/index.md,2023-04-01T10:07:21+06:00
news/trail-kurhaus-2023-2eme-edition/index.md,2023-01-26T10:07:21+06:00
news/trail-kurhaus-2023-2eme-edition/index.md,2023-01-26T10:07:21+06:00
news/soiree-magique-a-la-chotte/index.md,2023-01-16T10:07:21+06:00
news/soiree-magique-a-la-chotte/index.md,2023-01-16T10:07:21+06:00
news/tir-a-larc-et-atelier-arts-appliques/index.md,2023-01-16T10:07:21+06:00
news/tir-a-larc-et-atelier-arts-appliques/index.md,2023-01-16T10:07:21+06:00
news/sylvain-tesson-week-end-blanc-a-arolla/index.md,2022-11-26T10:07:21+06:00
news/sylvain-tesson-week-end-blanc-a-arolla/index.md,2022-11-26T10:07:21+06:00
news/marche-de-noel-2022/index.md,2022-11-25T10:07:21+06:00
news/marche-de-noel-2022/index.md,2022-11-25T10:07:21+06:00
news/top-5-automne-a-arolla/index.md,2022-09-13T10:07:21+06:00
news/top-5-automne-a-arolla/index.md,2022-09-13T10:07:21+06:00

v.0.111.3

content/french/news/premiere-edition-aroll_live-music/index.md,,première édition de l'AROLL'LIVE Music,2023-04-01T10:07:21+06:00,0001-01-01T00:00:00Z,2023-04-01T10:07:21+06:00,false,https://www.grandhotelkurhaus.com/news/premiere-edition-aroll_live-music/
content/french/news/premiere-edition-aroll_live-music/index.md,,première édition de l'AROLL'LIVE Music,2023-04-01T10:07:21+06:00,0001-01-01T00:00:00Z,2023-04-01T10:07:21+06:00,false,https://www.grandhotelkurhaus.com/en/news/premiere-edition-aroll_live-music/
content/french/news/trail-kurhaus-2023-2eme-edition/index.md,,Trail du Kurhaus 2023 - 2ème édition,2023-01-26T10:07:21+06:00,0001-01-01T00:00:00Z,2023-01-26T10:07:21+06:00,false,https://www.grandhotelkurhaus.com/news/trail-kurhaus-2023-2eme-edition/
content/french/news/trail-kurhaus-2023-2eme-edition/index.md,,Trail du Kurhaus 2023 - 2ème édition,2023-01-26T10:07:21+06:00,0001-01-01T00:00:00Z,2023-01-26T10:07:21+06:00,false,https://www.grandhotelkurhaus.com/en/news/trail-kurhaus-2023-2eme-edition/
content/french/news/soiree-magique-a-la-chotte/index.md,,Soirées magiques à la Chotte,2023-01-16T10:07:21+06:00,0001-01-01T00:00:00Z,2023-01-16T10:07:21+06:00,false,https://www.grandhotelkurhaus.com/news/soiree-magique-a-la-chotte/
content/french/news/soiree-magique-a-la-chotte/index.md,,Soirées magiques à la Chotte,2023-01-16T10:07:21+06:00,0001-01-01T00:00:00Z,2023-01-16T10:07:21+06:00,false,https://www.grandhotelkurhaus.com/en/news/soiree-magique-a-la-chotte/
content/french/news/tir-a-larc-et-atelier-arts-appliques/index.md,,Tir à l'arc et arts appliqués,2023-01-16T10:07:21+06:00,0001-01-01T00:00:00Z,2023-01-16T10:07:21+06:00,false,https://www.grandhotelkurhaus.com/news/tir-a-larc-et-atelier-arts-appliques/
content/french/news/tir-a-larc-et-atelier-arts-appliques/index.md,,Tir à l'arc et arts appliqués,2023-01-16T10:07:21+06:00,0001-01-01T00:00:00Z,2023-01-16T10:07:21+06:00,false,https://www.grandhotelkurhaus.com/en/news/tir-a-larc-et-atelier-arts-appliques/
content/french/news/sylvain-tesson-week-end-blanc-a-arolla/index.md,,"`Blanc`, Sylvain Tesson : une traversée des Alpes à ski",2022-11-26T10:07:21+06:00,0001-01-01T00:00:00Z,2022-11-26T10:07:21+06:00,false,https://www.grandhotelkurhaus.com/news/sylvain-tesson-week-end-blanc-a-arolla/
content/french/news/sylvain-tesson-week-end-blanc-a-arolla/index.md,,"`Blanc`, Sylvain Tesson : une traversée des Alpes à ski",2022-11-26T10:07:21+06:00,0001-01-01T00:00:00Z,2022-11-26T10:07:21+06:00,false,https://www.grandhotelkurhaus.com/en/news/sylvain-tesson-week-end-blanc-a-arolla/

FYI I have this mount setup (related ?)

#------------------------------------------------------------------------------
# BLOG Content mounts (Missing EN filled with FR)
#------------------------------------------------------------------------------
[module]
  [module.hugoVersion]
   min = '0.96.0'

# EN content
[[module.mounts]]
source = 'content/english'
target = 'content'
lang = 'en'
# FR content
[[module.mounts]]
source = 'content/french'
target = 'content'
lang = 'fr'


# FR BLOG content
[[module.mounts]]
source = 'content/french/news'
target = 'content/news'
lang = 'fr'

# EN BLOG content
[[module.mounts]]
source = 'content/english/news'
target = 'content/news'
lang = 'en'

#------------------------------------------------------------------------------
# Fill in the missing translations
#------------------------------------------------------------------------------
# This fills in the gaps in FR content with EN content
[[module.mounts]]
source = 'content/french/news'
target = 'content/news'
lang = 'en'

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants