Skip to content

Commit db59770

Browse files
authored
Minor sidebar updates (#6)
Signed-off-by: Artem Kladov <artem.kladov@flant.com>
1 parent 14a4d48 commit db59770

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

layouts/_partials/sidebar.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{{/* Get all sections on the first level */}}
77
{{ range where .Site.Sections "Section" "documentation" }}
88
<li class="sidebar__item {{ if or (eq . $currentPage) (.IsAncestor $currentPage) }}active{{ end }}{{ if .Pages }} has-children{{ end }}">
9-
<a href="{{ .RelPermalink }}" {{ if and (.IsAncestor $currentPage) (not (eq . $currentPage)) }}style="color: #00122c;"{{ end }}>{{ .Title }}</a>
9+
<a href="{{ .RelPermalink }}" {{ if and (.IsAncestor $currentPage) (not (eq . $currentPage)) }}style="color: #00122c;"{{ end }}>{{ .LinkTitle }}</a>
1010
{{- if .Pages }}
1111
{{- template "subpages" (dict "parent" . "currentPage" $currentPage "level" 1) }}
1212
{{- end }}
@@ -30,9 +30,7 @@
3030
<li class="sidebar__submenu-item {{ if or (eq . $currentPage) (.IsAncestor $currentPage) }}active{{ end }}{{ if .Pages }} sidebar__submenu-item_parent has-children{{ end }}">
3131
<a href="{{ if .IsPage }}{{ .RelPermalink }}{{ else }}#{{end}}">
3232
<span class="sidebar__submenu-title" {{ if eq $level 1 }}style="font-size: 16px;"{{ end }}>
33-
{{- if .Title }}
34-
{{- .Title }}
35-
{{- else if .LinkTitle }}
33+
{{- if .LinkTitle }}
3634
{{- .LinkTitle }}
3735
{{- else }}
3836
{{- .File.BaseFileName | humanize }}

project_template/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
user: "${UID:-1000}:${GID:-1000}"
1414
environment:
1515
- HUGO_ENABLEGITINFO=false
16-
command: server --printMemoryUsage --printPathWarnings --printI18nWarnings --bind=0.0.0.0 -p 1313 --liveReloadPort 80 --noBuildLock --enableGitInfo=false
16+
command: server --renderToMemory --printPathWarnings --printI18nWarnings --bind=0.0.0.0 -p 1313 --liveReloadPort 80 --noBuildLock --enableGitInfo=false
1717
ports:
1818
- "1313:1313"
1919
- "1314:1314"

0 commit comments

Comments
 (0)