]> Sergey Matveev's repositories - zk.zsh.git/blobdiff - zk.zsh
Raise copyright years
[zk.zsh.git] / zk.zsh
diff --git a/zk.zsh b/zk.zsh
index 93ad39d6cc3995bfe95897fa3704e6f769faee67..9b65aecc25db5e0c1709f2717b8651bd94a46d5c 100755 (executable)
--- a/zk.zsh
+++ b/zk.zsh
@@ -1,6 +1,6 @@
 #!/usr/bin/env zsh
 # zk.zsh -- zettelkästen/wiki/static website helper/generator
-# Copyright (C) 2022 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2022-2024 Sergey Matveev <stargrave@stargrave.org>
 
 set -e
 ZK_VERSION=ZKZSH1
@@ -122,7 +122,10 @@ genHTML() {
             data="${data//\[${p}\]/<a href=\"${REPLY}.html\">[$p]</a>}"
         }
         data="<!DOCTYPE html>
-<html><head><title>$page (${pages[$page]})</title></head><body><pre>
+<html><head>
+<title>$page (${pages[$page]})</title>
+<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
+</head><body><pre>
 $data</pre>"
         if [[ $ZK_CACHE ]]; then
             print -r "$data" > $ZK_CACHE/${page}.html
@@ -170,7 +173,10 @@ genIndex() {
     }
     local page=${1}index
     print "<!DOCTYPE html>
-<html><head><title>$page ($now)</title></head><body><ul>"
+<html><head>
+<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
+<title>$page ($now)</title>
+</head><body><ul>"
     for p (${(oi)_links}) {
         getrel $page $p
         print "<li><a href=\"${REPLY}.html\">$p</a> <sup>${pages[$p]}</sup> (${sizes[$p]} bytes)</li>"