news_content.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!DOCTYPE html>
  2. <html data-bs-theme="light" lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
  6. <meta name="description" content="{dreamer-cms:article field='tag' /}">
  7. <title>{dreamer-cms:global name="title" /}</title>
  8. <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
  10. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
  11. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/styles.css">
  12. <link rel="stylesheet" href="{dreamer-cms:template /}assets/share/css/share.min.css">
  13. <link rel="stylesheet" type="text/css" href="{dreamer-cms:template /}assets/css/animate.min.css">
  14. <style>
  15. @media(max-width:750px) {
  16. .new-content-body {
  17. background-size: contain;
  18. width: 90%;
  19. height: auto;
  20. margin: 0 auto;
  21. display: block;
  22. }
  23. .new-content-body span {
  24. text-wrap: wrap;
  25. }
  26. }
  27. #content {
  28. width: 90%;
  29. height: 100%;
  30. padding: 0;
  31. margin: 10px auto;
  32. }
  33. .dreamer-prevnext li {
  34. list-style: none;
  35. }
  36. .dreamer-prevnext a {
  37. text-decoration: none;
  38. color: inherit;
  39. }
  40. </style>
  41. </head>
  42. <body>
  43. {dreamer-cms:include file='loading.html'/}
  44. {dreamer-cms:include file='header.html'/}
  45. <main>
  46. <section>
  47. <div class="p-2">
  48. <div><img style="width: 100%;object-fit: cover;" data-src="{dreamer-cms:article field='litpic' /}"
  49. src="{dreamer-cms:template /}assets/img/none.png"></div>
  50. </div>
  51. </section>
  52. {dreamer-cms:include file='back.html'/}
  53. <section>
  54. <div class="p-2 py-4 py-xl-5">
  55. <div class="row mb-lg-5 mb-2">
  56. <div class="col-md-8 col-xl-6 text-center mx-auto">
  57. <h2>{dreamer-cms:article field="title" /}</h2>
  58. <p class="w-lg-50 d-flex flex-column flex-sm-row justify-content-around">
  59. <span style="color: rgb(137, 137, 137);">
  60. {dreamer-cms:article field="updatetime" /}
  61. </span>
  62. <span style="color: rgb(137, 137, 137);">
  63. 作者:{dreamer-cms:article field="realname" /}
  64. </span>
  65. </p>
  66. </div>
  67. </div>
  68. <div class="row gy-4 row-cols-1 row-cols-lg-1 row-cols-xl-1 justify-content-center">
  69. <div class="col-xxl-8 col-sm-12 col-lg-8 col-xl-8 " id="content">
  70. {dreamer-cms:article field="content" /}
  71. </div>
  72. </div>
  73. <div class="row justify-content-center mt-lg-5 mt-2">
  74. <div class="col-xxl-8 text-start col-12 col-lg-8 col-xl-8">
  75. <div class="row gx-0" style="height: 70px;">
  76. <div class="social-share" data-title="{dreamer-cms:article field='title' /}"
  77. data-sites="qq, weibo, wechat" data-description="分享" style="text-align: center;">
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="row mt-lg-5 mt-2">
  83. {dreamer-cms:prevnext layout="prev,next" /}
  84. </div>
  85. </div>
  86. </section>
  87. </main>
  88. {dreamer-cms:include file='footer.html'/}
  89. <script src="{dreamer-cms:template /}assets/js/jquery.min.js"></script>
  90. <script type="text/javascript" src="{dreamer-cms:template /}assets/js/wow.min.js"></script>
  91. <script src="{dreamer-cms:template /}assets/js/main.js"></script>
  92. <script src="{dreamer-cms:template /}assets/bootstrap/js/bootstrap.min.js"></script>
  93. <script src="{dreamer-cms:template /}assets/js/bs-init.js"></script>
  94. <script src="{dreamer-cms:template /}assets/share/js/social-share.min.js"></script>
  95. <script>
  96. $(function () {
  97. var pArr = document.querySelectorAll("#content p")
  98. pArr.forEach(element => {
  99. element.style.width = "100%"
  100. });
  101. var imgArr = document.querySelectorAll("#content img")
  102. imgArr.forEach(i => {
  103. i.style.width = "100%"
  104. i.style.height = "auto"
  105. let src = i.getAttribute("src")
  106. i.setAttribute("data-src", src)
  107. i.setAttribute("src", "{dreamer-cms:template /}assets/img/none.png")
  108. });
  109. })
  110. </script>
  111. <script src="{dreamer-cms:template /}assets/js/image.js"></script>
  112. </body>
  113. </html>