blob 9cdda4ecf46c2333610e3860ee977c6acddd8f4b 945 bytes (raw)
name: website/www/utils.scm # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| | (define-module (www utils)
#:export (current-url-root
resources-url-root
url-base
static-url-base
img-url
thumb-url
css-url
screenshot-url
slides-url))
(define current-url-root
(make-parameter "/home/mthl/src/gnu/guix-artwork/website/build"))
(define resources-url-root
(make-parameter "https://www.gnu.org/s/guix"))
(define (url-base location)
(string-append (current-url-root) location))
(define (static-url-base)
(string-append (current-url-root) "/static/base"))
(define (img-url file)
(string-append (static-url-base) "/img/" file))
(define (thumb-url file)
(string-append (static-url-base) "/img/screenshots/" file))
(define (css-url file)
(string-append (static-url-base) "/css/" file))
(define (screenshot-url version file)
(string-append (resources-url-root) "/screenshots/" version "/" file))
(define (slides-url file)
(string-append (resources-url-root) "/" file))
|
debug log:
solving 9cdda4e ...
found 9cdda4e in https://yhetil.org/guix-devel/87egmr7lro.fsf@openmailbox.org/
applying [1/1] https://yhetil.org/guix-devel/87egmr7lro.fsf@openmailbox.org/
diff --git a/website/www/utils.scm b/website/www/utils.scm
new file mode 100644
index 0000000..9cdda4e
Checking patch website/www/utils.scm...
Applied patch website/www/utils.scm cleanly.
index at:
100644 9cdda4ecf46c2333610e3860ee977c6acddd8f4b website/www/utils.scm
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
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).