-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from ripienaar/79
(#79) Do not expose the lag metric as it is unreliable
- Loading branch information
Showing
104 changed files
with
1,146 additions
and
1,607 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
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
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
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,42 @@ | ||
{{- $themevariants := slice | append (.Site.Params.themeVariant | default "auto") -}} | ||
{{- $themevariantsauto := slice | append (.Site.Params.themeVariantAuto | default slice) -}} | ||
{{- $i := 0 -}} | ||
{{- if eq (int (len $themevariantsauto)) 0 -}} | ||
{{- range $themevariants -}} | ||
{{- $i = add $i 1 -}} | ||
{{- if ne . "auto" -}} | ||
{{- $themevariantsauto = $themevariantsauto | append . -}} | ||
{{- break -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- if eq (int (len $themevariantsauto)) 0 -}} | ||
{{- $themevariantsauto = $themevariantsauto | append "relearn-light" -}} | ||
{{- end -}} | ||
{{- if eq (int (len $themevariantsauto)) 1 -}} | ||
{{- $poppedthemevariants := last (sub (len $themevariants) $i) $themevariants -}} | ||
{{- range $poppedthemevariants -}} | ||
{{- if ne . "auto" -}} | ||
{{- $themevariantsauto = $themevariantsauto | append . -}} | ||
{{- break -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- if eq (int (len $themevariantsauto)) 1 -}} | ||
{{- $themevariantsauto = $themevariantsauto | append "relearn-dark" -}} | ||
{{- end -}} | ||
{{- $themevariantsauto = ($themevariantsauto | first 2) -}} | ||
{{- with index $themevariantsauto 0 -}} | ||
{{- if site.IsServer -}} | ||
@import "{{(printf "css/theme-%s.css" .) | relURL}}" screen; | ||
{{- else -}} | ||
@import "{{(printf "theme-%s.css" .)}}" screen; | ||
{{- end -}} | ||
{{- end -}} | ||
{{- with index $themevariantsauto 1 -}} | ||
{{- if site.IsServer }} | ||
@import "{{(printf "css/theme-%s.css" .) | relURL}}" screen and (prefers-color-scheme: dark); | ||
{{- else }} | ||
@import "{{(printf "theme-%s.css" .)}}" screen and (prefers-color-scheme: dark); | ||
{{- end -}} | ||
{{- end -}} |
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,95 @@ | ||
[Reading-direction] | ||
other = "ltr" | ||
|
||
[Search] | ||
other = "Hledat" | ||
|
||
[Search-placeholder] | ||
other = "Hledat..." | ||
|
||
[No-results-found] | ||
other = "Žádné výsledky pro \"{0}\"" | ||
|
||
[N-results-found] | ||
other = "{1} výsledků pro \"{0}\"" | ||
|
||
[Clear-History] | ||
other = "Vymazat historii" | ||
|
||
[Attachments-label] | ||
other = "Přílohy" | ||
|
||
[title-404] | ||
other = "Error 404" | ||
|
||
[message-404] | ||
other = "Ups. Zdá se, že tato stránka neexistuje ¯\\_(ツ)_/¯." | ||
|
||
[Go-to-homepage] | ||
other = "Přejít na domovskou stránku" | ||
|
||
[Edit-this-page] | ||
other = "Upravit" | ||
|
||
[Print-this-chapter] | ||
other = "Vytisknout kapitolu" | ||
|
||
[Shortcuts-Title] | ||
other = "Více" | ||
|
||
[Expand-title] | ||
other = "Rozbalit..." | ||
|
||
[Navigation-toggle] | ||
other = "Menu" | ||
|
||
[Toc-toggle] | ||
other = "Obsah" | ||
|
||
[Byte-symbol] | ||
other = "B" | ||
|
||
[Kilobyte-symbol] | ||
other = "KB" | ||
|
||
[Megabyte-symbol] | ||
other = "MB" | ||
|
||
[note] | ||
other = "Poznámka" | ||
|
||
[info] | ||
other = "Info" | ||
|
||
[tip] | ||
other = "Tip" | ||
|
||
[warning] | ||
other = "Varování" | ||
|
||
[Copy-to-clipboard] | ||
other = "Kopírovat" | ||
|
||
[Copied-to-clipboard] | ||
other = "Zkopírováno!" | ||
|
||
[Copy-link-to-clipboard] | ||
other = "Kopírovat odkaz" | ||
|
||
[Link-copied-to-clipboard] | ||
other = "Odkaz zkopírován!" | ||
|
||
[Chapter] | ||
other = "Kapitola {{.}}" | ||
|
||
[Language] | ||
other = "Jazyk" | ||
|
||
[Theme] | ||
other = "Motiv" | ||
|
||
[Submenu] | ||
other = "Podmenu {{.}}" | ||
|
||
[Subsections] | ||
other = "Podsekce {{.}}" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
6 changes: 6 additions & 0 deletions
6
docs/themes/hugo-theme-relearn/layouts/_default/_markup/render-link.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,6 @@ | ||
{{- partial "shortcodes/link.html" (dict | ||
"context" .Page | ||
"url" .Destination | ||
"title" .Title | ||
"content" .Text | ||
) }} |
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
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
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
docs/themes/hugo-theme-relearn/layouts/partials/body.searchpage.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
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
9 changes: 9 additions & 0 deletions
9
docs/themes/hugo-theme-relearn/layouts/partials/get-page-depth.hugo
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,9 @@ | ||
{{- /* https://discourse.gohugo.io/t/how-to-know-the-section-depth/37302/4 */ -}} | ||
{{- $page := .page }} | ||
{{- $depth := .depth | default 0 }} | ||
{{- with $page.Parent }} | ||
{{- $depth = add $depth 1 }} | ||
{{- partial "get-page-depth.hugo" (dict "page" . "depth" $depth) }} | ||
{{- else }} | ||
{{- $depth }} | ||
{{- end }} |
Oops, something went wrong.