Make it possible to set descriptions for pages
This commit is contained in:
parent
491cea9e6c
commit
d79e23fd35
1 changed files with 7 additions and 1 deletions
|
|
@ -64,7 +64,8 @@
|
||||||
(define* (layout #:key
|
(define* (layout #:key
|
||||||
(head '())
|
(head '())
|
||||||
(body '())
|
(body '())
|
||||||
(title "Guix Data Service"))
|
(title "Guix Data Service")
|
||||||
|
description)
|
||||||
`((doctype "html")
|
`((doctype "html")
|
||||||
(html
|
(html
|
||||||
(@ (lang "en"))
|
(@ (lang "en"))
|
||||||
|
|
@ -74,6 +75,11 @@
|
||||||
(content "text/html; charset=UTF-8")))
|
(content "text/html; charset=UTF-8")))
|
||||||
(meta (@ (name "viewport")
|
(meta (@ (name "viewport")
|
||||||
(content "width=device-width, initial-scale=1")))
|
(content "width=device-width, initial-scale=1")))
|
||||||
|
,@(if description
|
||||||
|
`((meta
|
||||||
|
(@ (name "description")
|
||||||
|
(content ,description))))
|
||||||
|
'())
|
||||||
(link
|
(link
|
||||||
(@ (rel "stylesheet")
|
(@ (rel "stylesheet")
|
||||||
(media "screen")
|
(media "screen")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue