cms系统的站点模板库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
cms_templates/bestreviews/index.html

152 lines
5.3 KiB

<!DOCTYPE html>
<html lang='en-US'>
<head>
<title>{{.Title}}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="referrer" content="unsafe-url">
<link rel="shortcut icon" type="image/png" href="{{replaceImage .Favicon}}" />
<link rel="stylesheet" media="all" href="{{staticFile "/css/application.css"}}" data-turbolinks-track="true" />
</head>
<body class='editorial_homepage'>
<header>
<div class="logo">
<a href="{{.IndexUrl}}"><img src="{{replaceImage .Logo}}" alt="" style="width: 170px"></a>
</div>
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="{{.IndexUrl}}">{{ lang "home"}}</a>
</li>
{{if .HasAbout }}
<li class="nav-item">
<a class="nav-link" href="{{.AboutUrl}}">{{ lang "about" }}</a>
</li>
{{end}}
{{if .HasContact }}
<li class="nav-item">
<a class="nav-link" href="{{.ContactUrl}}">{{ lang "contact" }}</a>
</li>
{{end}}
</ul>
</header>
<div class='brg_editorial_header brg_editorial_header__main_page'>
<div class='brg_editorial_header__wrapper brg_editorial_header__wrapper__main_page'>
<h1 class='brg_editorial_header__title'>
{{lang "latest"}}
</h1>
</div>
</div>
<div class='brg_main_editorial_body rf_container'>
<div class='brg_editorial_featured' id='randomize'>
<ul class='brg_main_editorial__articles--container randomize_list'>
{{ range .Articles }}
<li class='brg_main_editorial__articles--item randomize' data-index='0'>
<a class="brg_main_editorial__small-img-container" href="{{.Url}}"><img
class='brg_main_editorial__small-img lazy' data-src='{{getCover .Cover 300 180}}'
src='{{getCover .Cover 300 180}}'>
</a>
<div class='brg_main_editorial__small-info'>
<h3 class='brg_main_editorial__small-info__title'>
<a class="brg_main_editorial__small-info__title" href="{{.Url}}">{{.Title}}
</a>
</h3>
<div class='brg_main_editorial__small-info__txt'>
{{.Summary}}
</div>
<a class='brg_main_editorial__small-info__author clickable' data-action='homepage click on Author Name'
href='{{.Url}}'>
<div class='brg_main_editorial__small-info__author__name'>
{{timeFormat .PublishTime}}
</div>
<div class='brg_main_editorial__small-info__author__date'>
{{.Views}} {{lang "views"}}
</div>
</a>
</div>
</li>
{{end}}
</ul>
{{$pulen := len .PrevUrl}}
{{ if ne $pulen 0 }}
<center class='rf_popular_categories__all-categories brg_main_editorial__articles--load'>
<a href="{{.PrevUrl}}">{{lang "prev"}}</a>
</center>
{{ end }}
{{$nulen := len .NextUrl}}
{{ if ne $nulen 0 }}
<center class='rf_popular_categories__all-categories brg_main_editorial__articles--load'>
<a href="{{.NextUrl}}">{{lang "next"}}</a>
</center>
{{ end }}
</div>
{{$plen := len .PopularArticles}}
{{if ne $plen 0}}
<div class='rf_popular_categories'>
<h2 class='brg_main_editorial__title'>{{lang "popular"}} </h2>
<div class='rf_popular_categories__container'>
{{range .PopularArticles}}
<div class='rf_popular_categories__container-category'>
<a href='{{.Url}}' target='_blank'>
<div class='rf_popular_categories__container-image rf_popular_categories__container-image--0'>
<img src="{{getCover .Cover 125 75}}" alt="" style="height: 100%;width: 100%;object-fit: cover;">
</div>
</a>
<a class='rf_popular_categories__container-sub_categories' href='{{.Url}}'>
{{.Title}}</a>
</div>
{{end}}
</div>
</div>
{{end}}
</div>
<footer class='brg_footer--extended brg_editorial_footer'>
<div class='brg_footer__nav brg_editorial_footer__container'>
<ul class='brg_nav rf_container brg_editorial_footer__mobile--right'>
<li class='brg_nav__item'>
<a class="brg_nav__link" href="{{.IndexUrl}}">{{lang "home"}}</a>
</li>
{{if .HasAbout }}
<li class='brg_nav__item'>
<a class="brg_nav__link" href="{{.AboutUrl}}">{{lang "about"}}</a>
</li>
{{end}}
{{if .HasContact }}
<li class='brg_nav__item'>
<a class="brg_nav__link" href="{{.ContactUrl}}">{{lang "contact"}}</a>
</li>
{{end}}
{{if .HasPolicy }}
<li class='brg_nav__item'>
<a class="brg_nav__link" href="{{.PolicyUrl}}">{{lang "policy"}}</a>
</li>
{{end}}
{{$flen := len .Friendship}}
{{if ne $flen 0}}
{{range .Friendship}}
<li class='brg_nav__item'>
<a class="brg_nav__link" href="{{.Url}}">{{.Name}}</a>
</li>
{{end}}
{{end}}
</ul>
<ul class='brg_nav rf_container less_padding brg_editorial_footer__mobile--left'>
<li class='brg_footer__copyright'>
{{.Copyright}}
</li>
</ul>
</div>
</footer>
</body>
</head>
</html>