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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ You can configure the theme to show info about the author; by default, this info

Indigo will look for custom CSS in `<YOUR_HUGO_SITE>/static/css/custom.css`. This will let you add/override styling to your heart's content, while making it easy to keep Indigo up-to-date. See it in action on [angelostavrow.com](https://angelostavrow.com).

You can override the default indigo site logo by setting the `SiteLogo` parameter:

```toml
[params]
...
SiteLogo = "images/my-site-logo.png"
```

## Deployment

You can add a line to your `config.toml` file to set this theme as the default:
Expand Down
1 change: 1 addition & 0 deletions config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ theme = "indigo"
Description = "Description of website for head meta tag"
Subtitle = "A subtitle for your site"
Avatar = "images/site-logo.svg"
# SiteLogo = "images/site-logo.svg"
Biography = "A short description, a few sentences describing the author. Set the 'ShowBio' parameter to false to hide this."
ShowBio = true
PermalinkText = "🔗"
Expand Down
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ paginate = 3
Description = "Description of website for head meta tag"
Subtitle = "A subtitle for your site"
Avatar = "images/site-logo.svg"
SiteLogo = "images/site-logo.svg" # optional
Biography = "A short description, a few sentences describing the author. Set the 'ShowBio' parameter to false to hide this."
ShowBio = true
PermalinkText = "🔗"
Expand Down
6 changes: 5 additions & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
{{ partial "head.html" . }}
<body>
<div id="sitelogo">
<a class="glyph" alt="Home" href="{{ .Site.BaseURL }}"><img src={{ "images/site-logo.svg" | absURL }} alt="Site Logo" height="64px" width="64px"></a>
{{ $sitelogo := "images/site-logo.svg" }}
{{ if .Site.Params.SiteLogo }}
{{ $sitelogo = .Site.Params.SiteLogo }}
{{ end }}
<a class="glyph" alt="Home" href="{{ .Site.BaseURL }}"><img src="{{ $sitelogo | absURL }}" alt="Site Logo" height="64px" width="64px"></a>
</div>
<header>
{{ partial "pagenav.html" . }}
Expand Down