Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ relativeURLs = true

[params]
mainSections = ["daytrip", "post"]
logo = "colour-logo.svg"
description = "A global map of places to visit that might appeal to nerdy types"

[params.repository]
Expand Down
19 changes: 19 additions & 0 deletions static/images/colour-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions static/images/monochrome-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions themes/ndt2/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ header#banner {
position: relative; /* Establish positioning context */
}

.logo {
display: flex;
flex-direction: row;
gap: 2rem;
align-items: center;
}

header#banner a {
color: #ecf0f1; /* Ensure h1 link color matches banner text color */
text-decoration: none;
Expand Down
16 changes: 15 additions & 1 deletion themes/ndt2/layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
<header id="banner">
<h1><a href="{{ .Site.Home.RelPermalink }}">{{ .Site.Title }}</a></h1>
{{ $logo := .Site.Params.logo }}
{{ if $logo }}
<div class="logo">
<a href="{{ .Site.Home.RelPermalink }}">
<img src="{{ .Site.Home.RelPermalink }}images/{{ $logo }}" alt="{{ .Site.Title }}">
</a>
<h1 class="site-title visuallyhidden">
<a href="{{ .Site.Home.RelPermalink }}">{{ .Site.Title }}</a>
</h1>
</div>
{{ else }}
<h1 class="site-title">
<a href="{{ .Site.Home.RelPermalink }}">{{ .Site.Title }}</a>
</h1>
{{ end }}
<nav>
<ul>
{{ range .Site.Menus.main.ByWeight -}}
Expand Down