From 83fefe3838e0c27ab63ed3e50364433b42af538f Mon Sep 17 00:00:00 2001 From: majakomel Date: Fri, 13 Dec 2024 12:29:16 +0100 Subject: [PATCH] Add list pages for report themes --- content/reports/circumvention/_index.md | 5 +++++ content/reports/human-rights/_index.md | 5 +++++ content/reports/news-media/_index.md | 5 +++++ content/reports/social-media-im/_index.md | 5 +++++ layouts/section/reports.html | 12 ++++++++---- 5 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 content/reports/circumvention/_index.md create mode 100644 content/reports/human-rights/_index.md create mode 100644 content/reports/news-media/_index.md create mode 100644 content/reports/social-media-im/_index.md diff --git a/content/reports/circumvention/_index.md b/content/reports/circumvention/_index.md new file mode 100644 index 000000000..a8f9bda6b --- /dev/null +++ b/content/reports/circumvention/_index.md @@ -0,0 +1,5 @@ +--- +title: Research reports - Circumvention +description: Read our research reports investigating internet censorship worldwide +tags: ["theme-circumvention"] +--- \ No newline at end of file diff --git a/content/reports/human-rights/_index.md b/content/reports/human-rights/_index.md new file mode 100644 index 000000000..5c275961e --- /dev/null +++ b/content/reports/human-rights/_index.md @@ -0,0 +1,5 @@ +--- +title: Research reports - Human Rights +description: Read our research reports investigating internet censorship worldwide +tags: ["theme-human_rights"] +--- \ No newline at end of file diff --git a/content/reports/news-media/_index.md b/content/reports/news-media/_index.md new file mode 100644 index 000000000..e0cbd7868 --- /dev/null +++ b/content/reports/news-media/_index.md @@ -0,0 +1,5 @@ +--- +title: Research reports - News Media +description: Read our research reports investigating internet censorship worldwide +tags: ["theme-news_media"] +--- \ No newline at end of file diff --git a/content/reports/social-media-im/_index.md b/content/reports/social-media-im/_index.md new file mode 100644 index 000000000..427604c46 --- /dev/null +++ b/content/reports/social-media-im/_index.md @@ -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"] +--- \ No newline at end of file diff --git a/layouts/section/reports.html b/layouts/section/reports.html index 96146dbb5..8ac180e4f 100644 --- a/layouts/section/reports.html +++ b/layouts/section/reports.html @@ -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 }}

{{ .Title }}

- {{ range .Site.Taxonomies.categories.report }} - + {{ range $pages }} - {{ end }}
-
{{ end }}