diff options
| author | Hellekin O. Wolf =8) <[email protected]> | 2010-06-22 22:23:45 (GMT) |
|---|---|---|
| committer | Hellekin O. Wolf =8) <[email protected]> | 2010-06-22 22:23:45 (GMT) |
| commit | 231c724dda0f65e339437831c48ae74a0928b6f7 (patch) | |
| tree | 1b7b3fd1ae31dd2110fc124ac0aabb71bdcac378 | |
| parent | 9a8bda293b3b407c7b9c0a7573e76b07bedc8711 (diff) | |
Default preview to Get Started instead of 404
| -rw-r--r-- | doc/get-started.org | 12 | ||||
| -rwxr-xr-x | src/server.awk | 6 |
2 files changed, 16 insertions, 2 deletions
diff --git a/doc/get-started.org b/doc/get-started.org new file mode 100644 index 0000000..ae72082 --- a/dev/null +++ b/doc/get-started.org @@ -0,0 +1,12 @@ +#+TITLE: Get Started With AutOrg +# +# +# FIXME: License +# + +DOCS { [[file:autonomy-is-organization.org][About]] | [[file:API.org][API]] | Book | [[file:org-gtd.org][GTD]] | [[file:glossary.org][Glossary]] | [[file:index.org][Index]] } + +Welcome to AutOrg! + +Edit the [[file:../org/index.org][org/index.org]] file to get started! + diff --git a/src/server.awk b/src/server.awk index f02fab2..43f0550 100755 --- a/src/server.awk +++ b/src/server.awk @@ -38,8 +38,10 @@ BEGIN { else if (system("test -d " page) == 0) { page = page "/index.html" content = "text/html" - } else if (system("test -f " page) != 0) { - page = "404.html" + } else if (system("test -f " page) != 0) { + # Treat the "missing index.html" case + if ( page == "index.html" ) page = "get-started.html" + else page = "404.html" content = "text/html" } else content = "invalid" |

