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.

40 lines
1.1 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><br>
  19. {else}
  20. <div class="row p-lg-0">
  21. <h1 class="align-content-center">Page Not Found</h1>
  22. <div class="align-content-center">
  23. <img src="/includes/img/404.jpg" alt="Page not found" width="70%" />
  24. </div>
  25. </div>
  26. <br><br>
  27. {/for}
  28. </div>
  29. <div class="col-md-4 col-4">
  30. {>sideBar}
  31. </div>
  32. </div>
  33. </div>
  34. {footer}