Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Scheme header to index and recipes #63

Open
ghost opened this issue Aug 1, 2022 · 1 comment
Open

Add Scheme header to index and recipes #63

ghost opened this issue Aug 1, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 1, 2022

It would be nice to have the scheme.org menu on the individual cookbook pages. I'm afraid I cannot test this, but would something like the following hand-written changes to www.scm work?

First, define the header:

(define header '(header 
                  (ul (@ (class "menu")) 
                      (li (a (@ (href "https://www.scheme.org")) "Home"))
                      (li (@ (class "active")) "Docs")
                      (li (a (@ (href "https://community.scheme.org")) "Community"))
                      (li (a (@ (href "https://standards.scheme.org")) "Standards"))
                      (li (a (@ (href "https://implementations.scheme.org")) "Implementations")))))

Add to main page by changing line 127 to splice in the header:

`(,header (h1 (@ (id "logo")) "Scheme Cookbook")

And add to each recipe by changing line 163 to splice in the header:

     `(,header ,@(recipe-sxml recipe)
@lassik
Copy link
Member

lassik commented Aug 1, 2022

Thanks.

Testing:

# install Chicken 5
chicken-install lowdown r7rs srfi-1 srfi-13 srfi-132 ssax
./www.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant