summaryrefslogtreecommitdiff
path: root/build.sh
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 /build.sh
parent0463007b16e8ea92c9c267c462bdc3129ec5ce6b (diff)
fix license
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 4 insertions, 1 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