Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ _site/
.jekyll-cache
_pdf
.DS_Store
.idea
.idea/
vendor/
.bundle/
Gemfile.lock
Gemfile.lock
.hugo_build.lock
/public/
/public-pdf/
/pdf/docs.pdf
/resources/
node_modules/
99 changes: 0 additions & 99 deletions _layouts/default.html

This file was deleted.

23 changes: 0 additions & 23 deletions _layouts/default_print.html

This file was deleted.

3 changes: 0 additions & 3 deletions _layouts/none.html

This file was deleted.

106 changes: 0 additions & 106 deletions _layouts/page.html

This file was deleted.

18 changes: 0 additions & 18 deletions _layouts/page_print.html

This file was deleted.

80 changes: 80 additions & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html lang="en">
{{- with .Params.redirect_to }}
<head>
<meta charset="utf-8">
<title>Redirecting&hellip;</title>
<link rel="canonical" href="{{ . | safeURL }}">
<script>location="{{ . | safeJS }}"</script>
<meta http-equiv="refresh" content="0; url={{ . | safeURL }}">
<meta name="robots" content="noindex">
</head>
<body>
<h1>Redirecting&hellip;</h1>
<a href="{{ . | safeURL }}">Click here if you are not redirected.</a>
</body>
{{- else }}
<head>
{{ partial "head.html" . }}
</head>
<body{{ if .IsHome }} class="landing-page"{{ end }}>
<header>
{{ partial "topnav.html" . }}
{{ partial "news_banner.html" (dict "page" . "onlanding" .IsHome) }}
</header>

{{- $isLanding := or .IsHome (eq .Layout "landing_page") -}}
{{- if $isLanding }}
<main>
{{ block "main" . }}{{ end }}
</main>
{{- else }}
{{- $hideSidebar := eq (.Param "hide_sidebar") true -}}
<div class="container page-content mb-5">
{{ if $hideSidebar }}
<main id="tg-sb-content">
{{ block "main" . }}{{ end }}
</main>
{{ else }}
<div class="row">
<aside class="col-md-3 mb-4 mb-md-0" id="tg-sb-sidebar">
{{ block "sidebar" . }}{{ partial "sidebar.html" . }}{{ end }}
</aside>
<main class="col-md-9" id="tg-sb-content">
{{ block "main" . }}{{ end }}
</main>
</div>
{{ end }}
</div>
{{- end }}

{{ partial "footer.html" . }}
{{ partial "scroll_to_top.html" . }}

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
<script src="{{ "js/customscripts.js" | relURL }}"></script>
{{ if .IsHome }}
<script src="{{ "js/github-queries.js" | relURL }}"></script>
<script src="{{ "js/news-collect.js" | relURL }}"></script>
{{ end }}
<script>
document.addEventListener("DOMContentLoaded", function () {
document.querySelectorAll("table").forEach(function (table) {
table.classList.add("table", "table-striped", "table-hover", "table-bordered", "w-100");
var tableHead = table.querySelector("thead");
if (tableHead) {
tableHead.classList.add("table-primary");
}
if (table.parentElement && table.parentElement.classList.contains("table-responsive")) {
return;
}
var wrapper = document.createElement("div");
wrapper.className = "table-responsive w-100";
table.parentNode.insertBefore(wrapper, table);
wrapper.appendChild(table);
});
});
</script>
</body>
{{- end }}
</html>
13 changes: 13 additions & 0 deletions layouts/_default/default_print.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{ partial "head_print.html" . }}
</head>
<body class="{{ with .Params.type }}{{ . }} {{ end }}print">
<div class="container print-container">
<main class="print-content">
{{ .Content }}
</main>
</div>
</body>
</html>
Loading
Loading