<html> <head> <title>Noteman</title> <style> .box { padding: 10px; border: 1px solid black; } #name { width: 300px; } td { padding: 0 15px } </style> </head> <body> <div class="box"> <table> <tr> <th>Location format</th> </tr> <tr> <td>Page</td> <td>P</td> </tr> <tr> <td>Book</td> <td>B[id]S[page]</td> </tr> <tr> <td>Notes git repo</td> <td>G</td> </tr> </table><br><br> <form method="POST"> <label for="name">Name</label> <input id="name" name="name" type="text"> <label for="location">Location</label> <input id="location" name="location" type="text"> <input type="submit" value="go"> </form> </div><br><br> <table> <tr> <th>Ref</th> <th>Name</th> </tr> {{ range .Notes }} <tr> <td>#{{ .Hash }}/{{ .Location }}</td> <td>{{ .Name }}</td> </tr> {{ end }} </table> </body> </html>