M +1 -1
@@ 3,7 3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lipu.li</title>
<title>lipu li</title>
<link rel="stylesheet" href="style.css">
<link type="application/atom+xml" rel="alternate" href="feed.php">
</head>
M includes/index.php +3 -2
@@ 1,9 1,10 @@
<?php include 'includes/header.php'; ?>
<main>
- <h1>lipu li</h1>
+ <h1>Your personal wiki</h1>
- <p>Little wiki engine for big thinking!</p>
+ <p>lipu li is a little wiki engine that lets you manage your pages online. When a page references another page, lipu li generates a
+ backlink.</p>
<form action="login.php" method="post">
<?php include 'includes/csrf.php' ?>
M manual.php +25 -8
@@ 2,13 2,30 @@
<h1>Manual</h1>
-<p>
- Tomoni is a little wiki engine that you can use to cultivate your digital space. In tomoni, you create pages using a
- format called gemtext. You can link a page using the special double bracket syntax:
-</p>
- <pre>[[my-page]]</pre>
-<p>
- Doing so creates a backlink, allowing your visitor, or yourself, to find related pages.
-</p>
+<h2>Write pages in gemtext and HTML</h2>
+
+<pre>
+# This is an h1 title
+## this is an h2 title
+### this is an h3 title
+This is normal text!
+> this is a quote
+=> https://example.com this is a link
+```
+this is preformatted text
+```
+</pre>
+
+<p>You can use HTML tags as well.</p>
+
+<h2>Connect pages together with [[]]</h2>
+
+<p>You can surround a word with [[]] to create a link to a page with a corresponding slug. Here's an example:</p>
+
+<pre># coffee
+
+A popular machine is the [[aeropress]].</pre>
+
+<p>The page with the <code>aeropress</code> slug will now have a backlink to the coffee page.</p>
<?php include 'includes/footer.php'; ?>
No newline at end of file
M register.php +1 -1
@@ 30,7 30,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST
"password" => $password,
], $errors);
if ($id !== false) {
- $App->getSession()->login($id);
+ $App->getSession()->login($id, true);
$App->getSession()->setFlash("Thanks for registering!");
redirect("index.php");
}