From 10e25b1e35369b4dde70051d4a6f4912af1940af Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sat, 11 May 2019 16:35:19 -0400 Subject: Add JavaScript Web Labels for GNU LibreJS --- haunt/custom/theme.scm | 5 ++++- haunt/haunt.scm | 1 + haunt/weblabels.scm | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 haunt/weblabels.scm diff --git a/haunt/custom/theme.scm b/haunt/custom/theme.scm index fe4b53a..a2daba9 100644 --- a/haunt/custom/theme.scm +++ b/haunt/custom/theme.scm @@ -109,7 +109,10 @@ license.") ", a static site generator written in " (a (@ (href "https://gnu.org/software/guile")) "Guile Scheme") - "."))))))) + ".") + (a (@ (href "/weblabels.html") + (rel "jslicense")) + (p "JavaScript license information")))))))) #:post-template (lambda (post) `((h1 (@ (class "title")),(post-ref post 'title)) diff --git a/haunt/haunt.scm b/haunt/haunt.scm index 225a4a2..3f48a98 100644 --- a/haunt/haunt.scm +++ b/haunt/haunt.scm @@ -128,6 +128,7 @@ (sort-by-tag) (static-page "About Me" "about") (static-page "Projects" "projects") + (static-page "JavaScript Web Labels" "weblabels") (static-directory "css") (static-directory "fonts") (static-directory "js") diff --git a/haunt/weblabels.scm b/haunt/weblabels.scm new file mode 100644 index 0000000..9e0851a --- /dev/null +++ b/haunt/weblabels.scm @@ -0,0 +1,24 @@ +;;; Copyright © 2019 Jakob L. Kreuze +;;; +;;; 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 +;;; . + +`((h2 "JavaScript Web Labels") + (table (@ (id "jslicense-labels1")) + (tr (td (a (@ (href "/js/webmention.js")) + (p "/js/webmention.js"))) + (td (a (@ (href "http://www.gnu.org/licenses/gpl-3.0.html")) + (p "GNU General Public License 3.0 or later"))) + (td (a (@ (href "/js/webmention.js")) + (p "/js/webmention.js")))))) -- cgit v1.3