A simple blog generator for your ~
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.1 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ~log
  2. ====
  3. Use **squigglelog** to easily create a simple log for your tilde.
  4. 1. Install squigglelog with `./install.sh`
  5. 2. [Create new posts](https://github.com/thebaer/squigglelog/tree/master/entries#squigglelog-entries) in the `entries/` folder, or use the `squiggle.sh` utility.
  6. 3. Generate your ~log:
  7. ```bash
  8. ./squigglelog -t mysquigglelog -o mylog
  9. ```
  10. This will use any template in `templates/` defined with _mysquigglelog_ (see below) to generate your full squigglelog page in ~/public_html/ called mylog.html.
  11. #### templates
  12. Your template should look like this.
  13. ```html
  14. {{define "mysquigglelog"}}
  15. <html>
  16. <head>
  17. <title>My ~log!</title>
  18. </head>
  19. <body>
  20. <h1>~log</h1>
  21. <p>Welcome to my ~log.</p>
  22. {{template "log" .}}
  23. </body>
  24. </html>
  25. {{end}}
  26. ```
  27. There are two important lines in this file
  28. `{{define "mysquigglelog"}}`
  29. This is what you will reference in the `-t` flag passed to the generator. The template file name does not matter.
  30. `{{template "log" .}}`
  31. This must be included verbatim in your template. It will include the `templates/log.html` template, which holds all the posts.