65 lines
2.3 KiB
HTML
65 lines
2.3 KiB
HTML
<!doctype html>
|
|
[#escape x as (x)!?html]
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>${channel.title} - ${site.title}</title>
|
|
<meta name="keywords" content="${channel.seoKeywords}">
|
|
<meta name="description" content="${channel.seoDescription}">
|
|
[#include 'inc_meta.html'/]
|
|
[#include 'inc_css.html'/]
|
|
[#include 'inc_js.html'/]
|
|
</head>
|
|
<body>
|
|
[#include 'inc_header.html'/]
|
|
<div class="new_container">
|
|
<div class="banner">
|
|
<div class="banner_main">
|
|
<h2>新闻中心</h2>
|
|
<p>安全第一 预防为主 综合治理</p>
|
|
</div>
|
|
</div>
|
|
<div class="new_container">
|
|
<div class="top">
|
|
<div class="wrap">
|
|
[#assign parent = channel.parent!channel/]
|
|
<div class="list [#if parent.id == channel.id]active[#else][/#if]"><a href="${parent.url}">全部</a></div>
|
|
[@ChannelList parentId=parent.id isNav='true'; list]
|
|
[#list list as bean]
|
|
<div class="list [#if channel.id == bean.id]active[#else][/#if]"><a href="${bean.url}">${bean.name}</a></div>
|
|
[/#list]
|
|
[/@ChannelList]
|
|
</div>
|
|
</div>
|
|
|
|
<div class="new_main">
|
|
[@ArticlePage channelId=channel.id isIncludeSubChannel="true" Q_=customsQueryMap orderBy=channel.orderDesc?string("sticky_desc,order_desc","sticky_desc,order_asc"); pagedList]
|
|
[#list pagedList.content as bean]
|
|
<div class="wrap">
|
|
<div class="item">
|
|
[#if bean.image??][@A bean=bean class="mr-3"]<img src="${bean.image}" alt="${bean.title}" width="175" height="125">[/@A][/#if]
|
|
<div class="info">
|
|
<div class="title">[@A bean=bean class="cm-link text-decoration-none"/]</div>
|
|
<div class="text">
|
|
[@A bean=bean class="text-reset small text-decoration-none"]${substring(bean.description,150,'...')}[/@A]
|
|
</div>
|
|
<div class="small text-muted mt-3 clearfix">
|
|
|
|
<div class="float-right"><i class="ml-2 far fa-clock"></i> ${format(bean.publishDate, 'yyyy-MM-dd')}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
[/#list]
|
|
[#include 'inc_page.html'/]
|
|
[/@ArticlePage]
|
|
</div>
|
|
</div>
|
|
</div>
|
|
[#include 'inc_right1.html'/]
|
|
[#include 'inc_footer.html'/]
|
|
<script>axios.get('${api}/channel/view/${channel.id?c}');</script>
|
|
</body>
|
|
</html>
|
|
[/#escape]
|