Skip to content

Commit 0f5b908

Browse files
committed
Fixing home navigation on web and mobile
1 parent 8997c68 commit 0f5b908

File tree

3 files changed

+31
-27
lines changed

3 files changed

+31
-27
lines changed

config.toml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ googleAnalytics = ""
3434
search = true
3535
tabs = true
3636

37+
[params.logo]
38+
icon = ""
39+
image = "images/logo-graphql-kickstart-2000px.png"
40+
41+
[params.palette]
42+
primary = "pink"
43+
accent = "teal"
44+
45+
[params.font]
46+
text = "Roboto"
47+
code = "Roboto Mono"
48+
3749
[[params.repositories]]
3850
name = "graphql-java-kickstart/graphql-java-servlet"
3951
url = "https://github.com/graphql-java-kickstart/graphql-java-servlet"
@@ -49,32 +61,20 @@ googleAnalytics = ""
4961
url = "https://github.com/graphql-java-kickstart/graphql-spring-boot"
5062
menu = "Spring Boot"
5163

52-
[[params.repositories]]
53-
name = "graphql-java-kickstart/graphql-spring-webclient"
54-
url = "https://github.com/graphql-java-kickstart/graphql-spring-webclient"
55-
menu = "Web Client"
56-
57-
[[params.repositories]]
58-
name = "graphql-java-kickstart/samples"
59-
url = "https://github.com/graphql-java-kickstart/samples"
60-
menu = "Samples"
61-
62-
[[params.repositories]]
63-
name = "philip-jvm/learn-spring-boot-graphql"
64-
url = "https://github.com/philip-jvm/learn-spring-boot-graphql"
65-
menu = "Tutorials"
66-
67-
[params.logo]
68-
icon = ""
69-
image = "images/logo-graphql-kickstart-2000px.png"
64+
[[params.repositories]]
65+
name = "graphql-java-kickstart/graphql-spring-webclient"
66+
url = "https://github.com/graphql-java-kickstart/graphql-spring-webclient"
67+
menu = "Web Client"
7068

71-
[params.palette]
72-
primary = "pink"
73-
accent = "teal"
69+
[[params.repositories]]
70+
name = "graphql-java-kickstart/samples"
71+
url = "https://github.com/graphql-java-kickstart/samples"
72+
menu = "Samples"
7473

75-
[params.font]
76-
text = "Roboto"
77-
code = "Roboto Mono"
74+
[[params.repositories]]
75+
name = "philip-jvm/learn-spring-boot-graphql"
76+
url = "https://github.com/philip-jvm/learn-spring-boot-graphql"
77+
menu = "Tutorials"
7878

7979

8080
[social]
@@ -120,4 +120,4 @@ googleAnalytics = ""
120120
plainIDAnchors = true
121121

122122
[outputs]
123-
home = ["HTML", "RSS", "JSON"]
123+
home = ["HTML", "RSS", "JSON"]

themes/hugo-material-docs/layouts/partials/header.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
<a href="{{ .Site.BaseURL }}"
88
title="{{ .Site.Title }}"
99
class="md-header-nav__button md-logo">
10-
<i class="md-icon">{{ with .Site.Params.logo.icon }}{{ . }}{{ else }}{{ "\uE80C" }}{{ end }}</i>
10+
{{ with .Site.Params.logo.icon }}
11+
<i class="md-icon">{{ . }}</i>
12+
{{ else }}
13+
<img src="{{ with .Site.Params.logo.image }}{{ . | absURL}}{{ end }}" width="25" height="25" />
14+
{{ end }}
1115
</a>
1216
</div>
1317

themes/hugo-material-docs/layouts/partials/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<!-- Site title -->
66
<label class="md-nav__title md-nav__title--site" for="__drawer">
7-
<a href="{{ with $currentPage.Site.Params.repo_url }}{{ . }}{{ else }}{{ $currentPage.Site.BaseURL }}{{ end }}"
7+
<a href="{{ $currentPage.Site.BaseURL }}"
88
title="{{ $currentPage.Site.Title }}" class="md-nav__button md-logo">
99
{{ with $currentPage.Site.Params.logo.icon }}
1010
<i class="md-icon">{{ . }}</i>

0 commit comments

Comments
 (0)