A simple blog generator for your ~
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
Matt Baer 9cfef9e6dc Fix -o flag description pirms 9 gadiem
entries Ignore entries pirms 9 gadiem
html Simple squigglelog generator pirms 9 gadiem
templates Simple squigglelog generator pirms 9 gadiem
util Add install and new entry util script pirms 9 gadiem
.gitignore Ignore generated executables pirms 9 gadiem
LICENSE Simple squigglelog generator pirms 9 gadiem
README.md Explain new flags and installation pirms 9 gadiem
install.sh Add install and new entry util script pirms 9 gadiem
squigglelog.go Fix -o flag description pirms 9 gadiem

README.md

~log

Use squigglelog to easily create a simple log for your tilde.

  1. Install squigglelog with ./install.sh
  2. Create new posts in the entries/ folder, or use the squiggle.sh utility.
  3. Generate your ~log:
./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.

templates

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.