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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion site/layouts/blog/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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).

<article class="blog-post-preview flex pt-40 pb-40">
<div class="col-1-4">
{{ range first 1 (where (.Resources.ByType "image") ".Height" ">=" 240) }}
Expand All @@ -28,10 +29,11 @@ <h3 class="mb-10">
</div>
</article>
{{ end }}
{{ end }}
</div>
<div class="col-1-3 ml-20">
{{ block "sidebar" . }}{{ partial "blog/sidebar" . }}{{end}}
</div>
</div>
</div>
{{ end }}
{{ end }}