forked from IntEL4CoRo/coai-vib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (58 loc) · 1.88 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{{ define "main" }}
<div role="main" class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1">
{{ with .Content }}
<div class="well">
{{.}}
</div>
{{ end }}
<div class="posts-list">
{{ $pag := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ range $pag.Pages }}
{{ partial "post_preview" . }}
{{ end }}
</div>
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
<ul class="pager main-pager">
{{ if .Paginator.HasPrev }}
<li class="previous">
<a href="{{ .Permalink }}page/{{ .Paginator.Prev.PageNumber }}/">← {{ i18n "newerPosts" }}</a>
</li>
{{ end }}
{{ if .Paginator.HasNext }}
<li class="next">
<a href="{{ .Permalink }}page/{{ .Paginator.Next.PageNumber }}/">{{ i18n "olderPosts" }} →</a>
</li>
{{ end }}
</ul>
{{ end }}
</div>
</div>
</div>
<script type="text/javascript">
// disable some elements, if in iframe
document.addEventListener("DOMContentLoaded", function() {
if (window.top != window.self) {
// header with big image
const header = document.querySelector("header.header-section.has-img");
if (header != null) {
header.style.display = "none";
//header.remove();
// navbar
const navbar = document.querySelector("nav.navbar");
if (navbar != null ) {
navbar.style.display = "none";
//navbar.remove();
}
// footer
footer = document.querySelector("footer");
if (footer != null) {
footer.style.display = "none";
//footer.remove();
}
}
}
});
</script>
{{ end }}