Skip to content

Commit

Permalink
Use pages for partial content to avoid inclusion in lists of posts
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtiger committed Nov 7, 2024
1 parent b3d2be1 commit 00591f6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions custom-oss.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
{{/post}}

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

<div class="{{post_class}} mission-and-vision">
{{#get "posts" filter="slug:[hash-oss-our-vision, hash-oss-our-mission]"}}
{{#foreach posts}}
{{#get "pages" filter="slug:[hash-oss-our-vision, hash-oss-our-mission]"}}
{{#foreach pages}}
<div class="column">
<h1>{{title}}</h1>
{{{html}}}
Expand All @@ -37,8 +37,8 @@
<h1 class="title">Projects</h1>
<h2>Learn more about our current and past efforts</h2>
<div class="projects-list">
{{#get "posts" order="featured desc, title asc" filter="tag:[hash-oss-project]"}}
{{#foreach posts}}
{{#get "pages" order="featured desc, title asc" filter="tag:[hash-oss-project]"}}
{{#foreach pages}}
<div class="{{post_class}} project">
<h1>{{title}}</h1>
{{{html}}}
Expand All @@ -47,8 +47,8 @@
{{/get}}
</div>
<div class="contribute">
{{#get "posts" filter="tag:[hash-oss-contribute]"}}
{{#foreach posts}}
{{#get "pages" filter="tag:[hash-oss-contribute]"}}
{{#foreach pages}}
{{#if feature_image}}
<img src="{{feature_image}}" alt="{{title}}" class="feature-image">
{{/if}}
Expand Down

0 comments on commit 00591f6

Please sign in to comment.