PythonIreland / PythonIreland/2026.pycon.ie

Twitter Cards: add twitter:image, twitter:title and twitter:description

Open Beginner friendly
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Problem

layouts/partials/head.html:16-18 only declares twitter:card and twitter:site. Twitter falls back to the og:* tags, so it works — but only if the OG image exists (see #52), and it is more robust to declare the Twitter tags explicitly.

To do

  • Add:
<meta name="twitter:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }}">
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
{{ with .Site.Params.ogImage }}<meta name="twitter:image" content="{{ . | absURL }}">{{ end }}

Depends on #52.

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 in layouts/partials/head.html at lines 16-18 and review issue #52 for the OG image dependency. Add the three explicit Twitter meta tags shown in the issue, then verify the generated page head includes the title, description, and image tags when an OG image is configured.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend, web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.