[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: website: Handle GUIX_WEB_SITE_ROOT_PATH not ending in a slash.
From: |
Florian Pelz |
Subject: |
02/08: website: Handle GUIX_WEB_SITE_ROOT_PATH not ending in a slash. |
Date: |
Wed, 15 Jul 2020 01:47:16 -0400 (EDT) |
pelzflorian pushed a commit to branch wip-i18n
in repository guix-artwork.
commit e5f3d27f18dc6eefae0f440cb41d4332ba619e7f
Author: Florian Pelz <pelzflorian@pelzflorian.de>
AuthorDate: Wed Oct 30 20:43:16 2019 +0100
website: Handle GUIX_WEB_SITE_ROOT_PATH not ending in a slash.
* website/apps/base/utils.scm (guix-root-url-path): Add slash if missing.
---
website/apps/base/utils.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/website/apps/base/utils.scm b/website/apps/base/utils.scm
index effa9ca..281286e 100644
--- a/website/apps/base/utils.scm
+++ b/website/apps/base/utils.scm
@@ -47,7 +47,11 @@
(define guix-root-url-path
;; Path to GNU Guix site at guix.gnu.org.
- (make-parameter (or (getenv "GUIX_WEB_SITE_ROOT_PATH") "/")))
+ (make-parameter (or (getenv "GUIX_WEB_SITE_ROOT_PATH") "/")
+ (lambda (path)
+ (if (string-suffix? "/" path)
+ path
+ (string-append path "/")))))
(define latest-guix-version
(make-parameter "1.1.0"))
- branch wip-i18n created (now 7859dce), Florian Pelz, 2020/07/15
- 01/08: website: Fix building with GUIX_WEB_SITE_ROOT_PATH., Florian Pelz, 2020/07/15
- 02/08: website: Handle GUIX_WEB_SITE_ROOT_PATH not ending in a slash.,
Florian Pelz <=
- 03/08: website: Refactor GUIX_WEB_SITE_ROOT_PATH handling., Florian Pelz, 2020/07/15
- 04/08: website: Add custom xgettext to extract from nested sexps for i18n., Florian Pelz, 2020/07/15
- 06/08: website: nls: Add German translation., Florian Pelz, 2020/07/15
- 07/08: website: navbar: Make dropdowns accessible to keyboard and touch input., Florian Pelz, 2020/07/15
- 05/08: website: media: Do not localize video page URLs., Florian Pelz, 2020/07/15
- 08/08: website: Add language selection dropdown to navbar., Florian Pelz, 2020/07/15