Subject: website: Tell search engines not to index numbered pages
From: Luis Felipe <[email-masked]>
To: Luis Felipe via Guix-patches <[email-masked]>
Date: Tue, 24 Nov 2020 15:23:51 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi.

---
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/

From 96be01487336f204106849e5e30f3235fb4d450e Mon Sep 17 00:00:00 2001
From: Luis Felipe <[email-masked]>
Date: Tue, 24 Nov 2020 09:46:41 -0500
Subject: [PATCH] website: Tell search engines not to index numbered pages.

This change avoids polluting search results with pages that list
items, such as posts and packages, and gives more visibility to detail
pages instead (post and package detail pages).

* website/apps/blog/templates/post-list.scm (post-list-t): Don't
  index.

* website/apps/blog/templates/tag.scm (tag-t): Likewise.

* website/apps/packages/templates/package-list.scm (package-list-t):
  Likewise.
---
 website/apps/blog/templates/post-list.scm        | 1 +
 website/apps/blog/templates/tag.scm              | 1 +
 website/apps/packages/templates/package-list.scm | 1 +
 3 files changed, 3 insertions(+)

diff --git a/website/apps/blog/templates/post-list.scm b/website/apps/blog/templates/post-list.scm
index c91f24b..acffce1 100644
--- a/website/apps/blog/templates/post-list.scm
+++ b/website/apps/blog/templates/post-list.scm
@@ -30,6 +30,7 @@
 system|GNU Hurd|GNU Guix package manager|GNU Guile|Guile \
 Scheme|Transactional upgrades|Functional package \
 management|Reproducibility") #\|)
+     #:index? #false
      #:active-menu-item (C_ "website menu" "Blog")
      #:css
      (list (guix-url "static/base/css/page.css")
diff --git a/website/apps/blog/templates/tag.scm b/website/apps/blog/templates/tag.scm
index 9537022..0145e63 100644
--- a/website/apps/blog/templates/tag.scm
+++ b/website/apps/blog/templates/tag.scm
@@ -34,6 +34,7 @@
 system|GNU Hurd|GNU Guix package manager|GNU Guile|Guile \
 Scheme|Transactional upgrades|Functional package \
 management|Reproducibility") #\|)
+     #:index? #false
      #:active-menu-item (C_ "website menu" "Blog")
      #:css
      (list (guix-url "static/base/css/page.css")
diff --git a/website/apps/packages/templates/package-list.scm b/website/apps/packages/templates/package-list.scm
index b5873cc..eca8a5e 100644
--- a/website/apps/packages/templates/package-list.scm
+++ b/website/apps/packages/templates/package-list.scm
@@ -31,6 +31,7 @@
 system|GNU Hurd|GNU Guix package manager|GNU Guile|Guile \
 Scheme|Transactional upgrades|Functional package \
 management|Reproducibility") #\|)
+     #:index? #false
      #:active-menu-item (C_ "website menu" "Packages")
      #:css
      (list (guix-url "static/base/css/page.css")

base-commit: 34eea1c726ddf879223925d2d135e79025863840
-- 
2.29.2