Skip to content

Commit

Permalink
change to category and group based sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaswagner2826 committed Jan 22, 2024
1 parent ffcc530 commit a9a047f
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 6 deletions.
6 changes: 3 additions & 3 deletions _includes/category_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
testing
</div>

{% assign posts = site.posts | where: "path", {{ page.title | prepend: page.path }} %}
<!-- issue with above line... -->
{% assign posts = site.posts | where_exp: "item", "item.group == {{page.title}}" %}


{% for post in posts %}
<div>
testing again
{{post.title}}
</div>
<div>
{{ post.content }}
Expand Down
1 change: 1 addition & 0 deletions _pages/research/networks.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: page
title: networks
category: research
description:
This is a description for this page

Expand Down
1 change: 1 addition & 0 deletions _pages/research/security.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: page
title: security
category: research
description:
This is a description for this page

Expand Down
14 changes: 14 additions & 0 deletions _pages/research/template.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
---
layout: page
title: template
category: research
description:
This is a description for this page

---



<div class="post">

<div style="overflow: hidden;">
<h1 class="post-title">{{ page.title }}</h1>
<h5 class="post-description">{{ page.description }}</h5>

{% include category_index.html %}



</div>
</div>
2 changes: 1 addition & 1 deletion _posts/2018-11-07-tobias-new-writer-prize.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Tobias Haeusermann wins 2018 Mildred Blaxter New Writer Prize
author: Winston Chiong
layout: post
group: news
group:
image:
caption:
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/research/networks/2018-11-07-random-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Tobias Haeusermann wins 2018 Mildred Blaxter New Writer Prize
author: Winston Chiong
layout: post
group: news
group: networks
image:
caption:
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/research/security/2024-01-18-example-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Example post
author: author
layout: post
group: news
group: security
image:
caption:
---
Expand Down

0 comments on commit a9a047f

Please sign in to comment.