Skip to content

Commit 00591f6

Browse files
committed
Use pages for partial content to avoid inclusion in lists of posts
1 parent b3d2be1 commit 00591f6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

custom-oss.hbs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
{{/post}}
99

1010
<div class="{{post_class}} program-news">
11-
{{#get "posts" filter="slug:program-news"}}
12-
{{#foreach posts}}
11+
{{#get "pages" filter="slug:program-news"}}
12+
{{#foreach pages}}
1313
<h1 class="call-to-action header">Program News</h1>
1414
<ul>
1515
{{#get "posts" order="desc, title asc" filter="tag:[news]"}}
@@ -23,8 +23,8 @@
2323
{{/get}}
2424

2525
<div class="{{post_class}} mission-and-vision">
26-
{{#get "posts" filter="slug:[hash-oss-our-vision, hash-oss-our-mission]"}}
27-
{{#foreach posts}}
26+
{{#get "pages" filter="slug:[hash-oss-our-vision, hash-oss-our-mission]"}}
27+
{{#foreach pages}}
2828
<div class="column">
2929
<h1>{{title}}</h1>
3030
{{{html}}}
@@ -37,8 +37,8 @@
3737
<h1 class="title">Projects</h1>
3838
<h2>Learn more about our current and past efforts</h2>
3939
<div class="projects-list">
40-
{{#get "posts" order="featured desc, title asc" filter="tag:[hash-oss-project]"}}
41-
{{#foreach posts}}
40+
{{#get "pages" order="featured desc, title asc" filter="tag:[hash-oss-project]"}}
41+
{{#foreach pages}}
4242
<div class="{{post_class}} project">
4343
<h1>{{title}}</h1>
4444
{{{html}}}
@@ -47,8 +47,8 @@
4747
{{/get}}
4848
</div>
4949
<div class="contribute">
50-
{{#get "posts" filter="tag:[hash-oss-contribute]"}}
51-
{{#foreach posts}}
50+
{{#get "pages" filter="tag:[hash-oss-contribute]"}}
51+
{{#foreach pages}}
5252
{{#if feature_image}}
5353
<img src="{{feature_image}}" alt="{{title}}" class="feature-image">
5454
{{/if}}

0 commit comments

Comments
 (0)