* [bug#44843] website: Tell search engines not to index numbered pages
@ 2020-11-24 15:23 Luis Felipe via Guix-patches via
2020-11-25 10:37 ` bug#44843: " Mathieu Othacehe
0 siblings, 1 reply; 2+ messages in thread
From: Luis Felipe via Guix-patches via @ 2020-11-24 15:23 UTC (permalink / raw)
To: 44843
[-- 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#44843: website: Tell search engines not to index numbered pages
2020-11-24 15:23 [bug#44843] website: Tell search engines not to index numbered pages Luis Felipe via Guix-patches via
@ 2020-11-25 10:37 ` Mathieu Othacehe
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Othacehe @ 2020-11-25 10:37 UTC (permalink / raw)
To: Luis Felipe; +Cc: 44843-done
Hello Luis,
Pushed as 9245a84f096e458a97806218522090d63d679b09.
Thanks,
Mathieu
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-25 10:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-24 15:23 [bug#44843] website: Tell search engines not to index numbered pages Luis Felipe via Guix-patches via
2020-11-25 10:37 ` bug#44843: " Mathieu Othacehe
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).