<?php
+$title = 'anoweco';
$dbdsn = 'mysql:dbname=FIXME;host=127.0.0.1';
$dbuser = 'FIXME';
$dbpass = 'FIXME';
--- /dev/null
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>{{title}}</title>
+ <link rel="authorization_endpoint" href="{{baseurl}}auth.php"/>
+ <link rel="token_endpoint" href="{{baseurl}}token.php"/>
+ <link rel="micropub" href="{{baseurl}}micropub.php"/>
+ </head>
+ <body>
+ <h1>{{title}}</h1>
+ <p>
+ Anonymous web comments for the indieweb.
+ </p>
+ </body>
+</html>
+++ /dev/null
-<html>
- <head>
- <title>anoweco</title>
- <link rel="authorization_endpoint" href="http://anoweco.bogo/auth.php"/>
- <link rel="token_endpoint" href="http://anoweco.bogo/token.php"/>
- <link rel="micropub" href="http://anoweco.bogo/micropub.php"/>
- </head>
- <body>
- <h1>anoweco</h1>
- <p>
- Anonymous web comments.
- </p>
- </body>
-</html>
--- /dev/null
+<?php
+namespace anoweco;
+require 'www-header.php';
+
+require __DIR__ . '/../data/config.php';
+render(
+ 'index',
+ array(
+ 'title' => $title,
+ 'baseurl' => Urls::full('/'),
+ )
+);
+?>
\ No newline at end of file