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.

50 lines
1.3 KiB

4 years ago
6 years ago
6 years ago
4 years ago
4 years ago
4 years ago
  1. # Blogo [![Go Report Card](https://goreportcard.com/badge/github.com/arnaucube/blogo)](https://goreportcard.com/report/github.com/arnaucube/blogo)
  2. Static blog generator, templating engine from markdown and html templates
  3. ![blogo](https://raw.githubusercontent.com/arnaucube/blogo/master/blogo-diagram.png "blogo-diagram")
  4. ## Usage
  5. ```
  6. Usage of blogo:
  7. -d dev mode
  8. -p port (only for dev mode) (default "8080")
  9. ```
  10. So, for local usage:
  11. ```
  12. blogo -d
  13. ```
  14. Which will re-generate the html files each time that a input file is modified, and will serve the html generated site at `http://127.0.0.1:8080`.
  15. For a single use, you can simply use `blogo` command, which will generate the html files without serving them.
  16. A complete usage example can be found in this repo: https://github.com/arnaucube/blogoExample
  17. ### Config example
  18. ```json
  19. {
  20. "title": "Blogo Blog",
  21. "relativePath": "",
  22. "absoluteUrl": "https://blog.website.com",
  23. "indexTemplate": "index.html",
  24. "postThumbTemplate": "postThumbTemplate.html",
  25. "posts": [
  26. {
  27. "thumb": "article0_thumb.md",
  28. "md": "article0.md",
  29. "metaimg": "img/article0-img.png",
  30. "metadescr": "description of the article 0"
  31. }
  32. ],
  33. "copyRaw": [
  34. "css",
  35. "img",
  36. "js"
  37. ]
  38. }
  39. ```
  40. ---
  41. Blogo is used in https://arnaucube.com/blog