single.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. {{ partial "head_single.html" . }}
  4. <body>
  5. <!-- Google Tag Manager (noscript) -->
  6. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MTWWP3G" height="0" width="0"
  7. style="display:none;visibility:hidden"></iframe></noscript>
  8. <!-- End Google Tag Manager (noscript) -->
  9. {{ partial "navbar.html" . }}
  10. <div class="news-main-content">
  11. <h1>{{.Title}}</h1>
  12. <div id="content">
  13. <div class="container">
  14. <div class="row">
  15. <div class="col-md-12">
  16. {{ if or .Params.author .Params.date }}
  17. <p>
  18. {{ if .Params.author }}{{ i18n "authorBy" }} <a href="#">{{ .Params.author }}</a>{{ end }}
  19. {{ if and .Params.author .Params.date }} | {{ end }}
  20. {{ if .Params.date }}{{ .Date.Format .Site.Params.date_format }}{{ end }}
  21. </p>
  22. {{ end }}
  23. <div>
  24. {{ .Content | safeHTML }}
  25. </div>
  26. <a href="/main-news/" class="list-link">< 回到列表</a>
  27. </div>
  28. <!-- <div class="col-md-3">
  29. {{ partial "sidebar.html" . }}
  30. </div> -->
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. {{ partial "footer.html" . }}
  36. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js"
  37. integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF"
  38. crossorigin="anonymous"></script>
  39. <script src="//code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
  40. crossorigin="anonymous"></script>
  41. </body>
  42. </html>