commit ff611a845fc50ef9202c060f16956b7e92ff07b6 (patch)
parent ec8d67a82353cf809565f838be4481ac90a2a45d
Author: Alex Karle <alex@alexkarle.com>
Date: Thu, 22 Apr 2021 22:58:27 -0400
general: License code and content appropriately
I've been meaning to do this for a long time, but kept waffling over the
choice of license, as well as how to display it. I wanted something that
would be easily found (i.e. on each page), but also that didn't detract
from the man page aesthetic ;)
I settled on a small footer just stating the copyright and linking to a
license file. A quick survey of my girlfriend showed that simply putting
"Content CC BY 4.0, Code MIT" at the bottom didn't make sense, and I
didn't want to wrap to multiple lines on mobile... so here we have it.
Plus, if I ever get around to creating an SSH-kiosk, it'll be good to
have it as a standalone page!
Diffstat:
4 files changed, 58 insertions(+), 0 deletions(-)
diff --git a/LICENSE b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019-2021, Alex Karle <alex@alexkarle.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/Makefile b/Makefile
@@ -33,4 +33,9 @@ jam-tuesday/greatest-hits: $(SETS) jam-tuesday/stats.sh
| sed -e 's#</head>#<meta name="viewport" content="width=device-width,initial-scale=1">&# ' \
-e 's#^<html#& lang="en"#' \
-e '/<td class="head-vol">Miscellaneous Information Manual<\/td>/d' \
+ -e 's#</body># \
+<p class="foot-license"> \
+ © 2019-2021 Alex Karle | <a href="/license.html">License</a> \
+</p> \
+&#' \
> $@
diff --git a/license.7 b/license.7
@@ -0,0 +1,26 @@
+.Dd $Mdocdate$
+.Dt LICENSE 7
+.Os
+.Sh NAME
+.Nm license
+.Nd copyright info for this site
+.Sh COPYRIGHT
+Except where otherwise noted,
+all content on this site is licensed under a
+Creative Commons Attribution 4.0 license (CC BY 4.0).
+.Pp
+Any code snippets, including the code used to build this site,
+are licensed under a MIT license.
+.Sh SEE ALSO
+.Bl -bullet -compact
+.It
+.Lk https://creativecommons.org/licenses/by/4.0/ CC BY 4.0
+.It
+.Lk /LICENSE MIT license
+.It
+.Lk https://alexkarle.com/git/alexkarle.com Source code for the site
+.It
+.Xr intro 7
+.It
+.Xr blog 7
+.El
diff --git a/style.css b/style.css
@@ -14,6 +14,12 @@ a:visited { color: #033a4a; }
code { font-size: 1em; }
h1 { font-size: 1.1em; }
h2 { font-size: 1em; }
+.foot-license {
+ margin-top: 16px;
+ font-size: .7em;
+ position: static;
+ bottom: 0;
+}
/* override bold/italic colors within permalinks */
a.permalink { text-decoration: none }