Skip to content

Commit be47106

Browse files
committed
refactor: consolidate logo handling in navbar.html
1 parent 76230a0 commit be47106

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

hugo.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ anchor = "smart"
2727
copyright = "fireact.dev"
2828
privacy_policy = "https://policies.google.com/privacy"
2929

30-
# Favicons
31-
[params.ui.favicon]
32-
icon = "img/favicon.ico"
33-
icon32 = "img/favicon.png"
34-
apple_touch = "img/apple-touch-icon.png"
35-
3630
# Repository configuration
3731
github_repo = "https://github.com/fireact-dev/main"
3832
github_branch = "main"
@@ -45,8 +39,15 @@ offlineSearch = true
4539
sidebar_menu_compact = true
4640
breadcrumb_disable = false
4741
sidebar_search_disable = false
48-
navbar_logo = true
4942
footer_about_enable = true
43+
navbar_logo = true
44+
navbar_logo_link = "https://fireact.dev"
45+
46+
# Favicons
47+
[params.ui.favicon]
48+
icon = "img/favicon.ico"
49+
icon32 = "img/favicon.png"
50+
apple_touch = "img/apple-touch-icon.png"
5051

5152
# Feedback configuration
5253
[params.ui.feedback]
@@ -57,7 +58,7 @@ no = 'Sorry to hear that. Please <a href="https://github.com/fireact-dev/docs/is
5758
# Language configuration
5859
[languages]
5960
[languages.en]
60-
title = "Fireact Documentation"
61+
title = "fireact.dev"
6162
languageName ="English"
6263
weight = 1
6364

layouts/partials/navbar.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
<nav class="td-navbar navbar-dark js-navbar-scroll
77
{{- if $cover }} td-navbar-cover {{- end }}">
88
<div class="container-fluid flex-column flex-md-row">
9-
<!-- Logo -->
10-
<img src="{{ "img/logo.svg" | relURL }}" alt="Fireact Logo" style="height: 32px; margin-right: 10px;">
11-
12-
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
13-
{{- /**/ -}}
9+
<!-- Logo and title both linking to main site -->
10+
<a href="https://fireact.dev" class="navbar-brand">
11+
<img src="{{ "img/logo.svg" | relURL }}" alt="Fireact Logo" style="height: 32px; margin-right: 10px;">
1412
<span class="navbar-brand__name">
1513
{{- .Site.Title -}}
1614
</span>
1715
</a>
16+
1817
<div class="td-navbar-nav-scroll ms-md-auto" id="main_navbar">
1918
<ul class="navbar-nav">
2019
{{ $p := . -}}

0 commit comments

Comments
 (0)