avoid repeating the site url
[~bandali/bndl.org] / haunt.scm
index 27f2719..c51ecf8 100644 (file)
--- a/haunt.scm
+++ b/haunt.scm
              (ice-9 match)
              (srfi srfi-19))
 
+(define my-scheme 'https)
+(define my-domain "bandali.eu.org")
+(define my-url
+  (string-append (symbol->string my-scheme) "://" my-domain))
+
 (define (stylesheet name)
   `(link (@ (rel "stylesheet")
             (href ,(string-append "/" name ".css")))))
            " [ " ,(aa "pdf" "papers/modre2018-declarative.pdf") " | "
            ,(aa "bib" "papers/modre2018-declarative.bib") " ]"))
      (dd "Ali Abbassi, "
-         ,(aa "Amin Bandali" "https://bandali.eu.org") ", "
+         ,(aa "Amin Bandali" my-url) ", "
          ,(aa "Nancy A. Day" "https://cs.uwaterloo.ca/~nday/") ", "
          "Jose Serna"
          (br)
             " Research Conference,\n"
             "York University, Toronto, Canada, August 15, 2017")
        " ]"))
-     (dd ,(aa "Amin Bandali" "https://bandali.eu.org") ", "
+     (dd ,(aa "Amin Bandali" my-url) ", "
          ,(aa "Simon Hudon" "https://github.com/cipher1024") ", "
          ,(aa "Jonathan S. Ostroff"
               "http://www.cse.yorku.ca/~jonathan/")))
   (static-page
    "Licensing Information"
    "license.html"
-   `((h1 "License information for bandali.eu.org")
+   `((h1 "License information for " ,my-domain)
      (p "I strongly believe in "
         ,(aa "free culture"
              "https://questioncopyright.org/what_is_free_culture")
       (li ,(aa "Proprietary Software Is Often Malware"
                "https://www.gnu.org/proprietary/proprietary.html"))))))
 
-(define my-domain "bandali.eu.org")
+(define contact-page
+  (static-page
+   "Contact Information"
+   "contact.html"
+   `((h1 "Contact information")
+     (p "Email is by far my preferred method of communication.  I may"
+        " be contacted at any of the following addresses (choose the"
+        " most closely related):")
+     (ul
+      (li "bandali@gnu.org")
+      (li "bandali@uwaterloo.ca")
+      (li "bandali@csclub.uwaterloo.ca"))
+     (p "If you want to send me GPG-encrypted mail, you can use my "
+        ,(aa "public key" "bandali-pubkey.txt") " with the"
+        " fingerprint "
+        (code "BE62 7373 8E61 6D6D 1B3A  08E8 A21A 0202 4881 6103")
+        ".")
+     (table
+      (tbody
+       (tr
+        (td "IRC")
+        (td "bandali on " ,(aa "freenode" "https://freenode.net") ", "
+            ,(aa "moznet" "https://wiki.mozilla.org/IRC") ", and "
+            ,(aa "oftc" "https://www.oftc.net")))
+       (tr
+        (td "XMPP")
+        (td ,(aa "bandali@member.fsf.org"
+                 "xmpp:bandali@member.fsf.org")))
+       (tr
+        (td "Matrix")
+        (td ,(aa "@bandali:matrix.org"
+                 "https://matrix.to/#/@bandali:matrix.org")))
+       (tr
+        (td "Fediverse")
+        (td ,(aa "@bandali@pleroma.site"
+                 "https://pleroma.site/bandali")))))
+     (h2 "Elsewhere")
+     (p "You may also find me at a few other places online.  Stricken"
+        " through accounts are those I don’t use anymore, unless"
+        " absolutely necessary.")
+     (ul
+      (li ,(aa "bandali" "https://libreplanet.org/wiki/User:Bandali")
+          " on LibrePlanet")
+      (li ,(aa "bandali" "https://emacsconf.org/bandali")
+          " on EmacsConf")
+      (li ,(aa "bandali" "https://savannah.gnu.org/users/bandali")
+          " on Savannah")
+      (li ,(aa "bandali" "https://git.sr.ht/~bandali")
+          " on Sourcehut")
+      (li ,(aa "bandali" "https://lobste.rs/u/bandali")
+          " on Lobsters")
+      (li ,(aa "bandali" "https://hackage.haskell.org/user/bandali")
+          " on Hackage")
+      (li ,(aa "bandali" "https://gitlab.com/bandali")
+          " on GitLab.com")
+      (li ,(aa "bandali"
+               "https://news.ycombinator.com/user?id=bandali")
+          " on HN")
+      (li ,(aa "bandali" "https://www.reddit.com/u/bandali")
+          " on reddit")
+      (li (del ,(aa "bandali0" "https://github.com/bandali0")
+               " on GitHub"))
+      (li (del ,(aa "bandali0" "https://twitter.com/bandali0")
+               " on Twitter"))))))
 
 (site #:title "Amin Bandali"
+      ;; TODO: uncomment after new haunt release
+      ;; #:scheme my-scheme
       #:domain my-domain
       #:default-metadata
       '((author . "Amin Bandali")
                         #:prefix "tags")
                        (rss-feed
                         #:file-name "feed.rss")
+                       contact-page
                        license-page
                        (static-directory "static" "")))