diff --git a/partials/searchLarge.hbs b/partials/searchLarge.hbs index ed00491..13b59a1 100644 --- a/partials/searchLarge.hbs +++ b/partials/searchLarge.hbs @@ -10,7 +10,7 @@
diff --git a/tag.hbs b/tag.hbs index af26054..891b949 100644 --- a/tag.hbs +++ b/tag.hbs @@ -67,7 +67,19 @@
- {{#get "posts" filter="tag:{{slug}}" include="authors,tags" order="featured desc"}} + {{!-- Featured posts first --}} + {{#get "posts" filter="tag:{{slug}}+featured:true" include="authors,tags" order="published_at desc"}} + + {{#foreach posts visibility="all"}} + + {{> cardTutorial }} + + {{/foreach}} + + {{/get}} + + {{!-- Then all the rest in desc order --}} + {{#get "posts" filter="tag:{{slug}}+featured:false" include="authors,tags" order="published_at desc" limit="50"}} {{#foreach posts visibility="all"}} diff --git a/tutorials.hbs b/tutorials.hbs index 961c369..8a2b9a1 100644 --- a/tutorials.hbs +++ b/tutorials.hbs @@ -48,15 +48,24 @@
- {{#foreach posts columns=3}} - - {{!-- {{#if featured}} -

HAI

- {{else}} --}} - {{> cardTutorialSm}} - {{!-- {{/if}} --}} + {{!-- {{#get "posts" filter="tag:tutorials+featured:true" include="authors,tags" order="published_at desc" as |featured_posts pages|}} + + {{#foreach featured_posts visibility="all"}} + + {{> cardTutorialSm }} + {{/foreach}} + {{pages.total}} + + {{/get}} --}} + + + + + {{#foreach posts }} + {{> cardTutorialSm}} + {{/foreach}}