Skip to content

Commit

Permalink
created course projects partial / portion to page
Browse files Browse the repository at this point in the history
  • Loading branch information
szack25 committed Jan 18, 2024
1 parent 70d6524 commit 0df1b94
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions partials/course-post.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{!< default}}
<main class="site-main">
<div>

<article class="gh-article {{post_class}}">
<article class="gh-article course-article {{post_class}}">

<header class="gh-article-header gh-canvas">
<h1 class="gh-article-title">{{title}}</h1>
Expand All @@ -20,4 +20,4 @@

{{> "course-projects"}}

</main>
</div>
11 changes: 11 additions & 0 deletions partials/course-projects.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{!< default}}
<div class="course-projects">
<h2 class="page-title">{{title}} Projects</h2>
<div class="courses">
{{#get "posts" limit="all" filter="tags:[{{slug}}]" include="tags" order="title asc"}}
{{#foreach posts}}
{{> "loop"}}
{{/foreach}}
{{/get}}
</div>
</div>

0 comments on commit 0df1b94

Please sign in to comment.