settings.toml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # latestpage="result.html"
  2. latestpages=["meta.json", "result.html"]
  3. [page]
  4. postsperpage = 20
  5. relative_css=["./style.css", "./timeline.css"]
  6. [post]
  7. accepted_images= ["jpg", "JPG", "png", "PNG"]
  8. # true = add <p></p> tags to each line.
  9. tag_paragraphs=true
  10. # adds <br> or user defined string between each line
  11. # line_separator="<br>"
  12. format="""
  13. <div class="postcell" id="{__num__}">
  14. <div class="timestamp">{__timestamp__}
  15. <a href=#{__num__}>(#{__num__})</a>
  16. </div>
  17. <div class="message">{__msg__}</div>
  18. {__btn__}
  19. </div>
  20. """
  21. [post.buttons]
  22. reply = "mailto:user@host.tld"
  23. test = "https://toml.io/en/v1.0.0#array-of-tables"
  24. interact = "https://yoursite.tld/cgi?postid="
  25. [post.gallery]
  26. path_to_thumb="./thumbs"
  27. path_to_fullsize="./images"
  28. [webring]
  29. enabled=false
  30. file_output="meta.json"
  31. [webring.profile]
  32. username="Your name here"
  33. url="https://yourdomain.tld/microblog/"
  34. avatar="https://yourdomain.tld/microblog/images/avatar.jpg"
  35. short_bio= "Your self-description. Anything longer than 150 characters is truncated."
  36. [webring.following]
  37. list= ["https://likho.neocities.org/microblog/meta.json",
  38. "https://check.torproject.org/api/ip"]
  39. format="""
  40. <div class="fill">
  41. <div class="postcell">
  42. <img src="{__avatar__}" alt="Avatar" class="avatar">
  43. <span class="wrapper"">
  44. <div class="handle">
  45. <a href="{__url__}">{__handle__}</a>
  46. </div>
  47. <div class="last-updated">Last Update: {__lastupdated__}</div>
  48. <span class="post-count">Posts: {__post_count__}</span>
  49. </span>
  50. <p class="short-bio">{__shortbio__}</p>
  51. </div>
  52. </div>
  53. """
  54. # internally link avatars - avoidis hotlinks
  55. [webring.following.internal-avatars]
  56. enabled=false
  57. path_to_avatars="/microblog/avatars" # link rendered on page
  58. local_path_to_avatars="./avatars" # destination folder on pc