PythonIreland / PythonIreland/2026.pycon.ie

Optimise logo: move to assets/, resize to 64×64 WebP

Open
#11 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

performance priority: medium
Dominant language
HTML
Stars
1
Forks
0
Avg merge
10m
Merged PRs (30d)
1

Description

Problem

/static/img/logo.png is a 1024×1024 PNG at 127 KB. It is displayed at 32×32 pixels (h-8 w-8 via Tailwind). This is a 1024:1 pixel-area overserve — 97% of the image data is discarded by the browser.

Fix

Move the logo from static/img/ to assets/img/ so Hugo can process it:

```html
{{ $logo := resources.Get "img/logo.png" }}
{{ $logo32 := $logo.Resize "64x webp" }}

```

A 64×64 WebP (2× for retina) will be ~2–4 KB versus 127 KB — a ~97% reduction.

Files to change

  • Move static/img/logo.pngassets/img/logo.png
  • Update layouts/partials/nav.html and layouts/partials/footer.html

Note: also update the Organization schema in structured-data.html which references the logo URL.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading layouts/partials/nav.html, layouts/partials/footer.html, and structured-data.html, then inspect how Hugo resources are used in the site. Move the asset as specified and verify the generated navigation, footer, and Organization schema reference the processed 64×64 WebP logo rather than the original PNG.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, hugo, tailwind
Domain
performance, web-dev
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.