2019-11-04 13:09:44 +00:00
|
|
|
{{ define "main" }}
|
2019-12-08 14:29:02 +00:00
|
|
|
|
|
|
|
{{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }}
|
|
|
|
<script src="{{ $enquire.RelPermalink }}"></script>
|
|
|
|
|
2019-11-04 13:09:44 +00:00
|
|
|
<main class="main-main">
|
|
|
|
{{ partial "body/breadcrumb" . }}
|
|
|
|
<article class="list">
|
|
|
|
<header class="list__header">
|
|
|
|
<h5 class="list__header--title h5">{{.Title}}</h5>
|
|
|
|
</header>
|
2019-12-25 04:28:08 +00:00
|
|
|
|
2019-11-04 13:09:44 +00:00
|
|
|
<div class="list__header--desc p2">
|
|
|
|
{{.Content}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="summary__container">
|
|
|
|
{{ range .Paginator.Pages }}
|
|
|
|
{{ .Render "summary" }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
|
2019-11-30 17:28:55 +00:00
|
|
|
{{ partial "pagination/pagination" . }}
|
2019-11-04 13:09:44 +00:00
|
|
|
</main>
|
|
|
|
<aside class="main-side">
|
|
|
|
{{ partial "sidebar/sidebar-list" . }}
|
|
|
|
</aside>
|
2019-12-08 14:29:02 +00:00
|
|
|
<script>
|
|
|
|
enquire.register("screen and (max-width: 769px)", {
|
|
|
|
match: function () {
|
|
|
|
if (document.getElementsByTagName('main')[0]) {
|
|
|
|
document.getElementsByTagName('main')[0].className = "main";
|
|
|
|
}
|
|
|
|
if (document.getElementsByTagName('aside')[0]) {
|
|
|
|
document.getElementsByTagName('aside')[0].className = "hide";
|
|
|
|
}
|
|
|
|
},
|
|
|
|
unmatch: function () {
|
|
|
|
if (document.getElementsByTagName('main')[0]) {
|
|
|
|
document.getElementsByTagName('main')[0].className = "main-main";
|
|
|
|
}
|
|
|
|
if (document.getElementsByTagName('aside')[0]) {
|
|
|
|
document.getElementsByTagName('aside')[0].className = "main-side";
|
|
|
|
}
|
|
|
|
document.getElementsByClassName('navbar__burger')[0].classList.remove('is-active');
|
|
|
|
document.getElementsByClassName('navbar__menu')[0].classList.remove('is-active');
|
|
|
|
document.getElementsByClassName('mobile-search')[0].classList.add('hide');
|
|
|
|
},
|
|
|
|
setup: function () { },
|
|
|
|
deferSetup: true,
|
|
|
|
destroy: function () { },
|
|
|
|
});
|
|
|
|
</script>
|
2019-11-30 17:28:55 +00:00
|
|
|
{{ partial "script/taxo-script" . }}
|
2019-11-04 13:09:44 +00:00
|
|
|
{{ end }}
|