]> git.plutz.net Git - webpoll/blobdiff - home.sh
style <main> tag, dont wrap entire page into form
[webpoll] / home.sh
diff --git a/home.sh b/home.sh
index c4d5754139bb2d6c04a1260e25e4272692be032e..b8f8192eccc26fccf14d4483d9317e64ef2d3a1f 100755 (executable)
--- a/home.sh
+++ b/home.sh
@@ -20,7 +20,7 @@ if [ "$REQUEST_METHOD" = POST ]; then
 else
   [ "$PATH_INFO" != / ] && printf 'Status: 404 Not Found\r\n'
   yield_page "Start a Poll" "home" <<-EOF
-       [form method=post
+       [main [form method=post
          [submit "start" "date" Start a new poll]
          $(if [ "$bookmarks" ]; then
            printf '[h2 Recent Polls][ul .recent'
@@ -31,6 +31,6 @@ else
            done
            printf ']'
          fi)
-       ]
+       ]]
        EOF
 fi