1
0
mirror of https://github.com/thebaer/tildes.git synced 2018-07-20 07:15:21 +00:00
Various helpers for the tildeverse.
Go to file
2015-01-26 01:25:31 -05:00
templates Manual configuration for directory to scan 2015-01-26 00:03:27 -05:00
tildelog Modify logging 2015-01-11 18:33:26 -05:00
code.go -d flag for specifying directory to scan 2015-01-26 00:29:07 -05:00
LICENSE Initial commit 2015-01-10 16:01:18 -05:00
README.md More details on tildelog 2015-01-26 01:24:53 -05:00

~

Various scripts and programs for the tildeverse.

tildelog

Use tildelog to easily create a simple log for your tilde. Create new posts in the tildelog/entries/ folder, then run this:

cd tildelog
go build tildelog.go
./tildelog -template mytildelog

This will use any template in tildelog/templates/ defined with mytildelog (see below) to generate your full tildelog page.

templates

Your template should look like this.

{{define "mytildelog"}}
<html>
	<head>
		<title>My ~log!</title>
	</head>
	<body>
		<h1>~log</h1>
		<p>Welcome to my ~log.</p>
		{{template "log" .}}
	</body>
</html>
{{end}}

code

Use code to generate a list of files contained within a given directory under their home folder. This was originally made to see who had a Code directory (this is the default), but you can specify whatever common directory you'd like to find. Do this:

go build code.go
./code -d bin

This outputs an HTML file in your public_html/ folder based on the templates/code.html template. The HTML file will be named after whatever directory you're scanning, so in this example, it'd be public_html/bin.html.