Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
97 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ hide_readingtime: true | |
menu: | ||
main: | ||
weight: 10 | ||
pre: "<i class=\"fas fa-tools\"></i>" | ||
--- |
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,5 @@ | ||
module github.com/cchesser/java-perf-workshop | ||
|
||
go 1.19 | ||
|
||
require github.com/google/docsy v0.5.1 // indirect |
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,10 @@ | ||
github.com/FortAwesome/Font-Awesome v0.0.0-20210804190922-7d3d774145ac/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= | ||
github.com/FortAwesome/Font-Awesome v0.0.0-20220831210243-d3a7818c253f/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= | ||
github.com/google/docsy v0.5.0 h1:ND+6sYJD1VYEEM8olBdJLPIyQrPDeDkC0PhzuZTVZMs= | ||
github.com/google/docsy v0.5.0/go.mod h1:RKikAcSUR3b/40oqYfweD9uiNYTUirEKaCgLiEXMbQo= | ||
github.com/google/docsy v0.5.1 h1:D/ZdFKiE29xM/gwPwQzmkyXhcbQGkReRS6aGrF7lnYk= | ||
github.com/google/docsy v0.5.1/go.mod h1:maoUAQU5H/d+FrZIB4xg1EVWAx7RyFMGSDJyWghm31E= | ||
github.com/google/docsy/dependencies v0.5.0/go.mod h1:2zZxHF+2qvkyXhLZtsbnqMotxMukJXLaf8fAZER48oo= | ||
github.com/google/docsy/dependencies v0.5.1/go.mod h1:EDGc2znMbGUw0RW5kWwy2oGgLt0iVXBmoq4UOqstuNE= | ||
github.com/twbs/bootstrap v4.6.1+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= | ||
github.com/twbs/bootstrap v4.6.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= |
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,33 +1,62 @@ | ||
{{ $cover := .HasShortcode "blocks/cover" }} | ||
<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.png" }}{{ ( . | minify).Content | safeHTML }}{{ end }}{{ end }}</span><span class="font-weight-bold"><i class="fas fa-cube"></i> jvmperf</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 }} | ||
{{ $url := urls.Parse .URL }} | ||
{{ $baseurl := urls.Parse $.Site.Params.Baseurl }} | ||
<a {{ if .Identifier }}id="{{ .Identifier }}"{{ end }} class="nav-link{{if $active }} active{{end}}" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}" {{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}><span{{if $active }} class="active"{{end}}>{{ .Name }}</span></a> | ||
</li> | ||
{{ end }} | ||
{{ if .Site.Params.versions }} | ||
<li class="nav-item dropdown d-none d-lg-block"> | ||
{{ partial "navbar-version-selector.html" . }} | ||
</li> | ||
{{ end }} | ||
{{ if (gt (len .Site.Home.Translations) 0) }} | ||
<li class="nav-item dropdown 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-brand__logo navbar-logo"> | ||
{{- if ne .Site.Params.ui.navbar_logo false -}} | ||
{{ with resources.Get "icons/logo.png" }} | ||
{{ ( . | minify).Content | safeHTML -}} | ||
{{ end -}} | ||
{{ end -}} | ||
</span> | ||
{{- /**/ -}} | ||
<span class="navbar-brand__name"> | ||
<i class="fas fa-cube"></i> jvmperf | ||
</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> |
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