aboutsummaryrefslogtreecommitdiff
path: root/haunt/outbox.scm
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-07-12 20:10:32 -0400
committerJakob L. Kreuze2019-07-13 19:24:32 -0400
commitc9a30e04e8603c9796fec663a2d374e41e2e6031 (patch)
tree013bb0edb1e7d7285cdc6590e16c0bd209284df4 /haunt/outbox.scm
parented1e5a14dc8c13a564b784ee0fa618cd2f63835b (diff)
Rewrite Haunt configuration.
Diffstat (limited to 'haunt/outbox.scm')
-rw-r--r--haunt/outbox.scm57
1 files changed, 0 insertions, 57 deletions
diff --git a/haunt/outbox.scm b/haunt/outbox.scm
deleted file mode 100644
index 04ea775..0000000
--- a/haunt/outbox.scm
+++ /dev/null
@@ -1,57 +0,0 @@
-;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>
-;;;
-;;; This program is free software; you can redistribute it and/or
-;;; modify it under the terms of the GNU General Public License as
-;;; published by the Free Software Foundation; either version 3 of the
-;;; License, or (at your option) any later version.
-;;;
-;;; This program is distributed in the hope that it will be useful,
-;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-;;; General Public License for more details.
-;;;
-;;; You should have received a copy of the GNU General Public License
-;;; along with this program. If not, see
-;;; <http://www.gnu.org/licenses/>.
-
-(use-modules (srfi srfi-19))
-
-(define %comments
- `(("https://aaronparecki.com/2018/06/30/11/your-first-webmention"
- "@aaronpk"
- "<2019-05-11 Sat 17:07>"
- (p (@ (class "e-content"))
- "Hoo, this comments section is a bit of a mess. "
- "Anyway, I'm just testing out Webmentions like everyone else. "
- "Don't mind me..."))
- ("http://jakob.space/transition-to-haunt.html"
- "@jakob"
- "<2019-05-12 Sun 12:07>"
- (p (@ (class "e-content"))
- "Just testing out my Webmention inbox widget."))))
-
-(define (h-card)
- `(div (@ (class "u-author h-card"))
- (img (@ (src "/images/favicon.png")
- (class "u-photo")))
- (a (@ (href "http://jakob.space")
- (class "u-url p-name"))
- (p "Jakob L. Kreuze"))))
-
-(define (comment target-uri target-handle date sxml)
- (let ((date (string->date date "<~Y-~m-~d ~a ~H:~M>")))
- `(li (@ (class "h-entry"))
- ,(h-card)
- (p "in reply to: " (a (@ (class "u-in-reply-to")
- (href ,target-uri))
- ,target-handle))
- ,sxml
- (a (@ (href "http://jakob.space/outbox.html")
- (class "u-url"))
- (time (@ (class "dt-published")
- (datetime ,(date->string date "~Y-~m-~dT~H:~M:~S~z")))
- ,(date->string date "~c"))))))
-
-`((h2 "Webmention Outbox")
- (ul (@ (id "webmention-container"))
- ,@(map (lambda (args) (apply comment args)) %comments)))

© 2015 - 2026 Jakob L. Kreuze