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