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.

81 lines
1.1 KiB

6 years ago
  1. # Blogo
  2. Static blog generator, templating engine from markdown and html templates
  3. Types of blogo tags:
  4. - index.html
  5. ```
  6. [blogo-title]
  7. [blogo-index]
  8. ```
  9. - postTemplate.html
  10. ```
  11. [blogo-post-title]
  12. [blogo-post-md]
  13. ```
  14. Example of config.json:
  15. ```json
  16. {
  17. "title": "my blog",
  18. "indexTemplate": "index.html",
  19. "indexPostTemplate": "indexPostTemplate.html",
  20. "postTemplate": "postTemplate.html",
  21. "posts": [
  22. {
  23. "title": "Post 01",
  24. "thumb": "post01thumb.md",
  25. "md": "post01.md"
  26. },
  27. {
  28. "title": "Post 02",
  29. "thumb": "post02thumb.md",
  30. "md": "post02.md"
  31. }
  32. ]
  33. }
  34. ```
  35. Example of input files:
  36. - index.html
  37. ```html
  38. <!DOCTYPE html>
  39. <html>
  40. <head>
  41. <title>[blogo-title]</title>
  42. </head>
  43. <body>
  44. [blogo-index]
  45. </body>
  46. </html>
  47. ```
  48. - indexPostTemplate.html
  49. ```html
  50. <div class="col-md-3">
  51. [blogo-index-post-template]
  52. </div>
  53. ```
  54. - postTemplate.html
  55. ```html
  56. <!DOCTYPE html>
  57. <html>
  58. <head>
  59. <title>[blogo-post-title]</title>
  60. </head>
  61. <body>
  62. [blogo-post-content]
  63. </body>
  64. </html>
  65. ```