-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into codeboten/rm-honeycomb-distros
- Loading branch information
Showing
4 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{{/* Docsy override */ -}} | ||
{{ $lang := partial "i18n/lang.html" . -}} | ||
|
||
<!doctype html> | ||
<html itemscope itemtype="http://schema.org/WebPage" lang="{{ $lang }}" class="no-js"> | ||
<head> | ||
{{ partial "head.html" . }} | ||
</head> | ||
<body class="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }}"> | ||
<header> | ||
{{ partial "navbar.html" . }} | ||
</header> | ||
<div class="container-fluid td-outer"> | ||
<div class="td-main"> | ||
<div class="row flex-xl-nowrap"> | ||
<aside class="col-12 col-md-3 col-xl-2 td-sidebar d-print-none"> | ||
{{ partial "sidebar.html" . }} | ||
</aside> | ||
<aside class="d-none d-xl-block col-xl-2 td-sidebar-toc d-print-none"> | ||
{{ partial "page-meta-links.html" . }} | ||
{{ partial "toc.html" . }} | ||
{{ partial "taxonomy_terms_clouds.html" . }} | ||
</aside> | ||
<main class="col-12 col-md-9 col-xl-8 ps-md-5" role="main"> | ||
{{ partial "version-banner.html" . }} | ||
{{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} | ||
{{ block "main" . }}{{ end }} | ||
</main> | ||
</div> | ||
</div> | ||
{{ partial "footer.html" . }} | ||
</div> | ||
{{ partial "scripts.html" . }} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{/* | ||
|
||
Returns the fallback page of this page, if it has one. | ||
A fallback page, is a page in the default site language | ||
that has been mounted under this locale as a fallback | ||
when this locale is missing a translation. | ||
|
||
*/ -}} | ||
|
||
{{ $result := false -}} | ||
|
||
{{ if and .Site.IsMultiLingual .File -}} | ||
{{ $defaultLang := .Site.Sites.Default.Language.Lang -}} | ||
|
||
{{ $resultsArray := where .Translations "Lang" $defaultLang -}} | ||
{{ $defaultLangPage := index $resultsArray 0 -}} | ||
{{ if and $defaultLangPage | ||
$defaultLangPage.File | ||
(eq .File.Filename $defaultLangPage.File.Filename) | ||
-}} | ||
{{ $result = $defaultLangPage -}} | ||
{{ end -}} | ||
{{ end -}} | ||
|
||
{{ return $result -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{ $fallbackPage := partial "i18n/fallback-page.html" . -}} | ||
{{ $lang := .Site.Language.Lang -}} | ||
{{ with $fallbackPage -}} | ||
{{ $lang = .Language.Lang -}} | ||
{{ end -}} | ||
{{ return $lang -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters