[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/09: website: Handle GUIX_WEB_SITE_ROOT_PATH not ending in a slash.
From: |
Ludovic Courtès |
Subject: |
02/09: website: Handle GUIX_WEB_SITE_ROOT_PATH not ending in a slash. |
Date: |
Sun, 26 Jul 2020 13:16:32 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix-artwork.
commit e612e9767916f22abea62eca9751d2c9344e6a14
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 master updated (b433d84 -> 640d635), Ludovic Courtès, 2020/07/26
- 01/09: website: Fix building with GUIX_WEB_SITE_ROOT_PATH., Ludovic Courtès, 2020/07/26
- 04/09: website: Add custom xgettext to extract from nested sexps for i18n., Ludovic Courtès, 2020/07/26
- 02/09: website: Handle GUIX_WEB_SITE_ROOT_PATH not ending in a slash.,
Ludovic Courtès <=
- 03/09: website: Refactor GUIX_WEB_SITE_ROOT_PATH handling., Ludovic Courtès, 2020/07/26
- 05/09: website: apps: Mark all files for translation., Ludovic Courtès, 2020/07/26
- 07/09: website: nls: Add German translation., Ludovic Courtès, 2020/07/26
- 08/09: website: navbar: Make dropdowns accessible to keyboard and touch input., Ludovic Courtès, 2020/07/26
- 09/09: website: Add language selection dropdown to navbar., Ludovic Courtès, 2020/07/26
- 06/09: website: media: Do not localize video page URLs., Ludovic Courtès, 2020/07/26