-
Notifications
You must be signed in to change notification settings - Fork 879
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 chalin-im-gtag-2022-08-17
- Loading branch information
Showing
9 changed files
with
328 additions
and
385 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 was deleted.
Oops, something went wrong.
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,46 @@ | ||
# Docsy config | ||
# | ||
# cSpell:ignore docsy fortawesome fontawesome webfonts | ||
|
||
params: | ||
time_format_blog: Monday, January 02, 2006 | ||
time_format_default: January 2, 2006 | ||
rss_sections: [blog] | ||
drawio: | ||
enable: true | ||
|
||
outputFormats: | ||
PRINT: | ||
baseName: index | ||
isHTML: true | ||
mediaType: text/html | ||
path: _print | ||
permalinkable: false | ||
|
||
module: | ||
hugoVersion: | ||
extended: true | ||
min: 0.73.0 | ||
mounts: | ||
- source: assets | ||
target: assets | ||
- source: node_modules/bootstrap | ||
target: assets/vendor/bootstrap | ||
- source: node_modules/@fortawesome/fontawesome-free | ||
target: assets/vendor/Font-Awesome | ||
- source: i18n | ||
target: i18n | ||
- source: layouts | ||
target: layouts | ||
- source: static | ||
target: static | ||
- source: node_modules/@fortawesome/fontawesome-free/webfonts | ||
target: static/webfonts | ||
# Mounts for projects using Docsy as an NPM package. The source path prefix | ||
# "../.." moves out of themes/docsy so that Docsy can find its dependencies. | ||
- source: ../../node_modules/bootstrap | ||
target: assets/vendor/bootstrap | ||
- source: ../../node_modules/@fortawesome/fontawesome-free | ||
target: assets/vendor/Font-Awesome | ||
- source: ../../node_modules/@fortawesome/fontawesome-free/webfonts | ||
target: static/webfonts |
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 |
---|---|---|
@@ -1,35 +1,62 @@ | ||
{{ $cover := and (.HasShortcode "blocks/cover") (not .Site.Params.ui.navbar_translucent_over_cover_disable) }} | ||
<nav class="js-navbar-scroll navbar navbar-expand navbar-dark {{ if $cover}} td-navbar-cover {{ end }}flex-column flex-md-row td-navbar"> | ||
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}"> | ||
<span class="navbar-logo">{{ if .Site.Params.ui.navbar_logo }}{{ with resources.Get "icons/logo.svg" }}{{ ( . | minify).Content | safeHTML }}{{ end }}{{ end }}</span><span class="font-weight-bold">{{ .Site.Title }}</span> | ||
</a> | ||
<div class="td-navbar-nav-scroll ml-md-auto" id="main_navbar"> | ||
<ul class="navbar-nav mt-2 mt-lg-0"> | ||
{{ $p := . }} | ||
{{ range .Site.Menus.main }} | ||
<li class="nav-item mr-4 mb-2 mb-lg-0"> | ||
{{ $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) }} | ||
{{ with .Page }} | ||
{{ $active = or $active ( $.IsDescendant .) }} | ||
{{ end }} | ||
{{ $pre := .Pre }} | ||
{{ $post := .Post }} | ||
{{ $url := urls.Parse .URL }} | ||
{{ $baseurl := urls.Parse $.Site.Params.Baseurl }} | ||
<a class="nav-link{{if $active }} active{{end}}" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}" {{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}>{{ with .Pre}}{{ $pre }}{{ end }}<span{{if $active }} class="active"{{end}}>{{ .Name }}</span>{{ with .Post}}{{ $post }}{{ end }}</a> | ||
</li> | ||
{{ end }} | ||
{{ if .Site.Params.versions }} | ||
<li class="nav-item dropdown mr-4 d-none d-lg-block"> | ||
{{ partial "navbar-version-selector.html" . }} | ||
</li> | ||
{{ end }} | ||
{{ if (gt (len .Site.Home.Translations) 0) }} | ||
<li class="nav-item dropdown mr-4 d-none d-lg-block"> | ||
{{ partial "navbar-lang-selector.html" . }} | ||
</li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
<div class="navbar-nav d-none d-lg-block">{{ partial "search-input.html" . }}</div> | ||
</nav> | ||
{{ $cover := and | ||
(.HasShortcode "blocks/cover") | ||
(not .Site.Params.ui.navbar_translucent_over_cover_disable) | ||
-}} | ||
|
||
<nav | ||
class="js-navbar-scroll navbar navbar-expand navbar-dark {{ if $cover }}td-navbar-cover{{ end }} flex-column flex-md-row td-navbar"> | ||
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}"> | ||
{{- /**/ -}} | ||
<span class="navbar-logo"> | ||
{{- if .Site.Params.ui.navbar_logo -}} | ||
{{ with resources.Get "icons/logo.svg" -}} | ||
{{ ( . | minify).Content | safeHTML -}} | ||
{{ end -}} | ||
{{ end -}} | ||
</span> | ||
{{- /**/ -}} | ||
<span class="font-weight-bold"> | ||
{{- .Site.Title -}} | ||
</span> | ||
{{- /**/ -}} | ||
</a> | ||
<div class="td-navbar-nav-scroll ml-md-auto" id="main_navbar"> | ||
<ul class="navbar-nav mt-2 mt-lg-0"> | ||
{{ $p := . -}} | ||
{{ range .Site.Menus.main -}} | ||
<li class="nav-item mr-4 mb-2 mb-lg-0"> | ||
{{ $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) -}} | ||
{{ with .Page }}{{ $active = or $active ( $.IsDescendant .) }}{{ end -}} | ||
{{ $pre := .Pre -}} | ||
{{ $post := .Post -}} | ||
{{ $url := urls.Parse .URL -}} | ||
{{ $baseurl := urls.Parse $.Site.Params.Baseurl -}} | ||
<a {{/**/ -}} | ||
class="nav-link {{- if $active }} active {{- end }}" {{/**/ -}} | ||
href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}" | ||
{{- if ne $url.Host $baseurl.Host }} target="_blank" {{- end -}} | ||
> | ||
{{- with .Pre }}{{ $pre }}{{ end -}} | ||
<span {{- if $active }} class="active" {{- end }}> | ||
{{- .Name -}} | ||
</span> | ||
{{- with .Post }}{{ $post }}{{ end -}} | ||
</a> | ||
</li> | ||
{{ end -}} | ||
{{ if .Site.Params.versions -}} | ||
<li class="nav-item dropdown mr-4 d-none d-lg-block"> | ||
{{ partial "navbar-version-selector.html" . -}} | ||
</li> | ||
{{ end -}} | ||
{{ if (gt (len .Site.Home.Translations) 0) -}} | ||
<li class="nav-item dropdown mr-4 d-none d-lg-block"> | ||
{{ partial "navbar-lang-selector.html" . -}} | ||
</li> | ||
{{ end -}} | ||
</ul> | ||
</div> | ||
<div class="navbar-nav d-none d-lg-block"> | ||
{{ partial "search-input.html" . }} | ||
</div> | ||
</nav> |
Oops, something went wrong.