unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Luis Felipe via Guix-patches via <guix-patches@gnu.org>
To: 44843@debbugs.gnu.org
Subject: [bug#44843] website: Tell search engines not to index numbered pages
Date: Tue, 24 Nov 2020 15:23:51 +0000	[thread overview]
Message-ID: <5u60Wp-sc3CKX90DvStcwM9kUcyfM2BHQP_2kLMogMFONKwmkwO_QDnN0NYaGbrh9VDN5N0cEjsczTN0DvOOraf01C0_p8RrPPl3nF2D55U=@protonmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 66 bytes --]

Hi.

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

[-- Attachment #1.2: Type: text/html, Size: 249 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-website-Tell-search-engines-not-to-index-numbered-pa.patch --]
[-- Type: text/x-patch; name=0001-website-Tell-search-engines-not-to-index-numbered-pa.patch, Size: 2493 bytes --]

From 96be01487336f204106849e5e30f3235fb4d450e Mon Sep 17 00:00:00 2001
From: Luis Felipe <luis.felipe.la@protonmail.com>
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


             reply	other threads:[~2020-11-24 15:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-24 15:23 Luis Felipe via Guix-patches via [this message]
2020-11-25 10:37 ` bug#44843: website: Tell search engines not to index numbered pages Mathieu Othacehe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='5u60Wp-sc3CKX90DvStcwM9kUcyfM2BHQP_2kLMogMFONKwmkwO_QDnN0NYaGbrh9VDN5N0cEjsczTN0DvOOraf01C0_p8RrPPl3nF2D55U=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=44843@debbugs.gnu.org \
    --cc=luis.felipe.la@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).