newsDetail.html 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {% load staticfiles %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <title>新闻详情</title>
  9. <link rel="stylesheet" href="{% static '/lib/font/fontIcon/iconfont.css' %}">
  10. <link rel="stylesheet" href="{% static '/lib/css/reset.css' %}">
  11. <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
  12. <link rel="stylesheet" href="{% static '/css/common.css' %}">
  13. <link rel="stylesheet" href="{% static '/css/module.css' %}">
  14. <link rel="stylesheet" href="{% static '/css/allDetail.css' %}">
  15. <style>
  16. .advImg {
  17. background: url(../static/imgs/newsAdv.jpg) no-repeat center;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <div class="header">
  23. <div class="headerTxt">
  24. <div class="wrapper">
  25. <p class="logoNameCn">休闲农业旅游网</p>
  26. <p class="logoNameEn">Leisure agricultural tourism network</p>
  27. </div>
  28. </div>
  29. <!-- 广告 -->
  30. <div class="bjColor advImg"></div>
  31. </div>
  32. <!-- 主体部分 -->
  33. <div class="content">
  34. <div class="wrapper">
  35. <div class="newsDiv">
  36. <!-- 面包屑导航 -->
  37. <div class="breadcrumb">
  38. <span class="layui-breadcrumb">
  39. <a href="home">首页</a>
  40. <a href="newslist_view?page=1&type={{art.art_type}}">新闻资讯</a>
  41. <a>
  42. <cite>详情</cite>
  43. </a>
  44. </span>
  45. </div>
  46. <!-- 新闻详情 -->
  47. <div class="innerDiv">
  48. <div class="detailPageDiv">
  49. <h1>{{art.title}}</h1>
  50. <div class="time">{{ art.upl_time|date:"Y-m-d"}}</div>
  51. <div>{{art.content|safe}}</div>
  52. <div class="sequence">
  53. {% for news in on_art %}
  54. {% if forloop.last %}
  55. <a href="news_view?id={{news.id}}" class="prevBtn">上一篇:{{news.title}}</a>
  56. {% endif%}
  57. {% endfor %}
  58. {% for news in up_art %}
  59. {% if forloop.first %}
  60. <a href="news_view?id={{news.id}}" class="nextBtn">下一篇:{{news.title}}</a>
  61. {% endif%}
  62. {% endfor %}
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <!-- 底部版权 -->
  70. <div class="footer bjColor">
  71. <div class="wrapper">
  72. <div class="floatDiv">
  73. <div class="copyrightTxt">
  74. <div>休闲农业旅游网</div>
  75. <div>联系人:李四  联系电话:13811111111</div>
  76. <div>地址:河南省郑州市XXXXXXXXXXXXXXXXXXXXXXXXXX</div>
  77. </div>
  78. <div class="WeChatCode">
  79. <img src="{% static '/imgs/WeChatCode.jpg' %}" alt="">
  80. <p>关注公众号</p>
  81. </div>
  82. </div>
  83. <div class="copyright">
  84. 版权所有XXXXXXXXXXXXXXXXXXXXXX
  85. </div>
  86. </div>
  87. </div>
  88. <script src="{% static '/lib/js/jquery-2.1.4.min.js'%}"></script>
  89. <script src="{% static '/lib/layui/layui.js'%}"></script>
  90. <script src="{% static '/js/newsList.js'%}"></script>
  91. </body>
  92. </html>