single.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {{ define "main" }}
  2. <div class="container-fluid blog_article p-0">
  3. <section class="bhouseweb_loc_banner">
  4. <img src="/img/banner/bn_blog@2x.webp" class="banner-img card-img" alt="...">
  5. </section>
  6. <div class="content">
  7. <h1>{{ .Title }}</h1>
  8. <div class="d-flex justify-content-between align-items-center">
  9. <span>{{ .PublishDate.Format "2006-01-02" }}</span>
  10. <div class="icon-box">
  11. <!-- 網址動態載入 -->
  12. <a href="" id="collection_icon_fb" target="_blank"><img src="/img/icon_fb@2x.png" alt=""></a>
  13. <a href="" id="collection_icon_line" target="_blank"><img src="/img/icon_line@2x.png" alt=""></a>
  14. </div>
  15. </div>
  16. <span class="line"></span>
  17. <p>{{ .Params.introduction | safeHTML }}</p>
  18. <br>
  19. <div class="question-box">
  20. <div>
  21. <p>
  22. 本文目錄
  23. <!-- {{ .Params.question_box_intro }} -->
  24. </p>
  25. {{ .TableOfContents }}
  26. </div>
  27. </div>
  28. <div class="blog-content">
  29. {{ .Content }}
  30. </div>
  31. <div class="d-flex justify-content-between link-box">
  32. <div class="d-flex flex-wrap align-items-center link-list">
  33. <p class="m-0">相關標籤:</p>
  34. <span>
  35. {{ range .Params.blog_tag }}
  36. <a href="/blog?tags={{ . }}">{{ . }}</a>
  37. </span>
  38. {{ end }}
  39. </div>
  40. <div class="icon-box">
  41. <a href="" id="collection_icon_fb" target="_blank"><img src="/img/icon_fb@2x.png" alt=""></a>
  42. <a href="" id="collection_icon_line" target="_blank"><img src="/img/icon_line@2x.png" alt=""></a>
  43. </div>
  44. </div>
  45. <a class="nav-link" onclick="previousPage()">
  46. <p class="readMore text-center">
  47. <span style="font-size: 18px;" class="fw-normal me-2">&lt;</span>回到成家知識庫
  48. </p>
  49. </a>
  50. <!-- <ul class="read-more-list">
  51. <li>你可能會喜歡的,延伸閱讀點擊標題,看更多設計專欄!</li>
  52. {{ partial "further.html" . }}
  53. </span>
  54. </ul> -->
  55. <ul class="read-more-list">
  56. <li>你可能會喜歡的,延伸閱讀點擊標題,看更多設計專欄!</li>
  57. <li><a href="">【居家風格】 60萬以下 ↓ 超有氛圍的成家夢想</a></li>
  58. <li><a href="">【認識裝潢裝修】 模組系統櫃板材等級挑選5攻略</a></li>
  59. <li><a href="">【認識裝潢裝修】 11-20坪 小坪數裝潢裝修,規劃師教你小宅打造大空間</a></li>
  60. <li><a href="">【認識裝潢裝修】 什麼是輕裝修?輕裝修的定義是什麼?輕裝修包含什麼呢?</a></li>
  61. <li><a href="">【規劃師服務】 什麼是規劃師?連室內設計師都推薦的「規劃師服務」</a></li>
  62. </ul>
  63. </div>
  64. </div>
  65. </div>
  66. <script>
  67. function previousPage() {
  68. history.back();
  69. }
  70. let contentList = document.getElementById("TableOfContents").getElementsByTagName("li");
  71. for (let i = 0; i < contentList.length; i++) {
  72. const element = contentList[i];
  73. if (element.childNodes.length == 0) {
  74. element.style.display = 'none';
  75. }
  76. }
  77. </script>
  78. {{ end }}