Matt Baer f908f6e404 | 9 jaren geleden | |
---|---|---|
entries | 9 jaren geleden | |
html | 9 jaren geleden | |
templates | 9 jaren geleden | |
util | 9 jaren geleden | |
.gitignore | 9 jaren geleden | |
LICENSE | 9 jaren geleden | |
README.md | 9 jaren geleden | |
install.sh | 9 jaren geleden | |
squigglelog.go | 9 jaren geleden |
Use squigglelog to easily create a simple log for your tilde.
./install.sh
entries/
folder, or use the squiggle.sh
utility../squigglelog -t mysquigglelog -o mylog
This will use any template in templates/
defined with mysquigglelog (see below) to generate your full squigglelog page in ~/public_html/ called mylog.html.
Your template should look like this.
{{define "mysquigglelog"}}
<html>
<head>
<title>My ~log!</title>
</head>
<body>
<h1>~log</h1>
<p>Welcome to my ~log.</p>
{{template "log" .}}
</body>
</html>
{{end}}
There are two important lines in this file
{{define "mysquigglelog"}}
This is what you will reference in the -t
flag passed to the generator. The template file name does not matter.
{{template "log" .}}
This must be included verbatim in your template. It will include the templates/log.html
template, which holds all the posts.