Skip to content

Commit

Permalink
Use character logo. Closes #58
Browse files Browse the repository at this point in the history
  • Loading branch information
joeroe committed Feb 12, 2024
1 parent e4a782e commit a065875
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# risotto (development version)

* **Breaking change:** The config parameter `logo` now expects a character, e.g. an emoji or Unicode symbol.
* For the old behaviour, use `logo_image`
* Fixed invalid HTML in header nav

# risotto 0.4.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# risotto
# 🍚 risotto

risotto is a minimalist, responsive [hugo](https://gohugo.io) theme inspired by terminal ricing aesthetics.

Expand Down
5 changes: 4 additions & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ palette = "base16-dark"
[params.about]
title = "risotto"
description = "A [hugo](https://gohugo.io) theme inspired by terminal ricing."
logo = "images/rice.svg"
# unicode/emoji logo:
logo = "🍚"
# or use an image:
#logo_image = "images/rice.svg"

# Sidebar: social links
# Available icon sets:
Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/about.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{ with .Site.Params.about }}
<div class="aside__about">
{{ with .logo }}<img class="about__logo" src="{{ . | absURL }}" alt="Logo">{{ end }}
{{ with .logo }}<span class="about__logo" role="img">{{ . }}</span>{{ end }}
{{ with .logo_image }}<img class="about__logo" src="{{ . | absURL }}" alt="Logo">{{ end }}
<h1 class="about__title">{{ .title }}</h1>
{{ with .description }}<p class="about__description">{{ . | markdownify }}</p>{{ end }}
</div>
Expand Down

0 comments on commit a065875

Please sign in to comment.