Skip to content

Commit ac09319

Browse files
committed
do not show blogs/evebts with "published: false"
1 parent 1e8b6b6 commit ac09319

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

content/_publications/2024-08-23-Lumi_web_introduction.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ date: 2024-08-23
44
collection: publications
55
header:
66
teaser: /assets/images/helmi-lumi-web-interface/thumbnail.png
7-
published: true
8-
hidden: true
7+
published: false
98
author: Huyen Do
109
layout: post
1110
filters:

content/site.js.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ permalink: site.js
33
---
44
{%- capture publications -%}
55
[
6-
{%- for publication in site.publications %}
6+
{%- for publication in site.publications | where: "published", true %}
77
{
88
"key": "{{ forloop.index }}",
99
"type": "{{ publication.filters.Type | default: 'Post' }}",
@@ -24,7 +24,7 @@ permalink: site.js
2424

2525
{%- capture events -%}
2626
[
27-
{%- for event_post in site.events %}
27+
{%- for event_post in site.events | where: "published", true %}
2828
{
2929
"key": "{{ forloop.index }}",
3030
"type": "Event",

0 commit comments

Comments
 (0)