summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-05-06 14:46:59 +0200
committerMarc Vertes <mvertes@free.fr>2023-05-06 14:46:59 +0200
commite36896a452bac667c47058501d98b0d12e86ff59 (patch)
tree072fb25a477328f853f14e753057a7ed5c03a4dc
parent0463007b16e8ea92c9c267c462bdc3129ec5ce6b (diff)
fix license
-rwxr-xr-xbuild.sh5
-rw-r--r--index.html3
2 files changed, 6 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 90f05e9..efd728d 100755
--- a/build.sh
+++ b/build.sh
@@ -37,7 +37,7 @@ genhtml() (
pandoc *.md
# Footer
- echo "<hr>From: $author, $date"
+ [ "$1" != . ] && echo "<hr>From: $author, $date"
)
for d in *; do
@@ -47,3 +47,6 @@ genhtml .
# Fix for mastodon.
sed '/mstdn/s/href=/rel="me" href=/' index.html >xx && mv xx index.html
+# Put a license in index footer.
+echo '<hr><small>Unless otherwise noted, posts are licensed under
+<a href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.</small>' >>index.html
diff --git a/index.html b/index.html
index 98874bc..bd6d76e 100644
--- a/index.html
+++ b/index.html
@@ -34,4 +34,5 @@ data-cites="mvertes">@mvertes</span></a></li>
<li>Mastodon: <a rel="me" href="https://mstdn.fr/@mvertes"><span class="citation"
data-cites="mvertes">@mvertes</span></a></li>
</ul>
-<hr>From: Marc Vertes, 03 may 2023
+<hr><small>Unless otherwise noted, posts are licensed under
+<a href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.</small>