settings.toml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. format="""
  39. <div class="fill">
  40. <div class="postcell">
  41. <img src="{__avatar__}" alt="Avatar" class="avatar">
  42. <span class="wrapper"">
  43. <div class="handle">
  44. <a href="{__url__}">{__handle__}</a>
  45. </div>
  46. <div class="last-updated">Last Update: {__lastupdated__}</div>
  47. <span class="post-count">Posts: {__post_count__}</span>
  48. </span>
  49. <p class="short-bio">{__shortbio__}</p>
  50. </div>
  51. </div>
  52. """
  53. # internally link avatars - avoids hotlinks
  54. [webring.following.internal-avatars]
  55. enabled=false
  56. path_to_avatars="/microblog/avatars" # link rendered on page
  57. local_path_to_avatars="./avatars" # destination folder on pc