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

Add unlisted flag #2113

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

Conversation

aryangupta701
Copy link
Contributor

  • use unlisted: true to not display a blog in the blog list

aryangupta701 and others added 7 commits September 11, 2023 13:06
Signed-off-by: aryangupta701 <[email protected]>
Signed-off-by: Aryan Gupta <[email protected]>
Signed-off-by: Aryan Gupta <[email protected]>
Signed-off-by: Aryan Gupta <[email protected]>
Signed-off-by: Aryan Gupta <[email protected]>
@kingthorin
Copy link
Member

7 commits?

@kingthorin
Copy link
Member

Also shouldn't it also check the date in order to appear when appropriate?

@aryangupta701
Copy link
Contributor Author

Can be squashed? or should I squash?

@thc202
Copy link
Member

thc202 commented Sep 12, 2023

Do we really need this?

@aryangupta701
Copy link
Contributor Author

I think I should add that date check?

@@ -9,6 +9,7 @@ <h1 class="text--white">{{ .Title }}</h1>
<div class="flex on-sm-stack">
<div class="col-2-3 pr-30">
{{ range .Pages }}
{{ if not .Params.unlisted }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to be more specific that only applies to the blog index (e.g. it will still be listed in tags).

@psiinon
Copy link
Member

psiinon commented Sep 12, 2023

Do we really need this?

My question too 😉
We did have this one case where it looked like it could be useful, so I'm fine either way tbh

@aryangupta701
Copy link
Contributor Author

Its up to you if you want to keep this or not. Maybe if you have any use case in future then you can merge

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

Successfully merging this pull request may close these issues.

4 participants