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.

Assessment

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

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.

Description

enhancement priority: medium seo

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.

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

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.

More from PythonIreland/2026.pycon.ie

All issues in PythonIreland/2026.pycon.ie

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.