Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
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.

44 lines
1.2 KiB

  1. {header}
  2. <br><br><br><br><br>
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-md-8 col-12">
  6. {for post in posts}
  7. <div class="blogPost">
  8. {if post.hasPicture}
  9. <img src="/blogContent/headerImages/{post.picture_url}" style="width:100%;">
  10. {/if}
  11. <div class="p-4">
  12. <h3><b>{post.name}</b></h3>
  13. <h5>
  14. <span class="w3-opacity">{post.published}</span>
  15. </h5>
  16. {post.blogBody}
  17. </div>
  18. </div>
  19. <br>
  20. <br>
  21. {else}
  22. <div class="row p-lg-0">
  23. <h1 class="align-content-center">Page Not Found</h1>
  24. <div class="align-content-center">
  25. <img src="/includes/img/404.jpg" alt="Page not found" width="70%" />
  26. </div>
  27. </div>
  28. <br><br>
  29. {/for}
  30. {>paginationTemplate}
  31. <br>
  32. </div>
  33. <div class="col-md-4 col-12">
  34. {>sideBar}
  35. </div>
  36. </div>
  37. </div>
  38. {footer}