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

cmd: Improve hugo list command #12520

Closed
jmooring opened this issue May 19, 2024 · 3 comments · Fixed by #12528
Closed

cmd: Improve hugo list command #12520

jmooring opened this issue May 19, 2024 · 3 comments · Fixed by #12528

Comments

@jmooring
Copy link
Member

jmooring commented May 19, 2024

1) Add a "published" subcommand to list content that is not draft, expired, or future.

2) Add "kind" and "section" to CSV output (two more columns at the end).

@cmahnke
Copy link

cmahnke commented May 19, 2024

  1. add order by date

@jmooring
Copy link
Member Author

@cmahnke As written, this proposal has zero complexity, no additional overhead, will be easy to review, and has a decent chance of being accepted by bep. So I prefer to keep the proposal as-is, and defer sorting for another proposal.

@cmahnke
Copy link

cmahnke commented May 19, 2024

Ok, understood.

I had an proposal in mind, maybe you can get warm with the idea for that other proposal:
Given the fact that list fails for example with malformed language files (those in i18n) I had the impression that list builds a (almost) full in-memory build (at least it's parsing more then the front matter).
If thats's the case, why not implement list as internal templates? Maybe like the markup handlers? I.e. having it overwriteable by templates in ./layouts/_default/_hugo/list?

But that's just a (maybe stupid) idea for the another proposal...

jmooring added a commit to jmooring/hugo that referenced this issue May 22, 2024
- Improve help text
- Add "kind" and "section" to CSV output
- Add a "published" subcommand to list content that is not draft,
  expired, or future.

Closes gohugoio#12520
bep pushed a commit that referenced this issue May 22, 2024
- Improve help text
- Add "kind" and "section" to CSV output
- Add a "published" subcommand to list content that is not draft,
  expired, or future.

Closes #12520
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.

2 participants