diff options
author | Frederick Muriuki Muriithi | 2025-02-11 14:36:21 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-02-11 14:36:46 -0600 |
commit | 5f334d9502186871f526ec41a7b86c97066f38fc (patch) | |
tree | f2fc46316a0ed63d5962cf479fe6572b1c96ca0e /web/templates | |
parent | 26005abafe9050b3180e037f1c189f0de81db85f (diff) | |
download | gn-guile-5f334d9502186871f526ec41a7b86c97066f38fc.tar.gz |
Add a default page template and styling for genenetwork-like pages.
Diffstat (limited to 'web/templates')
-rw-r--r-- | web/templates/genenetwork.scm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/web/templates/genenetwork.scm b/web/templates/genenetwork.scm new file mode 100644 index 0000000..64e9852 --- /dev/null +++ b/web/templates/genenetwork.scm @@ -0,0 +1,18 @@ +(define-module (web templates genenetwork) + #:use-module (web view markdown) + + #:export (default-gn-template)) + +(define* (default-gn-template path #:optional (title "Default Page Template")) + "Render `PATH' with a default template and styling that fits in with + GeneNetwork's look and feel." + `(html + (head + (meta (@ (charset "UTF-8"))) + (meta (@ (name "viewport") (content "width=device-width, initial-scale=1.0"))) + (title ,title) + (link (@ (rel "stylesheet") (type "text/css") + (href "/css/gn-template-style.css")))) + (body + (header (@ (id "header")) (span (@ (id "header-text")) "GeneNetwork")) + (main (@ (id "main")) ,(markdown-github->sxml path))))) |