Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add list pages for report themes #1651

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions content/reports/circumvention/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Research reports - Circumvention
description: Read our research reports investigating internet censorship worldwide
tags: ["theme-circumvention"]
---
5 changes: 5 additions & 0 deletions content/reports/human-rights/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Research reports - Human Rights
description: Read our research reports investigating internet censorship worldwide
tags: ["theme-human_rights"]
---
5 changes: 5 additions & 0 deletions content/reports/news-media/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Research reports - News Media
description: Read our research reports investigating internet censorship worldwide
tags: ["theme-news_media"]
---
5 changes: 5 additions & 0 deletions content/reports/social-media-im/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Research reports - Social Media & IM
description: Read our research reports investigating internet censorship worldwide
tags: ["theme-social_media", "theme-im"]
---
12 changes: 8 additions & 4 deletions layouts/section/reports.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{{ define "main" }}
{{ $tags := .Params.tags }}

{{ $reports := .Site.Taxonomies.categories.report }}
{{ $pages := $reports }}
{{ with $tags }}
{{ $pages = where $reports ".Params.tags" "intersect" $tags }}
{{ end }}

<div class="container">
<h1>{{ .Title }}</h1>
<main class="col">
{{ range .Site.Taxonomies.categories.report }}

{{ range $pages }}
<div class="row blog-summary">
<div>
<a href="{{ .RelPermalink }}" style="margin-bottom: 0">
Expand All @@ -18,10 +24,8 @@ <h1>{{ .Title }}</h1>
<p class="byline" style="margin-bottom: 0">{{ .Date.Format "2 Jan 2006" }}</p>
</div>
</div>

{{ end }}
</main>

</div>

{{ end }}