single.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {{ define "main" }}
  2. <header>
  3. {{ partial "post-title" . }}
  4. <!-- {{ partial "post-tags" . }} -->
  5. <!-- {{ partial "post-categories" . }} -->
  6. <hr>
  7. </header>
  8. <article class="blog-post content">
  9. {{ .Content }}
  10. <ul class="py-3 px-0 mb-0">
  11. <li>
  12. <h4>電話:{{ .Params.phone }}</h4>
  13. </li>
  14. <li>
  15. <h4>地址:{{ .Params.address }}</h4>
  16. </li>
  17. <li>
  18. <h4>診所種類:{{ .Params.category }}</h4>
  19. </li>
  20. <li>
  21. <h4>診療科別:{{ .Params.subCategory }}</h4>
  22. </li>
  23. <li>
  24. <h4>機構代碼:{{ .Params.code }}</h4>
  25. </li>
  26. <li>
  27. <h4>
  28. 服務項目:
  29. {{ range .Params.tags }}
  30. <a class="btn btn-outline-dark btn-small badge text-dark" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">
  31. {{ . }}
  32. </a>
  33. {{ end }}
  34. </h4>
  35. </li>
  36. <li>
  37. <h4 class="mb-0">看診時段:{{ .Params.time }}</h4>
  38. </li>
  39. </ul>
  40. <!-- {{ partial "translations.html" . }} -->
  41. <!-- {{ partial "related" . }} -->
  42. <hr>
  43. <a href="#" onclick="window.history.back()" class="back-link mt-4">
  44. <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left mb-1"
  45. viewBox="0 0 16 16">
  46. <path fill-rule="evenodd"
  47. d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" />
  48. </svg>
  49. <span>回到上一頁</span>
  50. </a>
  51. </article>
  52. {{ end }}